2002-04-02 16:03:19 +00:00
|
|
|
# ports collection makefile for: gimp-print
|
|
|
|
# Date Created: 2002 01 02
|
|
|
|
# Whom: dgilbert@velocet.ca
|
2006-06-09 14:48:50 +00:00
|
|
|
#
|
2002-04-02 16:03:19 +00:00
|
|
|
# $FreeBSD$
|
2007-04-04 15:05:33 +00:00
|
|
|
# $MCom: ports/print/gutenprint-base/Makefile,v 1.8 2007/03/30 16:45:02 ahze Exp $
|
2006-12-24 20:37:52 +00:00
|
|
|
#
|
2002-04-02 16:03:19 +00:00
|
|
|
|
2007-04-04 15:05:33 +00:00
|
|
|
PORTNAME?= gutenprint
|
|
|
|
PORTVERSION= 5.1.0
|
|
|
|
PORTREVISION?= 1
|
2002-04-02 16:03:19 +00:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2006-06-09 14:48:50 +00:00
|
|
|
MASTER_SITE_SUBDIR= gimp-print
|
2007-04-04 15:05:33 +00:00
|
|
|
PKGNAMESUFFIX?= -base
|
2006-06-09 14:48:50 +00:00
|
|
|
|
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
|
|
|
COMMENT= GutenPrint Printer Driver
|
2002-04-02 16:03:19 +00:00
|
|
|
|
2006-06-09 14:48:50 +00:00
|
|
|
CONFLICTS= gimp-print-[0-9]*
|
2002-04-02 16:03:19 +00:00
|
|
|
|
2006-06-09 14:48:50 +00:00
|
|
|
USE_BZIP2= yes
|
2004-02-04 04:36:30 +00:00
|
|
|
USE_GETTEXT= yes
|
2004-01-12 14:07:16 +00:00
|
|
|
USE_GETOPT_LONG= yes
|
2002-04-02 16:03:19 +00:00
|
|
|
USE_GMAKE= yes
|
2006-06-09 14:48:50 +00:00
|
|
|
USE_GNOME= gnomehack gnometarget gtk20
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-01-12 14:07:16 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2007-04-04 15:05:33 +00:00
|
|
|
CONFIGURE_ARGS=--with-gimp=no --with-gimp2=no \
|
|
|
|
--with-mandir=${PREFIX}/man
|
|
|
|
USE_LDCONFIG= yes
|
2002-04-02 16:03:19 +00:00
|
|
|
|
2007-04-04 15:05:33 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${PREFIX}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${PREFIX}/lib
|
2002-04-02 16:03:19 +00:00
|
|
|
|
2006-06-09 14:48:50 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-04-04 15:05:33 +00:00
|
|
|
.if ${SLAVE_PORT}=="yes"
|
|
|
|
LIB_DEPENDS+= gutenprintui2.1:${PORTSDIR}/print/gutenprint-base
|
|
|
|
PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config
|
|
|
|
GUTENPRINTUI2_LIBS=`${PKG_CONFIG} --libs gutenprintui2`
|
|
|
|
.else
|
|
|
|
MAN1+= escputil.1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="gimp"
|
2007-04-04 21:48:46 +00:00
|
|
|
LIB_DEPENDS+= gimp-2.0:${PORTSDIR}/graphics/gimp-app \
|
2007-04-04 15:05:33 +00:00
|
|
|
gutenprint.2:${PORTSDIR}/print/gutenprint
|
|
|
|
CONFIGURE_ARGS=--with-gimp2=yes # Override CONFIGURE_ARGS
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/gimp2
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/src/gimp2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-gimp2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="cups"
|
2002-10-05 21:38:10 +00:00
|
|
|
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
|
2002-10-22 06:19:40 +00:00
|
|
|
RUN_DEPENDS+= espgs:${PORTSDIR}/print/cups-pstoraster
|
2007-04-04 15:05:33 +00:00
|
|
|
CONFIGURE_ARGS+= --with-cups=${PREFIX} \
|
|
|
|
--enable-cups-ppds \
|
|
|
|
--enable-cups-level3-ppds
|
|
|
|
MAN8+= cups-calibrate.8 cups-genppd.8 cups-genppdconfig.8 \
|
2006-06-09 14:48:50 +00:00
|
|
|
cups-genppdupdate.8
|
2007-04-04 15:05:33 +00:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/cups
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/src/cups
|
2004-12-04 00:35:12 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-cups
|
2002-06-18 09:51:16 +00:00
|
|
|
.endif
|
|
|
|
|
2007-04-04 15:05:33 +00:00
|
|
|
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="ijs"
|
2002-10-05 21:38:10 +00:00
|
|
|
LIB_DEPENDS+= ijs.1:${PORTSDIR}/print/libijs
|
2007-04-04 15:05:33 +00:00
|
|
|
CONFIGURE_ARGS+=--with-ijs=yes
|
|
|
|
MAN1+= ijsgutenprint.1
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/ghost
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/src/ghost
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-ghostscript
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="foomatic"
|
|
|
|
BUILD_DEPENDS+= foomatic-combo-xml:${PORTSDIR}/print/foomatic-db-engine
|
|
|
|
RUN_DEPENDS+= foomatic-combo-xml:${PORTSDIR}/print/foomatic-db-engine \
|
|
|
|
foomatic-db>0:${PORTSDIR}/print/foomatic-db
|
|
|
|
CONFIGURE_ARGS+=--with-foomatic=yes --with-foomatic3=yes
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/foomatic
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/src/foomatic
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-foomatic
|
2002-06-18 09:51:16 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
CONFIGURE_ARGS+= --with-user-guide=no
|
|
|
|
.endif
|
|
|
|
|
2006-12-24 20:37:52 +00:00
|
|
|
post-patch:
|
2007-04-06 12:45:56 +00:00
|
|
|
.if ${SLAVE_PORT}=="no" || ${GUT_SLAVE}!="cups"
|
|
|
|
@${REINPLACE_CMD} -e 's|cups ||' ${WRKSRC}/src/Makefile.in
|
2007-04-09 12:26:33 +00:00
|
|
|
.endif
|
|
|
|
.if ${SLAVE_PORT}=="yes"
|
|
|
|
@${REINPLACE_CMD} -e 's|= escputil.1|= |' ${WRKSRC}/man/Makefile.in
|
2007-04-06 12:45:56 +00:00
|
|
|
.endif
|
2007-04-04 15:05:33 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%GUTENPRINTUI2_LIBS%%|${GUTENPRINTUI2_LIBS}|' \
|
|
|
|
${WRKSRC}/src/gimp2/Makefile.in
|
2006-12-24 20:37:52 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|$$libdir/gimp/1.2/plug-ins||g' \
|
|
|
|
${WRKSRC}/configure
|
2007-04-04 15:05:33 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|@mandir@|${PREFIX}/man|' ${WRKSRC}/man/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|= $$(pkglibdir)|= ${PREFIX}/libexec/cups|' \
|
|
|
|
${WRKSRC}/src/cups/Makefile.in
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if ${SLAVE_PORT}=="yes"
|
|
|
|
@(cd ${WRKSRC}/man && ${GMAKE} ${INSTALL_TARGET})
|
|
|
|
.endif
|
2006-12-24 20:37:52 +00:00
|
|
|
|
2006-06-09 14:48:50 +00:00
|
|
|
.include <bsd.port.post.mk>
|