diff options
author | jlam <jlam> | 2001-06-11 01:59:33 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-06-11 01:59:33 +0000 |
commit | fd9688151b15b136e8bb62a77ec3f4c6abf839da (patch) | |
tree | 28cba132a7d0ee13850a4a1787701a2980ea61e4 /graphics/tiff | |
parent | 627b1ed81a4f271f81bce18f3d9e5faab71bc824 (diff) | |
download | pkgsrc-fd9688151b15b136e8bb62a77ec3f4c6abf839da.tar.gz |
Use bsd.buildlink.mk instead of duplicating code all over the place.
Diffstat (limited to 'graphics/tiff')
-rw-r--r-- | graphics/tiff/buildlink.mk | 59 |
1 files changed, 13 insertions, 46 deletions
diff --git a/graphics/tiff/buildlink.mk b/graphics/tiff/buildlink.mk index e700b3c5fc5..a428e8be831 100644 --- a/graphics/tiff/buildlink.mk +++ b/graphics/tiff/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.4 2001/06/10 00:09:32 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.5 2001/06/11 01:59:37 jlam Exp $ # # This Makefile fragment is included by packages that use libtiff. # @@ -6,10 +6,9 @@ # # (1) Optionally define TIFF_REQD to the version of libtiff desired. # (2) Include this Makefile fragment in the package Makefile, -# (3) Optionally define BUILDLINK_INCDIR and BUILDLINK_LIBDIR, -# (4) Add ${BUILDLINK_INCDIR} to the front of the C preprocessor's header +# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header # search path, and -# (5) Add ${BUILDLINK_LIBDIR} to the front of the linker's library search +# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search # path. .if !defined(TIFF_BUILDLINK_MK) @@ -18,53 +17,21 @@ TIFF_BUILDLINK_MK= # defined TIFF_REQD?= 3.5.4 DEPENDS+= tiff>=${TIFF_REQD}:../../graphics/tiff -TIFF_HEADERS= ${LOCALBASE}/include/tiff.h -TIFF_HEADERS+= ${LOCALBASE}/include/tiffconf.h -TIFF_HEADERS+= ${LOCALBASE}/include/tiffio.h -TIFF_LIBS= ${LOCALBASE}/lib/libtiff.* - -BUILDLINK_INCDIR?= ${WRKDIR}/include -BUILDLINK_LIBDIR?= ${WRKDIR}/lib +BUILDLINK_PREFIX.tiff= ${LOCALBASE} +BUILDLINK_FILES.tiff= include/tiff.h +BUILDLINK_FILES.tiff+= include/tiffconf.h +BUILDLINK_FILES.tiff+= include/tiffio.h +BUILDLINK_FILES.tiff+= lib/libtiff.* .include "../../devel/zlib/buildlink.mk" .include "../../graphics/jpeg/buildlink.mk" -TIFF_BUILDLINK_COOKIE= ${WRKDIR}/.tiff_buildlink_done -TIFF_BUILDLINK_TARGETS= link-tiff-headers -TIFF_BUILDLINK_TARGETS+= link-tiff-libs -BUILDLINK_TARGETS+= ${TIFF_BUILDLINK_COOKIE} - -pre-configure: ${TIFF_BUILDLINK_COOKIE} +BUILDLINK_TARGETS.tiff= tiff-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.tiff} -${TIFF_BUILDLINK_COOKIE}: ${TIFF_BUILDLINK_TARGETS} - @${TOUCH} ${TOUCH_FLAGS} ${TIFF_BUILDLINK_COOKIE} +pre-configure: ${BUILDLINK_TARGETS.tiff} +tiff-buildlink: _BUILDLINK_USE -# This target links the headers into ${BUILDLINK_INCDIR}, which should -# be searched first by the C preprocessor. -# -link-tiff-headers: - @${ECHO} "Linking tiff headers into ${BUILDLINK_INCDIR}." - @${MKDIR} ${BUILDLINK_INCDIR} - @for inc in ${TIFF_HEADERS}; do \ - dest=${BUILDLINK_INCDIR}/`${BASENAME} $${inc}`; \ - if [ -f $${inc} ]; then \ - ${RM} -f $${dest}; \ - ${LN} -sf $${inc} $${dest}; \ - fi; \ - done - -# This target links the libraries into ${BUILDLINK_LIBDIR}, which should -# be searched first by the linker. -# -link-tiff-libs: - @${ECHO} "Linking tiff libraries into ${BUILDLINK_LIBDIR}." - @${MKDIR} ${BUILDLINK_LIBDIR} - @for lib in ${TIFF_LIBS}; do \ - dest=${BUILDLINK_LIBDIR}/`${BASENAME} $${lib}`; \ - if [ -f $${lib} ]; then \ - ${RM} -f $${dest}; \ - ${LN} -sf $${lib} $${dest}; \ - fi; \ - done +.include "../../mk/bsd.buildlink.mk" .endif # TIFF_BUILDLINK_MK |