summaryrefslogtreecommitdiff
path: root/graphics/libwmf
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2001-07-09 18:59:48 +0000
committerzuntum <zuntum@pkgsrc.org>2001-07-09 18:59:48 +0000
commit1552b67c41b32b01dc4d656d8eea8a56d3269977 (patch)
treed726c4b0f47f1f29481f2d1ad9880d99ffdbedbb /graphics/libwmf
parent480c07a4a6a6bed5cf8a91621bc9166673d4285f (diff)
downloadpkgsrc-1552b67c41b32b01dc4d656d8eea8a56d3269977.tar.gz
Add buildlink.mk file for use by other packages
Diffstat (limited to 'graphics/libwmf')
-rw-r--r--graphics/libwmf/buildlink.mk45
1 files changed, 45 insertions, 0 deletions
diff --git a/graphics/libwmf/buildlink.mk b/graphics/libwmf/buildlink.mk
new file mode 100644
index 00000000000..c7f6293733f
--- /dev/null
+++ b/graphics/libwmf/buildlink.mk
@@ -0,0 +1,45 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/07/09 18:59:48 zuntum Exp $
+#
+# This Makefile fragment is included by packages that use libwmf.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.libwmf to the dependency pattern
+# for the version of libwmf 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(LIBWMF_BUILDLINK_MK)
+LIBWMF_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.libwmf?= libwmf>=0.1.21
+DEPENDS+= ${BUILDLINK_DEPENDS.libwmf}:../../graphics/libwmf
+
+BUILDLINK_PREFIX.libwmf= ${LOCALBASE}
+BUILDLINK_FILES.libwmf= include/libwmf/*.h
+BUILDLINK_FILES.libwmf+= lib/libXwmf.a
+BUILDLINK_FILES.libwmf+= lib/libdib.a
+BUILDLINK_FILES.libwmf+= lib/libeps.a
+BUILDLINK_FILES.libwmf+= lib/libepswmf.a
+BUILDLINK_FILES.libwmf+= lib/libgdwmf.a
+BUILDLINK_FILES.libwmf+= lib/libwmf.a
+BUILDLINK_FILES.libwmf+= lib/libxfig.a
+BUILDLINK_FILES.libwmf+= lib/libxfwmf.a
+BUILDLINK_FILES.libwmf+= lib/libxgd.a
+
+.include "../../graphics/freetype-lib/buildlink.mk"
+.include "../../graphics/png/buildlink.mk"
+.include "../../graphics/xpm/buildlink.mk"
+
+BUILDLINK_TARGETS.libwmf= libwmf-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libwmf}
+
+pre-configure: ${BUILDLINK_TARGETS.libwmf}
+libwmf-buildlink: _BUILDLINK_USE
+
+.endif # LIBWMF_BUILDLINK_MK