2008-06-12 04:14:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.38 2008/06/12 02:14:43 joerg Exp $
|
1998-02-22 21:32:08 +01:00
|
|
|
|
|
|
|
DISTNAME= psutils-p17
|
1998-11-09 19:01:48 +01:00
|
|
|
PKGNAME= psutils-1.17
|
2006-05-06 05:43:04 +02:00
|
|
|
PKGREVISION= 2
|
1998-02-22 21:32:08 +01:00
|
|
|
CATEGORIES= print
|
2007-12-02 14:04:06 +01:00
|
|
|
MASTER_SITES= http://gd.tuwien.ac.at/publishing/tex/tex-utils/psutils/
|
1998-02-22 21:32:08 +01:00
|
|
|
|
2003-11-03 01:36:02 +01:00
|
|
|
MAINTAINER= dillo@NetBSD.org
|
2007-12-02 14:04:06 +01:00
|
|
|
HOMEPAGE= http://www.go.dlr.de/wt/dv/ig/pdinfo_dv/psutils.html
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Utilities for manipulating PostScript documents
|
1998-02-22 21:32:08 +01:00
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/psutils
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
1998-08-17 01:49:08 +02:00
|
|
|
|
1998-11-09 19:01:48 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2007-01-03 22:09:55 +01:00
|
|
|
BUILD_DEFS+= PAPERSIZE
|
1998-11-09 19:01:48 +01:00
|
|
|
|
2007-01-03 22:09:55 +01:00
|
|
|
.if !defined(PAPERSIZE)
|
|
|
|
PKG_FAIL_REASON+= "PAPERSIZE must be defined by the pkgsrc user."
|
|
|
|
.else
|
|
|
|
. if ${PAPERSIZE} != "A4" && ${PAPERSIZE} != "Letter"
|
|
|
|
PKG_FAIL_REASON+= "Invalid PAPERSIZE (${PAPERSIZE}). Choose one of A4 or Letter."
|
|
|
|
. endif
|
|
|
|
.endif
|
1998-02-23 15:02:29 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= PERL5=${PERL5:Q}
|
2001-07-10 19:27:18 +02:00
|
|
|
MAKE_FLAGS+= PAPER=`${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'`
|
2008-06-12 04:14:13 +02:00
|
|
|
MAKE_FLAGS+= MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2006-09-09 04:41:53 +02:00
|
|
|
MAKE_FILE= Makefile.unix
|
1999-10-05 15:59:57 +02:00
|
|
|
|
2002-11-26 11:13:20 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/psutils
|
|
|
|
CONF_FILES= ${EGDIR}/psutils.cfg ${PKG_SYSCONFDIR}/psutils.cfg
|
|
|
|
|
2007-01-03 22:09:55 +01:00
|
|
|
SUBST_CLASSES+= psu
|
|
|
|
SUBST_STAGE.psu= pre-configure
|
|
|
|
SUBST_MESSAGE.psu= Adjusting the installation prefix.
|
|
|
|
SUBST_FILES.psu= psutil.c
|
|
|
|
SUBST_SED.psu= -e "s|@prefix@|${PREFIX}|g"
|
1998-02-22 21:32:08 +01:00
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
INSTALLATION_DIRS= ${EGDIR}
|
|
|
|
INSTALL_MAKE_FLAGS= PREFIX=${DESTDIR}${PREFIX}
|
|
|
|
|
1998-02-22 21:37:58 +01:00
|
|
|
post-install:
|
2007-01-03 22:09:55 +01:00
|
|
|
low=`${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'` \
|
2008-06-12 04:14:13 +02:00
|
|
|
&& ${ECHO} "PAPERSIZE=$$low" > ${DESTDIR}${EGDIR}/psutils.cfg
|
1998-11-09 19:01:48 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|