pkgsrc/print/papersize/Makefile
rillig bb5c1e5674 Changed the phases in which the work is done: The files are extracted in
the extract phase and configured in the configure phase, just as the
names suggest. Fixed pkglint warnings.
2006-07-22 06:52:13 +00:00

44 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.25 2006/07/22 06:52:13 rillig Exp $
#
DISTNAME= papersize-1.0.8
CATEGORIES= print
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Manipulate the default papersize in certain packages
WRKSRC= ${WRKDIR}
USE_LANGUAGES= # none
NO_CHECKSUM= yes
NO_BUILD= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= getpapersize setpapersize
SUBST_SED.paths= -e 's,@SH@,${SH},'
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},'
SUBST_SED.paths+= -e 's,@X11BASE@,${X11BASE},'
SUBST_SED.paths+= -e 's,@ECHO@,${ECHO},'
SUBST_SED.paths+= -e 's,@AWK@,${AWK},'
SUBST_SED.paths+= -e 's,@LOCALBASE@,${LOCALBASE},'
SUBST_SED.paths+= -e 's,@SED@,${SED},'
SUBST_SED.paths+= -e 's,@GREP@,${GREP},'
SUBST_SED.paths+= -e 's,@MV@,${MV},'
SUBST_SED.paths+= -e 's,@TR@,${TR},'
SUBST_SED.paths+= -e 's,@RM@,${RM},'
SUBST_SED.paths+= -e 's,@CHMOD@,${CHMOD},'
do-extract:
cd ${FILESDIR} && cp setpapersize getpapersize ${WRKSRC}/.
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/setpapersize ${PREFIX}/bin/setpapersize
${INSTALL_SCRIPT} ${WRKSRC}/getpapersize ${PREFIX}/bin/getpapersize
${INSTALL_MAN} ${FILESDIR}/getpapersize.1 ${PREFIX}/${PKGMANDIR}/man1/getpapersize.1
${INSTALL_MAN} ${FILESDIR}/setpapersize.1 ${PREFIX}/${PKGMANDIR}/man1/setpapersize.1
.include "../../mk/bsd.pkg.mk"