2014-07-10 05:47:21 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.61 2014/07/10 09:47:21 ajacoutot Exp $
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2012-10-19 05:34:48 -04:00
|
|
|
COMMENT= driver for ZjStream wire protocol compatible printers
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2014-07-10 05:47:21 -04:00
|
|
|
VERSION= 20140627
|
2010-03-31 12:01:45 -04:00
|
|
|
DISTNAME= foo2zjs-${VERSION}
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-03-31 12:01:45 -04:00
|
|
|
CATEGORIES= print
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-08-01 02:54:55 -04:00
|
|
|
HOMEPAGE= http://foo2zjs.rkkda.com/
|
2010-03-31 12:01:45 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2012-10-19 05:34:48 -04:00
|
|
|
WANTLIB += c cups m pthread
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2014-01-23 11:46:59 -05:00
|
|
|
# unversioned distfile
|
|
|
|
# http://foo2zjs.rkkda.com/foo2zjs.tar.gz
|
2013-10-01 05:07:14 -04:00
|
|
|
MASTER_SITES= https://distfiles.bsdfrog.org/
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-03-31 12:01:45 -04:00
|
|
|
USE_GMAKE= Yes
|
2012-10-19 05:34:48 -04:00
|
|
|
|
2010-03-31 12:01:45 -04:00
|
|
|
WRKDIST= ${WRKDIR}/foo2zjs
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2010-11-20 04:48:38 -05:00
|
|
|
BUILD_DEPENDS= print/ghostscript/gnu # ps2pdf
|
2010-07-31 06:31:58 -04:00
|
|
|
|
2012-10-19 05:34:48 -04:00
|
|
|
LIB_DEPENDS= print/cups,-libs
|
2012-08-04 10:41:07 -04:00
|
|
|
|
2013-12-12 09:50:30 -05:00
|
|
|
# foomatic-rip(1), foomatic-db(-engine)
|
|
|
|
RUN_DEPENDS += print/cups-filters
|
2010-07-31 06:31:58 -04:00
|
|
|
|
|
|
|
MAKE_FLAGS+= CUPS_SERVERBIN=`cups-config --serverbin`
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2013-03-11 07:35:43 -04:00
|
|
|
NO_TEST= Yes
|
2007-09-26 02:26:19 -04:00
|
|
|
|
2013-03-10 04:11:05 -04:00
|
|
|
# remove CVS ID
|
|
|
|
post-extract:
|
|
|
|
perl -pi -e "s,^VERSION=.*,VERSION=\'${VERSION}\'," ${WRKSRC}/getweb.in
|
|
|
|
|
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-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>
|