diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-06-26 17:49:39 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-06-26 17:49:39 +0000 |
commit | 327b7e5a8b218671de3408190841a004656182db (patch) | |
tree | 44837bd506de1748f7b581ee8fa97e64f15b6181 /print/libgnomeprint/Makefile | |
parent | 2aa243bd678cc10687c1cbc57b89a1adb216edea (diff) | |
download | ports-327b7e5a8b218671de3408190841a004656182db.tar.gz ports-327b7e5a8b218671de3408190841a004656182db.zip |
Notes
Diffstat (limited to 'print/libgnomeprint/Makefile')
-rw-r--r-- | print/libgnomeprint/Makefile | 20 |
1 files changed, 18 insertions, 2 deletions
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 <bsd.port.pre.mk> + +.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|<malloc[.]h>|<stdlib.h>|' @@ -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 <bsd.port.mk> +.include <bsd.port.post.mk> |