2002-04-02 16:03:19 +00:00
|
|
|
# ports collection makefile for: gimp-print
|
|
|
|
# Date Created: 2002 01 02
|
|
|
|
# Whom: dgilbert@velocet.ca
|
|
|
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gimp-print
|
2002-06-18 09:51:16 +00:00
|
|
|
PORTVERSION= 4.2.1
|
2002-04-02 16:03:19 +00:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= dgilbert@velocet.ca
|
|
|
|
|
2002-08-01 16:22:41 +00:00
|
|
|
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
|
2002-04-02 16:03:19 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2002-06-18 09:51:16 +00:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --with-gimp=no
|
2002-04-02 16:03:19 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
MAN1= escputil.1 gimpprint-config.1
|
|
|
|
MAN3= gimpprint.3
|
|
|
|
MAN8= cups-calibrate.8
|
|
|
|
|
2002-06-18 09:51:16 +00:00
|
|
|
.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'
|
|
|
|
|
2002-04-02 16:03:19 +00:00
|
|
|
.include <bsd.port.mk>
|