pkgsrc/print/apsfilter/Makefile
jmmv 1eee29d534 Make this package behave properly when installing configuration files, that
is, using the PKG_SYSCONFDIR stuff. apsfilter needs a symlink in the
configuration directory, so add an INSTALL script to create it (which
handles all DEINSTALL stuff too). Bump PKGREVISION to 2.

Approved by wiz.

This closes PR 18994.
2002-11-26 11:26:31 +00:00

51 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2002/11/26 11:26:32 jmmv Exp $
#
DISTNAME= apsfilter-7.2.2
PKGREVISION= 2
CATEGORIES= print
MASTER_SITES= http://www.apsfilter.org/download/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.apsfilter.org/
COMMENT= number one magic filter for printing under Unix environment
DEPENDS= recode-[0-9]*:../../converters/recode
#DEPENDS+= html2ps-[0-9]*:../../print/html2ps
DEPENDS+= transfig-[0-9]*:../../print/transfig
DEPENDS+= jpeg-6b:../../graphics/jpeg
DEPENDS+= netpbm>=9.7nb1:../../graphics/netpbm
DEPENDS+= a2ps-[0-9]*:../../print/a2ps
DEPENDS+= psutils-[0-9]*:../../print/psutils
WRKSRC= ${WRKDIR}/apsfilter
HAS_CONFIGURE= YES
USE_BZIP2= YES
CONFIGURE_ARGS+=--prefix=${LOCALBASE}
CONFIGURE_ARGS+=--with-shell=${SH}
CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR}
PKG_SYSCONFSUBDIR?= apsfilter
CONF_FILES= ${PREFIX}/share/apsfilter/template/apsfilterrc \
${PKG_SYSCONFDIR}/apsfilterrc
DEINSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
INSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
FILES_SUBST+= PREFIX="${PREFIX}"
post-patch:
for i in bin/apsfilter.in SETUP.in tools/prtmgmt; do \
${SED} "s,/usr/local,${LOCALBASE},g" ${WRKSRC}/$$i \
> ${WRKSRC}/$$i.done; \
${MV} ${WRKSRC}/$$i.done ${WRKSRC}/$$i; \
done
# ${SED} "s,@LOCALBASE@,${LOCALBASE},g" ${PKGDIR}/DEINSTALL \
# > ${DEINSTALL_FILE}
.include "../../mk/ghostscript.mk"
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"