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

File: [cvs.NetBSD.org] / pkgsrc / print / foomatic-filters / Makefile (download)

Revision 1.7, Mon Dec 5 23:55:16 2005 UTC (17 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.6: +2 -2 lines

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

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

DISTNAME=	foomatic-filters-3.0.2
PKGREVISION=	1
CATEGORIES=	print
MASTER_SITES=	http://www.linuxprinting.org/download/foomatic/

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.linuxprinting.org/foomatic.html
COMMENT=	Spooler independent postscript printing filter

# You may choose from any of the following, if you wish
DEPENDS+=	mpage-[0-9]*:../../print/mpage
#DEPENDS+=	a2ps-[0-9]*:../../print/a2ps
#DEPENDS+=	enscript-[0-9]*:../../print/enscript

CONFLICTS+=	foomatic-gswrapper-[0-9]

GNU_CONFIGURE=		YES
CONFIG_GUESS_OVERRIDE=  ${WRKSRC}/config.guess
CONFIG_SUB_OVERRIDE=    ${WRKSRC}/config.sub

# Rather than wrestle with the maintainer's horribly broken configure
# scripts, we just override everything here
CONFIGURE_ENV+= 	CUPS=${LOCALBASE}/share/cups
CONFIGURE_ENV+= 	CUPS_FILTERS=${LOCALBASE}/lib/cups/filter
CONFIGURE_ENV+= 	PRINTCAP=/etc/printcap
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASEDIR:Q}

USE_TOOLS+=	gmake gs:run perl:run
USE_PKGINSTALL=	yes
INSTALL_TARGET=	install-bin install-man

PKG_SYSCONFSUBDIR=	foomatic
EGDIR=			${PREFIX}/share/examples/foomatic-filters/
CONF_FILES=		${EGDIR}/filter.conf ${PKG_SYSCONFDIR}/filter.conf

post-install:
	${INSTALL_DATA_DIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/filter.conf ${EGDIR}

.include "../../mk/bsd.pkg.mk"