pkgsrc/print/magicfilter/Makefile

44 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.12 1999/02/20 22:48:39 hubertf Exp $
DISTNAME= magicfilter-1.2
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= system/printing
MAINTAINER= tron@netbsd.org
1998-11-10 19:34:28 +01:00
DEPENDS+= a2ps-4.10.3:../../print/a2ps \
ghostscript-5.50:../../print/ghostscript5 \
netpbm-19940301:../../graphics/netpbm \
teTeX-0.4p8:../../print/teTeX \
papersize-1.0:../../print/papersize
USE_GMAKE= yes
GNU_CONFIGURE= yes
PLIST_SRC= ${WRKDIR}/PLIST
FILTER_DIR= libexec/magicfilter
.include "../../mk/bsd.prefs.mk"
PAPERSIZE?= A4
post-install:
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
@${MKDIR} ${PREFIX}/${FILTER_DIR}
@(cd ${WRKSRC}/filters; \
paper=`${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'`; \
for FILTER in *-filter; do \
TARGET=${PREFIX}/${FILTER_DIR}/$$FILTER; \
${ECHO} "Installing $$FILTER as $$TARGET"; \
${SED} 's/-sOutputFile=-/-sOutputFile=- -sPAPERSIZE='$$paper'/' \
<$$FILTER >${PREFIX}/${FILTER_DIR}/$$FILTER; \
chown ${BINOWN}:${BINGRP} $$TARGET; \
chmod ${BINMODE} $$TARGET; \
${ECHO} ${FILTER_DIR}/$$FILTER >>${PLIST_SRC}; \
1998-07-05 14:27:14 +02:00
done)
@${ECHO} "@dirrm ${FILTER_DIR}" >>${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"