From 327b7e5a8b218671de3408190841a004656182db Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Thu, 26 Jun 2003 17:49:39 +0000 Subject: Conditionalize CUPS support to fix the make package on bento. Reported by: bento via kris --- print/libgnomeprint/Makefile | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'print/libgnomeprint/Makefile') diff --git a/print/libgnomeprint/Makefile b/print/libgnomeprint/Makefile index b984a98196dc..e20d734538f3 100644 --- a/print/libgnomeprint/Makefile +++ b/print/libgnomeprint/Makefile @@ -7,6 +7,7 @@ PORTNAME= libgnomeprint PORTVERSION= 2.2.1.3 +PORTREVISION= 1 CATEGORIES= print gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.2 @@ -23,10 +24,25 @@ USE_GNOME= gnomeprefix gnomehack gnomehier libbonobo libartlgpl2 gtk20 INSTALLS_SHLIB= yes USE_LIBTOOL= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LIBS="-L${LOCALBASE}/lib" + LDFLAGS="-L${LOCALBASE}/lib" PLIST_SUB= VERSION=${PORTVERSION} +.include + +.if exists(${LOCALBASE}/lib/libcups.so) +WITH_CUPS= yes +.endif + +.if defined(WITH_CUPS) && !defined(WITHOUT_CUPS) +CONFIGURE_ARGS+= --with-cups +LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base +PLIST_SUB+= CUPS:="" +.else +CONFIGURE_ARGS+= --without-cups +PLIST_SUB+= CUPS:="@comment " +.endif + post-patch: @${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \ 's|||' @@ -36,4 +52,4 @@ post-install: @${MKDIR} ${PREFIX}/etc/gnome/libgnomeprint-2.0/fonts @${TOUCH} ${PREFIX}/etc/gnome/libgnomeprint-2.0/fonts/gnome-print.fontmap -.include +.include -- cgit v1.2.3