diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-01-02 04:30:48 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-01-02 04:30:48 +0800 |
commit | 12dbcd3ba718e8e191faa2e246ea639639e54023 (patch) | |
tree | 802ef8213596f33f38ffd2e21e8eff2798398880 /print/gutenprint-base/Makefile | |
parent | 939c5edb163be7c8ef5f3a1c94b5301d832fa0a9 (diff) | |
download | marcuscom-ports-12dbcd3ba718e8e191faa2e246ea639639e54023.tar marcuscom-ports-12dbcd3ba718e8e191faa2e246ea639639e54023.tar.gz marcuscom-ports-12dbcd3ba718e8e191faa2e246ea639639e54023.tar.bz2 marcuscom-ports-12dbcd3ba718e8e191faa2e246ea639639e54023.tar.lz marcuscom-ports-12dbcd3ba718e8e191faa2e246ea639639e54023.tar.xz marcuscom-ports-12dbcd3ba718e8e191faa2e246ea639639e54023.tar.zst marcuscom-ports-12dbcd3ba718e8e191faa2e246ea639639e54023.zip |
Add gimp-gutenprint (gimp-print) print plugin
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8127 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'print/gutenprint-base/Makefile')
-rw-r--r-- | print/gutenprint-base/Makefile | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/print/gutenprint-base/Makefile b/print/gutenprint-base/Makefile new file mode 100644 index 000000000..eaf5b0ab7 --- /dev/null +++ b/print/gutenprint-base/Makefile @@ -0,0 +1,84 @@ +# ports collection makefile for: gimp-print +# Date Created: 2002 01 02 +# Whom: dgilbert@velocet.ca +# +# $FreeBSD: ports/print/gutenprint/Makefile,v 1.29 2006/12/24 20:37:52 mezz Exp $ +# $MCom: ports/print/gutenprint/Makefile,v 1.3 2006/02/25 00:13:44 marcus Exp $ +# + +PORTNAME= gutenprint +PORTVERSION= 5.0.0 +CATEGORIES= print +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= gimp-print + +MAINTAINER= ahze@FreeBSD.org +COMMENT= GutenPrint Printer Driver + +CONFLICTS= gimp-print-[0-9]* + +USE_BZIP2= yes +USE_GETTEXT= yes +USE_GETOPT_LONG= yes +USE_GMAKE= yes +USE_GNOME= gnomehack gnometarget gtk20 +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +CONFIGURE_ARGS?=--with-gimp=no --with-gimp2=no \ + --without-foomatic +USE_LDCONFIG= yes + +CPPFLAGS= -I${LOCALBASE}/include +LDFLAGS= -L${LOCALBASE}/lib + +.include <bsd.port.pre.mk> + +.if ${SLAVE_PORT}=="yes" +PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config +GUTENPRINTUI2_LIBS=`${PKG_CONFIG} --libs gutenprintui2` +LIB_DEPENDS+= gimp-2.0.0:${PORTSDIR}/graphics/gimp-app \ + gutenprint.2:${PORTSDIR}/print/gutenprint +CONFIGURE_ARGS+=--with-gimp2=yes +.else +MAN1= escputil.1 ijsgutenprint.1 + +.if defined(WITH_CUPS) && !defined(WITHOUT_CUPS) +LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base +RUN_DEPENDS+= espgs:${PORTSDIR}/print/cups-pstoraster +CONFIGURE_ARGS+= --with-cups=${PREFIX} +PLIST_SUB+= CUPS="" +MAN8= cups-calibrate.8 cups-genppd.8 cups-genppdconfig.8 \ + cups-genppdupdate.8 +.else +PLIST_SUB+= CUPS="@comment " +CONFIGURE_ARGS+= --without-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} " WITH_CUPS=yes build with CUPS driver" + @${ECHO_MSG} " WITHOUT_IJS=yes build without IJS-based Ghostscript driver" + @${ECHO_MSG} +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|%%GUTENPRINTUI2_LIBS%%|${GUTENPRINTUI2_LIBS}|' \ + ${WRKSRC}/src/gimp2/Makefile.in + @${REINPLACE_CMD} -e 's|$$libdir/gimp/1.2/plug-ins||g' \ + ${WRKSRC}/configure + +.include <bsd.port.post.mk> |