summaryrefslogtreecommitdiff
path: root/graphics/fnlib
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2001-07-03 16:30:19 +0000
committerzuntum <zuntum@pkgsrc.org>2001-07-03 16:30:19 +0000
commit36e001929bbf6729d898d52131c1290749781669 (patch)
treef3554752c9024d400d2790584d0b25535b5235e7 /graphics/fnlib
parent9cdfa4b2b104b45ed15ef41c3de13362691346f6 (diff)
downloadpkgsrc-36e001929bbf6729d898d52131c1290749781669.tar.gz
o convert to use buildlink.mk files
o add buildlink.mk file for use by other packages Fixes enlightenment build problem noted by David Brownlee <abs@netbsd.org> in private mail.
Diffstat (limited to 'graphics/fnlib')
-rw-r--r--graphics/fnlib/Makefile6
-rw-r--r--graphics/fnlib/buildlink.mk35
2 files changed, 38 insertions, 3 deletions
diff --git a/graphics/fnlib/Makefile b/graphics/fnlib/Makefile
index 8bf6479cafe..dab27eb440e 100644
--- a/graphics/fnlib/Makefile
+++ b/graphics/fnlib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2001/02/16 15:22:18 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2001/07/03 16:30:19 zuntum Exp $
DISTNAME= fnlib-0.5
CATEGORIES= x11 graphics
@@ -7,8 +7,7 @@ MASTER_SITES= ftp://ftp.enlightenment.org/pub/e/enlightenment/libs/
MAINTAINER= root@garbled.net
COMMENT= color font rendering library for X11R6
-DEPENDS+= imlib-*:../../graphics/imlib
-
+USE_BUILDLINK_ONLY= YES
USE_X11BASE= # defined
GNU_CONFIGURE= # defined
@@ -19,4 +18,5 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fnlib
${INSTALL_DATA} ${WRKSRC}/doc/fontinfo.README ${PREFIX}/share/doc/fnlib
+.include "../../graphics/imlib/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/fnlib/buildlink.mk b/graphics/fnlib/buildlink.mk
new file mode 100644
index 00000000000..ff98d845834
--- /dev/null
+++ b/graphics/fnlib/buildlink.mk
@@ -0,0 +1,35 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/07/03 16:30:19 zuntum Exp $
+#
+# This Makefile fragment is included by packages that use fnlib.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.fnlib to the dependency pattern
+# for the version of fnlib 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(FNLIB_BUILDLINK_MK)
+FNLIB_BUILDLINK_MK= # defined
+
+BUILDLINK_DEPENDS.fnlib?= fnlib>=0.5
+DEPENDS+= ${BUILDLINK_DEPENDS.fnlib}:../../graphics/fnlib
+
+BUILDLINK_PREFIX.fnlib= ${LOCALBASE}
+BUILDLINK_FILES.fnlib= include/Fnlib*
+BUILDLINK_FILES.fnlib+= lib/libFnlib.*
+
+.include "../../graphics/imlib/buildlink.mk"
+
+BUILDLINK_TARGETS.fnlib= fnlib-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.fnlib}
+
+pre-configure: ${BUILDLINK_TARGETS.fnlib}
+fnlib-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # FNLIB_BUILDLINK_MK