pkgsrc/print/papersize/Makefile

31 lines
855 B
Makefile

# $NetBSD: Makefile,v 1.5 2001/02/17 17:51:51 wiz Exp $
#
DISTNAME= papersize-1.0.2
CATEGORIES= print
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= packages@netbsd.org
COMMENT= Manipulate the default papersize in certain packages
EXTRACT_ONLY= # empty
NO_WRKSUBDIR= yes
NO_CHECKSUM= yes
NO_PATCH= yes
NO_CONFIGURE= yes
do-build:
for f in setpapersize getpapersize; do \
${SED} -e 's|@localbase@|${LOCALBASE}|g' \
-e 's|@x11prefix@|${X11PREFIX}|g' \
${FILESDIR}/$$f > ${WRKSRC}/$$f; \
done
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/setpapersize ${PREFIX}/bin/setpapersize
${INSTALL_SCRIPT} ${WRKSRC}/getpapersize ${PREFIX}/bin/getpapersize
${INSTALL_MAN} ${FILESDIR}/getpapersize.1 ${PREFIX}/man/man1/getpapersize.1
${INSTALL_MAN} ${FILESDIR}/setpapersize.1 ${PREFIX}/man/man1/setpapersize.1
.include "../../mk/bsd.pkg.mk"