1998-11-08 23:03:57 +01:00
|
|
|
# $NetBSD: Makefile,v 1.7 1998/11/08 22:03:57 tron Exp $
|
1998-06-23 23:35:55 +02:00
|
|
|
|
|
|
|
DISTNAME= magicfilter-1.2
|
1998-10-13 00:21:49 +02:00
|
|
|
PKGNAME= magicfilter-${PAPERSIZE}-1.2
|
1998-06-23 23:35:55 +02:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= system/printing
|
|
|
|
|
|
|
|
MAINTAINER= tron@netbsd.org
|
|
|
|
|
1998-07-05 12:09:58 +02:00
|
|
|
DEPENDS+= a2ps-${PAPERSIZE}-4.10.3:../../print/a2ps \
|
1998-11-08 23:03:57 +01:00
|
|
|
ghostscript-5.50:../../print/ghostscript5 \
|
1998-07-04 11:26:16 +02:00
|
|
|
netpbm-19940301:../../graphics/netpbm \
|
1998-06-23 23:35:55 +02:00
|
|
|
teTeX-0.4p8:../../print/teTeX
|
|
|
|
|
1998-10-13 00:21:49 +02:00
|
|
|
CONFLICTS= magicfilter-1.2
|
|
|
|
|
1998-06-23 23:35:55 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
|
|
|
1998-08-28 00:18:31 +02:00
|
|
|
PAPERSIZE?= A4
|
1998-07-05 12:09:58 +02:00
|
|
|
FILTER_DIR= libexec/magicfilter
|
|
|
|
|
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-06-23 23:35:55 +02:00
|
|
|
@(cd ${WRKSRC}/filters; \
|
1998-07-05 14:27:14 +02:00
|
|
|
for FILTER in *-filter; do \
|
1998-10-13 00:21:49 +02:00
|
|
|
TARGET=${PREFIX}/${FILTER_DIR}/$$FILTER; \
|
|
|
|
${ECHO} "Installing $$FILTER as $$TARGET"; \
|
|
|
|
${SED} 's/-sOutputFile=-/-sOutputFile=- ${GS_OPTS}/' \
|
|
|
|
<$$FILTER >${PREFIX}/${FILTER_DIR}/$$FILTER; \
|
|
|
|
chown ${BINOWN}:${BINGRP} $$TARGET; \
|
|
|
|
chmod ${BINMODE} $$TARGET; \
|
1998-07-05 12:09:58 +02:00
|
|
|
${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"
|
1998-10-13 00:21:49 +02:00
|
|
|
|
|
|
|
.if ${PAPERSIZE} == A4
|
|
|
|
GS_OPTS= -sPAPERSIZE=a4
|
|
|
|
.else
|
|
|
|
GS_OPTS= -sPAPERSIZE=letter
|
|
|
|
.endif
|