openbsd-ports/print/cups-pdf/Makefile
kili 262f516a1b Avoid references to PKGNAME.
Remove noops like WRKDIST=${WRKDIR}/${DISTNAME}.
Drop DIST_SUBDIR where appropriate.

Problem mentioned by naddy.
Some simplifications and ok, steven.
2006-11-04 19:19:15 +00:00

39 lines
971 B
Makefile

# $OpenBSD: Makefile,v 1.2 2006/11/04 19:19:15 kili Exp $
COMMENT= "PDF backend for CUPS"
DISTNAME= cups-pdf-2.4.2
CATEGORIES= print
HOMEPAGE= http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/
MASTER_SITES= ${HOMEPAGE}src/
DISTFILES= ${DISTNAME:S/pdf-/pdf_/}.tar.gz
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
RUN_DEPENDS= ::print/cups
do-build:
@cc -O2 -o ${WRKDIR}/bin/cups-pdf ${WRKDIR}/${DISTNAME}/src/cups-pdf.c
do-install:
mkdir -p ${PREFIX}/libexec/cups/backend
mkdir -p ${PREFIX}/share/cups/model
mkdir -p ${PREFIX}/share/examples/cups
cp ${WRKDIR}/bin/cups-pdf \
${PREFIX}/libexec/cups/backend/cups-pdf
cp ${WRKDIR}/${DISTNAME}/extra/PostscriptColor.ppd \
${PREFIX}/share/cups/model/PostscriptColor.ppd
cp ${WRKDIR}/${DISTNAME}/extra/cups-pdf.conf \
${PREFIX}/share/examples/cups/
.include <bsd.port.mk>