mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
5d73c7fae0
High quality drivers for Canon, Epson, Lexmark, and PCL printers for use with Ghostscript, CUPS, Foomatic, and the Gimp WWW: http://gimp-print.sourceforge.net Repocopied by: marcus
81 lines
2.1 KiB
Makefile
81 lines
2.1 KiB
Makefile
# ports collection makefile for: gimp-print
|
|
# Date Created: 2002 01 02
|
|
# Whom: dgilbert@velocet.ca
|
|
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gimp-print
|
|
PORTVERSION= 4.2.7
|
|
PORTREVISION= 2
|
|
CATEGORIES= print
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= GIMP Print Printer Driver
|
|
|
|
USE_GETTEXT= yes
|
|
USE_GETOPT_LONG= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
CONFIGURE_ARGS= --with-gimp=no
|
|
INSTALLS_SHLIB= yes
|
|
|
|
CONFLICTS= gutenprint-[0-9]*
|
|
|
|
MAN1= escputil.1 gimpprint-config.1 ijsgimpprint.1
|
|
MAN3= gimpprint.3
|
|
MAN7= gimpprint-color.7 gimpprint-dithers.7 gimpprint-imagetypes.7 \
|
|
gimpprint-inktypes.7 gimpprint-mediasizes.7 gimpprint-mediasources.7 \
|
|
gimpprint-mediatypes.7 gimpprint-models.7 gimpprint-resolutions.7
|
|
MAN8= cups-calibrate.8
|
|
INFO= gimpprint
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
.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=""
|
|
.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}
|
|
|
|
post-extract:
|
|
@${RM} -f ${WRKSRC}/doc/gimpprint.info*
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|=makeinfo|="makeinfo --no-split"|g ; \
|
|
s|$${CFLAGS:=} -O|$${CFLAGS}|g' ${WRKSRC}/configure
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|$$(PACKAGE)/doc|doc/$$(PACKAGE)|g ; \
|
|
s|LANGUAGE=|LANG=|g ; \
|
|
s|: install-gimp_plug_inPROGRAMS|:|g ; \
|
|
s|$$(RM) -r|$$(RM) -f -r|g'
|
|
|
|
.include <bsd.port.mk>
|