1999-02-20 23:48:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.12 1999/02/20 22:48:39 hubertf Exp $
|
1998-06-23 23:35:55 +02:00
|
|
|
|
|
|
|
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 \
|
1998-11-09 19:06:19 +01:00
|
|
|
ghostscript-5.50:../../print/ghostscript5 \
|
|
|
|
netpbm-19940301:../../graphics/netpbm \
|
|
|
|
teTeX-0.4p8:../../print/teTeX \
|
|
|
|
papersize-1.0:../../print/papersize
|
1998-06-23 23:35:55 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
|
|
|
1998-07-05 12:09:58 +02:00
|
|
|
FILTER_DIR= libexec/magicfilter
|
|
|
|
|
1998-11-11 12:28:02 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
PAPERSIZE?= A4
|
|
|
|
|
1998-06-23 23:35:55 +02:00
|
|
|
post-install:
|
|
|
|
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
|
1998-07-05 12:09:58 +02:00
|
|
|
@${MKDIR} ${PREFIX}/${FILTER_DIR}
|
1998-11-11 01:28:45 +01:00
|
|
|
@(cd ${WRKSRC}/filters; \
|
1998-11-11 12:28:02 +01:00
|
|
|
paper=`${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'`; \
|
1998-11-11 01:28:45 +01:00
|
|
|
for FILTER in *-filter; do \
|
|
|
|
TARGET=${PREFIX}/${FILTER_DIR}/$$FILTER; \
|
|
|
|
${ECHO} "Installing $$FILTER as $$TARGET"; \
|
1998-11-11 12:28:02 +01:00
|
|
|
${SED} 's/-sOutputFile=-/-sOutputFile=- -sPAPERSIZE='$$paper'/' \
|
1998-11-11 01:28:45 +01:00
|
|
|
<$$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}
|
1998-06-23 23:35:55 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|