summaryrefslogtreecommitdiff
path: root/graphics/imlib
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-01-22 11:04:59 +0000
committerjlam <jlam@pkgsrc.org>2004-01-22 11:04:59 +0000
commitba56c750c32ca6dff3cf4b6743a35afc392e9f33 (patch)
tree90f872810e68be38501c962abfebf9dd3610244e /graphics/imlib
parent70e04b8ec9a13513a3afd0d20695f7a259fcb0a1 (diff)
downloadpkgsrc-ba56c750c32ca6dff3cf4b6743a35afc392e9f33.tar.gz
bl3ify
Diffstat (limited to 'graphics/imlib')
-rw-r--r--graphics/imlib/Makefile23
-rw-r--r--graphics/imlib/buildlink3.mk24
2 files changed, 35 insertions, 12 deletions
diff --git a/graphics/imlib/Makefile b/graphics/imlib/Makefile
index 03ffa65be7c..a4a6221589f 100644
--- a/graphics/imlib/Makefile
+++ b/graphics/imlib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.80 2004/01/03 18:49:43 reed Exp $
+# $NetBSD: Makefile,v 1.81 2004/01/22 11:04:59 jlam Exp $
#
DISTNAME= imlib-1.9.14
@@ -10,6 +10,7 @@ MAINTAINER= tron@NetBSD.org
HOMEPAGE= http://www.nl.rasterman.com/imlib.html
COMMENT= Image manipulation library for X11
+USE_BUILDLINK3= yes
USE_X11BASE= yes
USE_LIBTOOL= yes
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
@@ -19,17 +20,15 @@ PLIST_SUBST+= LOCALBASE=${LOCALBASE}
USE_GMAKE= yes
UNLIMIT_RESOURCES= datasize
-USE_BUILDLINK2= yes
-USE_PKGINSTALL= yes
-
CPPFLAGS+= -DENABLE_NLS
CONFIGURE_ENV+= ac_cv_path_CONVERT_PROG="${LOCALBASE}/bin/convert"
CONFIGURE_ENV+= X_LDFLAGS="${X_LDFLAGS}"
CONFIGURE_ARGS+= --sysconfdir="${PKG_SYSCONFDIR}"
PKG_SYSCONFSUBDIR= imlib
-
EGDIR= ${PREFIX}/share/examples/imlib
+
+USE_PKGINSTALL= yes
CONF_FILES= ${EGDIR}/imrc ${PKG_SYSCONFDIR}/imrc
CONF_FILES+= ${EGDIR}/im_palette.pal \
${PKG_SYSCONFDIR}/im_palette.pal
@@ -51,12 +50,12 @@ post-install:
${LN} -fs ${PREFIX}/share/aclocal/imlib.m4 \
${LOCALBASE}/share/aclocal/imlib.m4
-.include "../../devel/gettext-lib/buildlink2.mk"
-.include "../../graphics/jpeg/buildlink2.mk"
-.include "../../graphics/libungif/buildlink2.mk"
-.include "../../graphics/netpbm/buildlink2.mk"
-.include "../../graphics/png/buildlink2.mk"
-.include "../../graphics/tiff/buildlink2.mk"
-.include "../../x11/gtk/buildlink2.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/libungif/buildlink3.mk"
+.include "../../graphics/netpbm/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/imlib/buildlink3.mk b/graphics/imlib/buildlink3.mk
new file mode 100644
index 00000000000..893f5cc0afa
--- /dev/null
+++ b/graphics/imlib/buildlink3.mk
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/22 11:04:59 jlam Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+IMLIB_BUILDLINK3_MK:= ${IMLIB_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= imlib
+.endif
+
+.if !empty(IMLIB_BUILDLINK3_MK:M+)
+BUILDLINK_PACKAGES+= imlib
+BUILDLINK_DEPENDS.imlib?= imlib>=1.9.14nb5
+BUILDLINK_PKGSRCDIR.imlib?= ../../graphics/imlib
+
+. include "../../devel/gettext-lib/buildlink3.mk"
+. include "../../graphics/jpeg/buildlink3.mk"
+. include "../../graphics/libungif/buildlink3.mk"
+. include "../../graphics/netpbm/buildlink3.mk"
+. include "../../graphics/png/buildlink3.mk"
+. include "../../graphics/tiff/buildlink3.mk"
+. include "../../x11/gtk/buildlink3.mk"
+.endif # IMLIB_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}