2010-07-31 06:31:58 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2010/07/31 10:31:58 ajacoutot Exp $
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-07-31 06:31:58 -04:00
|
|
|
COMMENT-main= driver for ZjStream wire protocol compatible printers
|
|
|
|
COMMENT-cups= Konica-Minolta foo2zjs command filter for CUPS
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-07-31 06:31:58 -04:00
|
|
|
VERSION= 20100728
|
2010-03-31 12:01:45 -04:00
|
|
|
DISTNAME= foo2zjs-${VERSION}
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-07-31 06:31:58 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
|
|
|
PKGNAME-cups= foo2zjs-cup-${VERSION}
|
2010-07-31 01:20:07 -04:00
|
|
|
|
2010-03-31 12:01:45 -04:00
|
|
|
CATEGORIES= print
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-03-31 12:01:45 -04:00
|
|
|
HOMEPAGE= http://foo2hp.rkkda.com/
|
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
2010-03-21 06:14:50 -04:00
|
|
|
|
2009-08-03 09:10:09 -04:00
|
|
|
# GPLv2
|
2007-09-26 02:26:19 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-07-31 06:31:58 -04:00
|
|
|
WANTLIB += c
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-03-31 12:01:45 -04:00
|
|
|
MASTER_SITES= http://www.bsdfrog.org/OpenBSD/distfiles/
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-07-31 06:31:58 -04:00
|
|
|
MULTI_PACKAGES= -main -cups
|
|
|
|
|
2010-03-31 12:01:45 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
WRKDIST= ${WRKDIR}/foo2zjs
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-03-31 12:01:45 -04:00
|
|
|
BUILD_DEPENDS= ::print/ghostscript/gnu # ps2pdf
|
2010-07-31 06:31:58 -04:00
|
|
|
|
|
|
|
WANTLIB-main += ${WANTLIB} m
|
|
|
|
RUN_DEPENDS-main=::print/foomatic-filters
|
|
|
|
|
|
|
|
WANTLIB-cups += ${WANTLIB} cups pthread
|
|
|
|
RUN_DEPENDS-cups=::${BASE_PKGPATH},-main
|
|
|
|
LIB_DEPENDS-cups=::print/cups
|
|
|
|
|
|
|
|
MAKE_FLAGS+= CUPS_SERVERBIN=`cups-config --serverbin`
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-03-31 12:01:45 -04:00
|
|
|
NO_REGRESS= Yes
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-07-31 06:31:58 -04:00
|
|
|
post-patch:
|
|
|
|
ln -sf ${WRKSRC}/modify-ppd ${WRKDIR}/bin/modify-ppd
|
|
|
|
|
2007-09-26 02:26:19 -04:00
|
|
|
pre-configure:
|
2010-07-31 06:31:58 -04:00
|
|
|
perl -pi -e 's,/usr/bin,${PREFIX}/bin,g' \
|
2007-09-26 02:26:19 -04:00
|
|
|
${WRKSRC}/*.1in
|
2010-07-31 06:31:58 -04:00
|
|
|
perl -pi -e 's,\$\(shell ,\$\(,g' ${WRKSRC}/{,icc2ps}/Makefile
|
2010-03-31 12:01:45 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/getweb.in
|
2007-09-26 02:26:19 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/{getweb,msexpand} \
|
|
|
|
${PREFIX}/share/doc/foo2zjs
|
2010-07-31 06:31:58 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/libexec/cups/filter
|
|
|
|
ln -sf ${TRUEPREFIX}/bin/command2foo2lava-pjl \
|
|
|
|
${WRKINST}/${LOCALBASE}/libexec/cups/filter/
|
2007-09-26 02:26:19 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|