[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / print / apsfilter

File: [cvs.NetBSD.org] / pkgsrc / print / apsfilter / Makefile (download)

Revision 1.22, Mon Dec 5 23:55:16 2005 UTC (17 years, 2 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4
Changes since 1.21: +5 -5 lines

Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.

# $NetBSD: Makefile,v 1.22 2005/12/05 23:55:16 rillig Exp $
#

DISTNAME=	apsfilter-7.2.5
PKGREVISION=	1
CATEGORIES=	print
MASTER_SITES=	http://www.apsfilter.org/download/

MAINTAINER=	tech-pkg@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_PKGINSTALL=	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

DEINSTALL_EXTRA_TMPL=	${.CURDIR}/INSTALL
INSTALL_EXTRA_TMPL=	${.CURDIR}/INSTALL

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"