7943d34c8c
FLAVOR by default - regen PLIST while here
54 lines
1.1 KiB
Makefile
54 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.27 2009/05/19 13:46:34 ajacoutot Exp $
|
|
|
|
COMMENT= manipulating PostScript documents
|
|
|
|
DISTNAME= psutils-p17
|
|
PKGNAME= psutils-0.17p1
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=support/psutils/}
|
|
|
|
HOMEPAGE= http://gershwin.ens.fr/vdaniel/Doc-Locale/Outils-Gnu-Linux/PsUtils/
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c
|
|
|
|
WRKDIST= ${WRKDIR}/psutils
|
|
|
|
FLAVORS=a3 a4 a5 b5 letter legal ledger tabloid statement executive \
|
|
folio quarto s10x14
|
|
|
|
FLAVOR?=letter
|
|
|
|
.for i in ${FLAVORS}
|
|
. if ${FLAVOR:L} == $i
|
|
OK=Yes
|
|
. endif
|
|
.endfor
|
|
OK?=No
|
|
.if ${OK} == "No"
|
|
ERRORS+="Fatal: Invalid flavor ${FLAVOR}"
|
|
.endif
|
|
|
|
MAKE_FLAGS= \
|
|
BINDIR=${PREFIX}/bin \
|
|
INCLUDEDIR=${PREFIX}/share/psutils \
|
|
MANDIR=${PREFIX}/man/man1 \
|
|
PERL=/usr/bin/perl CC=cc CFLAGS='${CFLAGS}' \
|
|
PAPER=${FLAVOR:L}
|
|
FAKE_FLAGS= \
|
|
BINDIR=${WRKINST}${PREFIX}/bin \
|
|
INCLUDEDIR=${WRKINST}${PREFIX}/share/psutils \
|
|
MANDIR=${WRKINST}${PREFIX}/man/man1 \
|
|
PERL=/usr/bin/perl CC=cc CFLAGS='${CFLAGS}' \
|
|
PAPER=${FLAVOR:L}
|
|
|
|
MAKE_FILE=Makefile.unix
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
.include <bsd.port.mk>
|