pkgsrc/print/apsfilter/Makefile
jlam 827643d4bb Split out deinstall portions of INSTALL scripts into DEINSTALL scripts.
This avoids the need for a confusing line of the form:

	DEINSTALL_TEMPLATE+=	path/to/INSTALL

in the package Makefile, and actually removes the need to specify it
altogether since by convention, the existence of the DEINSTALL script
is enough to add it to DEINSTALL_TEMPLATE.
2006-06-15 20:40:15 +00:00

42 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.28 2006/06/15 20:40:16 jlam Exp $
#
DISTNAME= apsfilter-7.2.6
PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= http://www.apsfilter.org/download/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.apsfilter.org/
COMMENT= Flexible 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
USE_TOOLS+= awk gs:run
CONFIGURE_ARGS+=--prefix=${PREFIX:Q}
CONFIGURE_ARGS+=--with-shell=${SH:Q}
CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=--with-awk=${TOOLS_AWK:Q}
PKG_SYSCONFSUBDIR?= apsfilter
CONF_FILES= ${PREFIX}/share/apsfilter/template/apsfilterrc \
${PKG_SYSCONFDIR}/apsfilterrc
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
.include "../../mk/bsd.pkg.mk"