diff options
-rw-r--r-- | print/gnome-print/Makefile | 7 | ||||
-rw-r--r-- | print/gnome-print/buildlink.mk | 50 |
2 files changed, 53 insertions, 4 deletions
diff --git a/print/gnome-print/Makefile b/print/gnome-print/Makefile index e1edcf05dc2..ca855ac86bb 100644 --- a/print/gnome-print/Makefile +++ b/print/gnome-print/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.39 2001/08/11 18:24:16 rh Exp $ +# $NetBSD: Makefile,v 1.40 2001/10/01 07:04:03 rh Exp $ # DISTNAME= gnome-print-0.29 @@ -9,11 +9,8 @@ MAINTAINER= rh@netbsd.org HOMEPAGE= http://www.levien.com/gnome/print-arch.html COMMENT= Prototype implementation of the Gnome Printing Architecture -DEPENDS+= gnome-libs>=1.0.56:../../x11/gnome-libs -DEPENDS+= libxml>=1.8.5:../../textproc/libxml DEPENDS+= libunicode>=0.4:../../textproc/libunicode DEPENDS+= ghostscript{,-nox11}-[6-9]*:../../print/ghostscript -DEPENDS+= gdk-pixbuf-gnome>=0.10.1:../../graphics/gdk-pixbuf-gnome USE_X11BASE= yes USE_LIBTOOL= yes @@ -27,4 +24,6 @@ MAKE_ENV+= HOME=${WRKSRC} CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +.include "../../graphics/gdk-pixbuf-gnome/buildlink.mk" +.include "../../textproc/libxml/buildlink.mk" .include "../../mk/bsd.pkg.mk" diff --git a/print/gnome-print/buildlink.mk b/print/gnome-print/buildlink.mk new file mode 100644 index 00000000000..392eae4b070 --- /dev/null +++ b/print/gnome-print/buildlink.mk @@ -0,0 +1,50 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/10/01 07:04:03 rh Exp $ +# +# This Makefile fragment is included by packages that use gnome-print. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.gnome-print to the dependency pattern +# for the version of gnome-print 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(GNOME_PRINT_BUILDLINK_MK) +GNOME_PRINT_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.gnome-print?= gnome-print>=0.29 +DEPENDS+= ${BUILDLINK_DEPENDS.gnome-print}:../../print/gnome-print + +EVAL_PREFIX+= BUILDLINK_PREFIX.gnome-print=gnome-print +BUILDLINK_PREFIX.gnome-print_DEFAULT= ${X11PREFIX} +BUILDLINK_FILES.gnome-print+= include/libgnomeprint/* +BUILDLINK_FILES.gnome-print+= lib/libgnomeprint.* + +.include "../../graphics/gdk-pixbuf-gnome/buildlink.mk" +.include "../../textproc/libxml/buildlink.mk" + +BUILDLINK_TARGETS.gnome-print= gnome-print-buildlink +BUILDLINK_TARGETS.gnome-print+= gnome-print-buildlink-config-wrapper +BUILDLINK_TARGETS.gnome-print+= libart-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gnome-print} + +BUILDLINK_CONFIG.gnome-print= ${BUILDLINK_PREFIX.gnome-print}/lib/printConf.sh +BUILDLINK_CONFIG_WRAPPER.gnome-print= ${BUILDLINK_DIR}/lib/printConf.sh + +.if defined(USE_CONFIG_WRAPPER) +GNOME_PRINT_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.gnome-print} +CONFIGURE_ENV+= GNOME_PRINT_CONFIG="${GNOME_PRINT_CONFIG}" +MAKE_ENV+= GNOME_PRINT_CONFIG="${GNOME_PRINT_CONFIG}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.gnome-print} +gnome-print-buildlink: _BUILDLINK_USE +gnome-print-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE +libart-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.endif # GNOME_PRINT_BUILDLINK_MK |