summaryrefslogtreecommitdiff
path: root/print/gutenprint
diff options
context:
space:
mode:
authorChristoph Moench-Tegeder <cmt@FreeBSD.org>2017-06-04 21:00:48 +0000
committerChristoph Moench-Tegeder <cmt@FreeBSD.org>2017-06-04 21:00:48 +0000
commit1c0d01e3142c2e94615cc7673190e70031fbbd35 (patch)
treea968f5e6bcb1dccb4c01f0ab3ed81832ec7451b9 /print/gutenprint
parentwww/nginx and www/nginx-full: remove obsolete modules and bump PORTREVISION (diff)
print/gutenprint: update to 5.2.12
https://sourceforge.net/projects/gimp-print/files/gutenprint-5.2/5.2.12/ The -ijs and -foomatic backends have been removed by upstream, leaving -cups as the sole choice of backend. Therefore, the -base and -cups ports have been merged into the main gutenprint port and the obsolete components have been removed. PR: 217118 Submitted by: bsam, tijl Reported by: tijl
Notes
Notes: svn path=/head/; revision=442589
Diffstat (limited to 'print/gutenprint')
-rw-r--r--print/gutenprint/Makefile63
-rw-r--r--print/gutenprint/pkg-descr6
2 files changed, 47 insertions, 22 deletions
diff --git a/print/gutenprint/Makefile b/print/gutenprint/Makefile
index 092c8e7db6e2..f2fa36f087ee 100644
--- a/print/gutenprint/Makefile
+++ b/print/gutenprint/Makefile
@@ -1,27 +1,54 @@
# Created by: dgilbert@velocet.ca
# $FreeBSD$
-# $MCom: ports/print/gutenprint/Makefile,v 1.8 2007/04/03 17:42:21 ahze Exp $
+# $MCom: ports/print/gutenprint-base/Makefile,v 1.8 2007/03/30 16:45:02 ahze Exp $
PORTNAME= gutenprint
-PORTVERSION= 5.2.10
+PORTVERSION= 5.2.12
+PORTREVISION?= 0 # also print/gimp-gutenprint
CATEGORIES= print
+MASTER_SITES= SF/gimp-print/gutenprint-5.2/${PORTVERSION}
MAINTAINER= cmt@burggraben.net
-COMMENT= The "meta-port" for GutenPrint
-
-RUN_DEPENDS= gutenprint-base>0:print/gutenprint-base
-
-USES= metaport
-
-OPTIONS_DEFINE= CUPS GIMP IJS FOOMATIC
-OPTIONS_DEFAULT= IJS
-CUPS_DESC= GutenPrint (gimp-print) Cups Drivers
-GIMP_DESC= GIMP Gutenprint printing plugin
-IJS_DESC= IJS GhostScript Drivers
-FOOMATIC_DESC= Foomatic data files
-CUPS_RUN_DEPENDS= gutenprint-cups>0:print/gutenprint-cups
-GIMP_RUN_DEPENDS= gimp-gutenprint>0:print/gimp-gutenprint
-IJS_RUN_DEPENDS= gutenprint-ijs>0:print/gutenprint-ijs
-FOOMATIC_RUN_DEPENDS+= gutenprint-foomatic>0:print/gutenprint-foomatic
+COMMENT= Gutenprint Printer Drivers
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+CONFLICTS= gimp-print-[0-9]*
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-static --enable-simplified-cups-ppds DLOPEN_LIBS=" "
+INSTALL_TARGET= install-strip
+USES= gettext gmake libtool pathfix pkgconfig tar:bzip2
+
+.if !defined(GUT_SLAVE)
+LIB_DEPENDS+= libcupsimage.so:print/cups
+RUN_DEPENDS+= ${LOCALBASE}/libexec/cups/filter/gstoraster:print/cups-filters
+CONFIGURE_ARGS+=--disable-libgutenprintui2 --without-gimp2
+USES+= iconv
+USE_LDCONFIG= yes
+.else
+LIB_DEPENDS+= libgutenprint.so:print/gutenprint
+MAKE_ARGS+= GUTENPRINT_LIBS='`$$(PKG_CONFIG) --libs gutenprint`'
+.if ${GUT_SLAVE} == "gimp"
+LIB_DEPENDS+= libgimp-2.0.so:graphics/gimp-app
+CONFIGURE_ARGS+=--enable-libgutenprintui2 --with-gimp2
+BUILD_WRKSRC= ${WRKSRC}/src/gimp2
+INSTALL_WRKSRC= ${WRKSRC}/src/gimp2
+USE_GNOME+= gtk20
+.endif
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/bin/lpstat|${LOCALBASE}/bin/lpstat|' \
+ ${WRKSRC}/src/gutenprintui2/plist.c
+ @${REINPLACE_CMD} -e '/DEPENDENCIES/s/$$(GUTENPRINT_LIBS)//' \
+ ${WRKSRC}/src/gimp2/Makefile.in
+
+post-install:
+.if defined(GUT_SLAVE) && ${GUT_SLAVE} == "gimp"
+ @(cd ${WRKSRC}/src/gutenprintui2 && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
+ ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+.endif
.include <bsd.port.mk>
diff --git a/print/gutenprint/pkg-descr b/print/gutenprint/pkg-descr
index a9e5071a3249..4bd414dbd42a 100644
--- a/print/gutenprint/pkg-descr
+++ b/print/gutenprint/pkg-descr
@@ -1,6 +1,4 @@
-The "meta-port" for GutenPrint
-
-High quality drivers for Canon, Epson, Lexmark, and PCL printers
-for use with Ghostscript, CUPS, Foomatic, and the Gimp
+High quality drivers for Canon, Epson, Lexmark, Sony, Olympus, and PCL
+printers for use with CUPS and GIMP.
WWW: http://gimp-print.sourceforge.net/