summaryrefslogtreecommitdiff
path: root/converters/uulib
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-08-19 19:38:37 +0000
committerjlam <jlam@pkgsrc.org>2001-08-19 19:38:37 +0000
commit2eeea546627d029010b1f138b2fd46da704ad56f (patch)
tree2ee9323d0593a2147818de654f04d5ef27af522d /converters/uulib
parent3aea762a167077d88d385700108859caf965ba15 (diff)
downloadpkgsrc-2eeea546627d029010b1f138b2fd46da704ad56f.tar.gz
Mark as USE_BUILDLINK_ONLY and add a buildlink.mk file for use by other
package Makefiles.
Diffstat (limited to 'converters/uulib')
-rw-r--r--converters/uulib/Makefile3
-rw-r--r--converters/uulib/buildlink.mk34
2 files changed, 36 insertions, 1 deletions
diff --git a/converters/uulib/Makefile b/converters/uulib/Makefile
index e04d8063990..c502aa1fa23 100644
--- a/converters/uulib/Makefile
+++ b/converters/uulib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2001/06/10 16:42:50 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2001/08/19 19:38:37 jlam Exp $
#
DISTNAME= uudeview-0.5.15
@@ -13,6 +13,7 @@ COMMENT= Library for uu/xx/Base64/BinHex de-/encoding
# "kdesupport-2.1b" included "uu" library.
CONFLICTS= kdesupport-2.1b
+USE_BUILDLINK_ONLY= # defined
GNU_CONFIGURE= # defined
USE_LIBTOOL= # defined
diff --git a/converters/uulib/buildlink.mk b/converters/uulib/buildlink.mk
new file mode 100644
index 00000000000..bbae0e219d7
--- /dev/null
+++ b/converters/uulib/buildlink.mk
@@ -0,0 +1,34 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/08/19 19:38:37 jlam Exp $
+#
+# This Makefile fragment is included by packages that use uulib.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.uulib to the dependency pattern
+# for the version of uulib 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(UULIB_BUILDLINK_MK)
+UULIB_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.uulib?= uulib>=0.5.15
+DEPENDS+= ${BUILDLINK_DEPENDS.uulib}:../../databases/uulib
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.uulib=uulib
+BUILDLINK_PREFIX.uulib_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.uulib= include/uu.h
+BUILDLINK_FILES.uulib+= lib/libuu.*
+
+BUILDLINK_TARGETS.uulib= uulib-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.uulib}
+
+pre-configure: ${BUILDLINK_TARGETS.uulib}
+uulib-buildlink: _BUILDLINK_USE
+
+.endif # UULIB_BUILDLINK_MK