summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorwiz <wiz>2002-07-08 02:14:41 +0000
committerwiz <wiz>2002-07-08 02:14:41 +0000
commitd2d83e3ec7dab0d6982d4cc8eb35e7372b1edb79 (patch)
tree7ff0dc553b0277e2195050447a8f652475d73c7f /graphics
parent8b71cea66be0ccd1b603b3e4048f4f3d5e01067b (diff)
downloadpkgsrc-d2d83e3ec7dab0d6982d4cc8eb35e7372b1edb79.tar.gz
Fix buildlink, and add config wrapper for libart2-config.
Patch provided by Julio Merino in pkg/17425.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libart2/buildlink.mk21
1 files changed, 17 insertions, 4 deletions
diff --git a/graphics/libart2/buildlink.mk b/graphics/libart2/buildlink.mk
index 07b6e9a86f7..e6356e78163 100644
--- a/graphics/libart2/buildlink.mk
+++ b/graphics/libart2/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.1.1.1 2002/05/22 21:30:31 agc Exp $
+# $NetBSD: buildlink.mk,v 1.2 2002/07/08 02:14:41 wiz Exp $
#
# This Makefile fragment is included by packages that use the library
# provided by libart2.
@@ -23,14 +23,27 @@ DEPENDS+= ${BUILDLINK_DEPENDS.libart2}:../../graphics/libart2
EVAL_PREFIX+= BUILDLINK_PREFIX.libart2=libart2
BUILDLINK_PREFIX.libart2= ${LOCALBASE}
-BUILDLINK_FILES.libart2= bin/libart22-config
-BUILDLINK_FILES.libart2+= include/libart2-2.0/libart2_lgpl/*
-BUILDLINK_FILES.libart2+= lib/libart2_lgpl_2.*
+BUILDLINK_FILES.libart2= include/libart-2.0/libart_lgpl/*
+BUILDLINK_FILES.libart2+= lib/libart_lgpl_2.*
BUILDLINK_TARGETS.libart2= libart2-buildlink
+BUILDLINK_TARGETS.libart2+= libart2-buildlink-config-wrapper
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libart2}
+BUILDLINK_CONFIG.libart2= \
+ ${BUILDLINK_PREFIX.libart2}/bin/libart2-config
+BUILDLINK_CONFIG_WRAPPER.libart2= \
+ ${BUILDLINK_DIR}/bin/libart2-config
+REPLACE_BUILDLINK_SED+= \
+ -e "s|${BUILDLINK_CONFIG_WRAPPER.libart2}|${BUILDLINK_CONFIG.libart2}|g"
+.if defined(USE_CONFIG_WRAPPER)
+LIBART2_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.libart2}
+CONFIGURE_ENV+= LIBART2_CONFIG="${LIBART2_CONFIG}"
+MAKE_ENV+= LIBART2_CONFIG="${LIBART2_CONFIG}"
+.endif
+
pre-configure: ${BUILDLINK_TARGETS.libart2}
libart2-buildlink: _BUILDLINK_USE
+libart2-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
.endif # LIBART2_BUILDLINK_MK