summaryrefslogtreecommitdiff
path: root/graphics/hermes
diff options
context:
space:
mode:
authorzuntum <zuntum>2001-06-30 11:09:50 +0000
committerzuntum <zuntum>2001-06-30 11:09:50 +0000
commit952951838f44344c77f07d315a2962b845a75307 (patch)
tree66de5d07fad197bb2a3f263cc896cae42b896379 /graphics/hermes
parentbfceb7f1c8a10ff0bc511fee4d601b7da4a69fe7 (diff)
downloadpkgsrc-952951838f44344c77f07d315a2962b845a75307.tar.gz
Add buildlink.mk file for use by other packages and set USE_BUILDLINK_ONLY
Diffstat (limited to 'graphics/hermes')
-rw-r--r--graphics/hermes/Makefile3
-rw-r--r--graphics/hermes/buildlink.mk33
2 files changed, 35 insertions, 1 deletions
diff --git a/graphics/hermes/Makefile b/graphics/hermes/Makefile
index 52e9ede4425..c472555adee 100644
--- a/graphics/hermes/Makefile
+++ b/graphics/hermes/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2001/02/16 15:22:23 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2001/06/30 11:09:50 zuntum Exp $
DISTNAME= Hermes-1.3.2
WRKSRC= ${WRKDIR}/Hermes-1.3.2
@@ -9,6 +9,7 @@ MAINTAINER= root@garbled.net
HOMEPAGE= http://www.clanlib.org/hermes/
COMMENT= Library for conversion of pixel graphics
+USE_BUILDLINK_ONLY= YES
USE_LIBTOOL= yes
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
GNU_CONFIGURE= yes
diff --git a/graphics/hermes/buildlink.mk b/graphics/hermes/buildlink.mk
new file mode 100644
index 00000000000..3a76eb05bc4
--- /dev/null
+++ b/graphics/hermes/buildlink.mk
@@ -0,0 +1,33 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/30 11:09:50 zuntum Exp $
+#
+# This Makefile fragment is included by packages that use Hermes.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.Hermes to the dependency pattern
+# for the version of Hermes 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(HERMES_BUILDLINK_MK)
+HERMES_BUILDLINK_MK= # defined
+
+BUILDLINK_DEPENDS.Hermes?= Hermes>=1.3.2
+DEPENDS+= ${BUILDLINK_DEPENDS.Hermes}:../../graphics/hermes
+
+BUILDLINK_PREFIX.Hermes= ${LOCALBASE}
+BUILDLINK_FILES.Hermes= include/Hermes/*
+BUILDLINK_FILES.Hermes+= lib/libHermes.*
+
+BUILDLINK_TARGETS.Hermes= Hermes-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.Hermes}
+
+pre-configure: ${BUILDLINK_TARGETS.Hermes}
+Hermes-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # HERMES_BUILDLINK_MK