openbsd-ports/print/foo2zjs/Makefile

63 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.15 2010/07/31 10:31:58 ajacoutot Exp $
COMMENT-main= driver for ZjStream wire protocol compatible printers
COMMENT-cups= Konica-Minolta foo2zjs command filter for CUPS
VERSION= 20100728
DISTNAME= foo2zjs-${VERSION}
PKGNAME-main= ${DISTNAME}
PKGNAME-cups= foo2zjs-cup-${VERSION}
CATEGORIES= print
HOMEPAGE= http://foo2hp.rkkda.com/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c
MASTER_SITES= http://www.bsdfrog.org/OpenBSD/distfiles/
MULTI_PACKAGES= -main -cups
USE_GMAKE= Yes
WRKDIST= ${WRKDIR}/foo2zjs
BUILD_DEPENDS= ::print/ghostscript/gnu # ps2pdf
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`
NO_REGRESS= Yes
post-patch:
ln -sf ${WRKSRC}/modify-ppd ${WRKDIR}/bin/modify-ppd
pre-configure:
perl -pi -e 's,/usr/bin,${PREFIX}/bin,g' \
${WRKSRC}/*.1in
perl -pi -e 's,\$\(shell ,\$\(,g' ${WRKSRC}/{,icc2ps}/Makefile
${SUBST_CMD} ${WRKSRC}/getweb.in
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/{getweb,msexpand} \
${PREFIX}/share/doc/foo2zjs
${INSTALL_DATA_DIR} ${PREFIX}/libexec/cups/filter
ln -sf ${TRUEPREFIX}/bin/command2foo2lava-pjl \
${WRKINST}/${LOCALBASE}/libexec/cups/filter/
.include <bsd.port.mk>