summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-15 09:00:58 +0000
committerjlam <jlam>2001-06-15 09:00:58 +0000
commita01d54ea3c4a093f7fe8abfd22438e54088e679b (patch)
tree0cdbd70d4b6f6b04b4e2480e9576f5cc0a6f5fe1 /graphics
parent2233f721080471104e6a6e01b42b51b556f59ff6 (diff)
downloadpkgsrc-a01d54ea3c4a093f7fe8abfd22438e54088e679b.tar.gz
A buildlink.mk file for use by other packages
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gdk-pixbuf/buildlink.mk37
1 files changed, 37 insertions, 0 deletions
diff --git a/graphics/gdk-pixbuf/buildlink.mk b/graphics/gdk-pixbuf/buildlink.mk
new file mode 100644
index 00000000000..e87caf221b9
--- /dev/null
+++ b/graphics/gdk-pixbuf/buildlink.mk
@@ -0,0 +1,37 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/15 09:00:58 jlam Exp $
+#
+# This Makefile fragment is included by packages that use gdk-pixbuf.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define GDK_PIXBUF_REQD to the version of gdk-pixbuf 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(GDK_PIXBUF_BUILDLINK_MK)
+GDK_PIXBUF_BUILDLINK_MK= # defined
+
+GDK_PIXBUF_REQD?= 0.8.0nb1
+DEPENDS+= gdk-pixbuf>=${GDK_PIXBUF_REQD}:../../graphics/gdk-pixbuf
+
+BUILDLINK_PREFIX.gdk-pixbuf= ${X11PREFIX}
+BUILDLINK_FILES.gdk-pixbuf= include/gdk-pixbuf/*
+BUILDLINK_FILES.gdk-pixbuf+= lib/libgdk_pixbuf.*
+BUILDLINK_FILES.gdk-pixbuf+= lib/libgdk_pixbuf_xlib.*
+
+.include "../../graphics/jpeg/buildlink.mk"
+.include "../../graphics/png/buildlink.mk"
+.include "../../graphics/tiff/buildlink.mk"
+
+BUILDLINK_TARGETS.gdk-pixbuf= gdk-pixbuf-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gdk-pixbuf}
+
+pre-configure: ${BUILDLINK_TARGETS.gdk-pixbuf}
+gdk-pixbuf-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # GDK_PIXBUF_BUILDLINK_MK