summaryrefslogtreecommitdiffstats
path: root/print/gutenprint-base/Makefile
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-06-18 09:51:16 +0000
committerijliao <ijliao@FreeBSD.org>2002-06-18 09:51:16 +0000
commitf77de74192e12f966d351693cbf2ca71a342b455 (patch)
treefb2c50d7563453c13388304194dbd6491d70c1b8 /print/gutenprint-base/Makefile
parentd419868d707660c9672da361d3586d2de5ec47af (diff)
downloadFreeBSD-ports-f77de74192e12f966d351693cbf2ca71a342b455.zip
FreeBSD-ports-f77de74192e12f966d351693cbf2ca71a342b455.tar.gz
upgrade to 4.2.1
PR: 39121 Submitted by: Ports Fury No Response from: maintainer
Diffstat (limited to 'print/gutenprint-base/Makefile')
-rw-r--r--print/gutenprint-base/Makefile49
1 files changed, 44 insertions, 5 deletions
diff --git a/print/gutenprint-base/Makefile b/print/gutenprint-base/Makefile
index b17f432..f5dcc09 100644
--- a/print/gutenprint-base/Makefile
+++ b/print/gutenprint-base/Makefile
@@ -5,23 +5,62 @@
# $FreeBSD$
PORTNAME= gimp-print
-PORTVERSION= 4.2.0
+PORTVERSION= 4.2.1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= dgilbert@velocet.ca
-RUN_DEPENDS= gimp:${PORTSDIR}/graphics/gimp1
-LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base
+LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-cups --with-ghost
USE_GMAKE= yes
+USE_LIBTOOL= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --with-gimp=no
INSTALLS_SHLIB= yes
MAN1= escputil.1 gimpprint-config.1
MAN3= gimpprint.3
MAN8= cups-calibrate.8
+.if defined(WITHOUT_CUPS)
+PLIST_SUB+= CUPS="@comment "
+.else
+LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base
+CONFIGURE_ARGS+= --with-cups=${PREFIX}
+PLIST_SUB+= CUPS=""
+.endif
+
+.if defined(WITHOUT_IJS)
+PLIST_SUB+= IJS="@comment "
+.else
+LIB_DEPENDS= ijs.1:${PORTSDIR}/print/libijs
+CONFIGURE_ARGS+= --with-ijs=yes
+PLIST_SUB+= IJS=""
+.endif
+
+.if defined(NOPORTDOCS)
+CONFIGURE_ARGS+= --with-user-guide=no
+.endif
+
+pre-everything::
+ @${ECHO_MSG}
+ @${ECHO_MSG} "You may use the following build options:"
+ @${ECHO_MSG}
+ @${ECHO_MSG} "WITHOUT_CUPS=yes build without CUPS driver"
+ @${ECHO_MSG} "WITHOUT_IJS=yes build without IJS-based Ghostscript driver"
+ @${ECHO_MSG}
+
+post-extract:
+ @${RM} -f ${WRKSRC}/doc/gimpprint.info*
+
+post-patch:
+ @${PERL} -pi -e 's|makeinfo$$|"makeinfo --no-split"|g ; \
+ s|\$$\{CFLAGS:=\} -O|\$$\{CFLAGS\}|g' ${WRKSRC}/configure
+ @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
+ 's|\$$\(PACKAGE\)/doc|doc/\$$\(PACKAGE\)|g ; \
+ s|\$$\(RM\) -r|\$$\(RM\) -f -r|g'
+
.include <bsd.port.mk>
OpenPOWER on IntegriCloud