diff options
author | jlam <jlam@pkgsrc.org> | 2001-07-29 05:45:57 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-07-29 05:45:57 +0000 |
commit | 953186801e9929ab1bafbb5246c1476449562072 (patch) | |
tree | 74a94846cc50d9d429432789ad8f2f5fee462e46 /print/pdflib | |
parent | 0db1c3f9a140be687c0c2155a14cfc35efc57074 (diff) | |
download | pkgsrc-953186801e9929ab1bafbb5246c1476449562072.tar.gz |
Add wrapper for pdflib-config.
Diffstat (limited to 'print/pdflib')
-rw-r--r-- | print/pdflib/buildlink.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/print/pdflib/buildlink.mk b/print/pdflib/buildlink.mk index e786c777bc2..548237df068 100644 --- a/print/pdflib/buildlink.mk +++ b/print/pdflib/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.1 2001/07/29 05:38:40 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.2 2001/07/29 05:45:57 jlam Exp $ # # This Makefile fragment is included by packages that use pdflib. # @@ -29,9 +29,19 @@ BUILDLINK_FILES.pdflib+= lib/libpdf.* .include "../../graphics/tiff/buildlink.mk" BUILDLINK_TARGETS.pdflib= pdflib-buildlink +BUILDLINK_TARGETS.pdflib+= pdflib-buildlink-config-wrapper BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.pdflib} +BUILDLINK_CONFIG.pdflib= ${BUILDLINK_PREFIX.pdflib}/bin/pdflib-config +BUILDLINK_CONFIG_WRAPPER.pdflib= ${BUILDLINK_DIR}/bin/pdflib-config + +.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) +PDFLIB_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.pdflib} +CONFIGURE_ENV+= PDFLIB_CONFIG="${PDFLIB_CONFIG}" +.endif + pre-configure: ${BUILDLINK_TARGETS.pdflib} pdflib-buildlink: _BUILDLINK_USE +pdflib-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE .endif # PDFLIB_BUILDLINK_MK |