diff options
author | drochner <drochner@pkgsrc.org> | 2009-12-18 21:08:57 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2009-12-18 21:08:57 +0000 |
commit | d09809ee8ab74ef0ce4707472852625bcad0a509 (patch) | |
tree | bb7e1785c4323d09ed20caaebc701ae3c252021d /print | |
parent | 24c9b736c715f615bc9493724b894f7a58d061d1 (diff) | |
download | pkgsrc-d09809ee8ab74ef0ce4707472852625bcad0a509.tar.gz |
fix the option logics so that EVAL_PREFIX(cups) and derivatives of it
aren't used if the "cups" option is not set (which means that cups
is not a dependency)
Diffstat (limited to 'print')
-rw-r--r-- | print/foomatic4-filters/Makefile | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/print/foomatic4-filters/Makefile b/print/foomatic4-filters/Makefile index 2ee462fa501..3bb2c50ffee 100644 --- a/print/foomatic4-filters/Makefile +++ b/print/foomatic4-filters/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2009/11/20 20:50:43 drochner Exp $ +# $NetBSD: Makefile,v 1.2 2009/12/18 21:08:57 drochner Exp $ DISTNAME= foomatic-filters-4.0.3 CATEGORIES= print @@ -16,12 +16,6 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} CONFIGURE_ARGS+= --disable-file-converter-check -EVAL_PREFIX+= CUPS_PREFIX=cups -CUPS_FILTERDIR= ${CUPS_PREFIX:Q}/libexec/cups/filter -CONFIGURE_ENV+= CUPS_FILTERS=${CUPS_FILTERDIR} -FILES_SUBST+= CUPS_FILTERDIR=${CUPS_FILTERDIR} - -TEXTTOPS_DEPENDS= {a2ps,enscript,mpage}-[0-9]* PKG_DESTDIR_SUPPORT= user-destdir PKG_OPTIONS_VAR= PKG_OPTIONS.foomatic @@ -42,14 +36,21 @@ INSTALL_TARGET= install-bin install-man .include "../../mk/bsd.options.mk" .if !empty(PKG_OPTIONS:Mcups) -DEPENDS+= {cups>=1.0,${TEXTTOPS_DEPENDS}}:../../print/cups +DEPENDS+= cups>=1.0:../../print/cups +EVAL_PREFIX+= CUPS_PREFIX=cups +CUPS_FILTERDIR= ${CUPS_PREFIX:Q}/libexec/cups/filter +CONFIGURE_ENV+= CUPS_FILTERS=${CUPS_FILTERDIR} +FILES_SUBST+= CUPS_FILTERDIR=${CUPS_FILTERDIR} +DEINSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/DEINSTALL +INSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/INSTALL .else +TEXTTOPS_DEPENDS= {a2ps,enscript,mpage}-[0-9]* DEPENDS+= ${TEXTTOPS_DEPENDS}:../../print/mpage +CONFIGURE_ENV+= CUPS_CONFIG=/nonexistent +CONFIGURE_ENV+= CUPS_SERVERBIN=/nonexistent +CONFIGURE_ENV+= CUPS_FILTERS=/nonexistent .endif -DEINSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/DEINSTALL -INSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/INSTALL - EGDIR= ${PREFIX}/share/examples/foomatic CONFDIR= ${PKG_SYSCONFDIR}/foomatic |