openbsd-ports/print/foomatic-db/Makefile
2011-07-08 23:28:17 +00:00

60 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.18 2011/07/08 23:28:17 ajacoutot Exp $
PKG_ARCH= *
COMMENT= Foomatic PPD data
V= 20110708
DISTNAME= foomatic-db-4.0-${V}
PKGNAME= foomatic-db-4.0.${V}
CATEGORIES= print
HOMEPAGE= http://www.linux-foundation.org/en/OpenPrinting/Database/Foomatic
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2 - MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
# tarballs are only available for a 24 hour period
#MASTER_SITES= http://www.openprinting.org/download/foomatic/
MASTER_SITES= http://distfiles.bsdfrog.org/
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --disable-ppds-to-cups
WRKDIST= ${WRKDIR}/foomatic-db-${V}
NO_BUILD= Yes
NO_REGRESS= Yes
pre-configure:
perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g' \
${WRKSRC}/configure
# From Fedora ; these files are already shipped by the foo2zjs package
# RH #208851 #438319 #518267
.for x in zjs oak-z1 oak hp qpdl lava kyo xqx slx hiperc
find ${WRKSRC}/db/source/printer -name '*.xml' | xargs grep -l "<driver>foo2${x}" | xargs rm
rm -f ${WRKSRC}/db/source/driver/foo2${x}.xml \
${WRKSRC}/db/source/opt/foo2${x}-*
.endfor
.for i in Xerox-Phaser_6110 Samsung-CLP-300 Samsung-CLP-310 Samsung-CLP-315
mv ${WRKSRC}/db/source/printer/${i}.xml \
${WRKSRC}/db/source/printer/${i}-splix.xml
.endfor
# files already shipped by the ptouch-driver package
rm -f ${WRKSRC}/db/source/printer/Brother-{PT,QL}*.xml
rm -f ${WRKSRC}/db/source/driver/ptouch.xml
# We do not ship gutenprint (cups), but gutenprint-ijs.${MAJOR_V} that
# is spooler independant, so don't display it as an valid driver --
# MAJOR_V is set in the gutenprint port.
rm ${WRKSRC}/db/source/driver/gutenprint.xml
find ${WRKSRC}/db/source/printer -name '*.xml' | xargs grep -l "<driver>gutenprint" | \
xargs perl -pi -e 's,<driver>gutenprint</driver>,<driver>gutenprint-ijs.5.2</driver>,g'
.include <bsd.port.mk>