summaryrefslogtreecommitdiff
path: root/devel/libmm
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-10-23 14:40:36 +0000
committerjlam <jlam@pkgsrc.org>2001-10-23 14:40:36 +0000
commitb476b722de34b39ad7bc82e9c8f278e8158b1321 (patch)
treea7038153504e8e0646caacf4b858c40143bacc44 /devel/libmm
parentd688ce896600c1260030e4462d73d40b273bebca (diff)
downloadpkgsrc-b476b722de34b39ad7bc82e9c8f278e8158b1321.tar.gz
Buildlinkify (trivially).
Diffstat (limited to 'devel/libmm')
-rw-r--r--devel/libmm/Makefile6
-rw-r--r--devel/libmm/buildlink.mk47
2 files changed, 50 insertions, 3 deletions
diff --git a/devel/libmm/Makefile b/devel/libmm/Makefile
index 9013dbcaafa..2ed032a539c 100644
--- a/devel/libmm/Makefile
+++ b/devel/libmm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/07/14 23:06:26 cjones Exp $
+# $NetBSD: Makefile,v 1.2 2001/10/23 14:40:36 jlam Exp $
#
DISTNAME= mm-1.1.3
@@ -10,8 +10,8 @@ MAINTAINER= cjones@netbsd.org
HOMEPAGE= http://www.engelschall.com/sw/mm/
COMMENT= Portable abstraction layer for shared memory
-HAS_CONFIGURE= YES
-GNU_CONFIGURE= YES
+USE_BUILDLINK_ONLY= YES
+GNU_CONFIGURE= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
diff --git a/devel/libmm/buildlink.mk b/devel/libmm/buildlink.mk
new file mode 100644
index 00000000000..be1b4e9382f
--- /dev/null
+++ b/devel/libmm/buildlink.mk
@@ -0,0 +1,47 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/10/23 14:40:36 jlam Exp $
+#
+# This Makefile fragment is included by packages that use libmm.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.libmm to the dependency pattern
+# for the version of libmm desired.
+# (2) Include this Makefile fragment in the package Makefile,
+# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
+# search path, and
+# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
+# path.
+
+.if !defined(LIBMM_BUILDLINK_MK)
+LIBMM_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.libmm?= libmm>=1.1.3
+DEPENDS+= ${BUILDLINK_DEPENDS.libmm}:../../devel/libmm
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.libmm=libmm
+BUILDLINK_PREFIX.libmm_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.libmm= include/mm.h
+BUILDLINK_FILES.libmm+= lib/libmm.*
+
+BUILDLINK_TARGETS.libmm= libmm-buildlink
+BUILDLINK_TARGETS.libmm+= libmm-buildlink-config-wrapper
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libmm}
+
+BUILDLINK_CONFIG.libmm= ${BUILDLINK_PREFIX.libmm}/bin/mm-config
+BUILDLINK_CONFIG_WRAPPER.libmm= ${BUILDLINK_DIR}/bin/mm-config
+REPLACE_BUILDLINK_SED+= \
+ -e "s|${BUILDLINK_CONFIG_WRAPPER.libmm}|${BUILDLINK_CONFIG.libmm}|g"
+
+.if defined(USE_CONFIG_WRAPPER)
+MM_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.libmm}
+CONFIGURE_ENV+= MM_CONFIG="${MM_CONFIG}"
+MAKE_ENV+= MM_CONFIG="${MM_CONFIG}"
+.endif
+
+pre-configure: ${BUILDLINK_TARGETS.libmm}
+libmm-buildlink: _BUILDLINK_USE
+libmm-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
+
+.endif # LIBMM_BUILDLINK_MK