diff options
-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 |