Fri Dec 18 21:08:57 2009 UTC ()
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)


(drochner)
diff -r1.1.1.1 -r1.2 pkgsrc/print/foomatic4-filters/Makefile

cvs diff -r1.1.1.1 -r1.2 pkgsrc/print/foomatic4-filters/Makefile (expand / switch to unified diff)

--- pkgsrc/print/foomatic4-filters/Makefile 2009/11/20 20:50:43 1.1.1.1
+++ pkgsrc/print/foomatic4-filters/Makefile 2009/12/18 21:08:57 1.2
@@ -1,65 +1,66 @@ @@ -1,65 +1,66 @@
1# $NetBSD: Makefile,v 1.1.1.1 2009/11/20 20:50:43 drochner Exp $ 1# $NetBSD: Makefile,v 1.2 2009/12/18 21:08:57 drochner Exp $
2 2
3DISTNAME= foomatic-filters-4.0.3 3DISTNAME= foomatic-filters-4.0.3
4CATEGORIES= print 4CATEGORIES= print
5MASTER_SITES= http://www.linuxprinting.org/download/foomatic/ 5MASTER_SITES= http://www.linuxprinting.org/download/foomatic/
6 6
7MAINTAINER= jlam@pkgsrc.org 7MAINTAINER= jlam@pkgsrc.org
8HOMEPAGE= http://www.linuxprinting.org/foomatic.html 8HOMEPAGE= http://www.linuxprinting.org/foomatic.html
9COMMENT= Spooler-independent PostScript printing filter 9COMMENT= Spooler-independent PostScript printing filter
10 10
11CONFLICTS+= foomatic-gswrapper-[0-9]* 11CONFLICTS+= foomatic-gswrapper-[0-9]*
12 12
13USE_TOOLS+= gmake gs:run perl 13USE_TOOLS+= gmake gs:run perl
14 14
15GNU_CONFIGURE= yes 15GNU_CONFIGURE= yes
16CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} 16CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
17CONFIGURE_ARGS+= --disable-file-converter-check 17CONFIGURE_ARGS+= --disable-file-converter-check
18 18
19EVAL_PREFIX+= CUPS_PREFIX=cups 
20CUPS_FILTERDIR= ${CUPS_PREFIX:Q}/libexec/cups/filter 
21CONFIGURE_ENV+= CUPS_FILTERS=${CUPS_FILTERDIR} 
22FILES_SUBST+= CUPS_FILTERDIR=${CUPS_FILTERDIR} 
23 
24TEXTTOPS_DEPENDS= {a2ps,enscript,mpage}-[0-9]* 
25PKG_DESTDIR_SUPPORT= user-destdir 19PKG_DESTDIR_SUPPORT= user-destdir
26 20
27PKG_OPTIONS_VAR= PKG_OPTIONS.foomatic 21PKG_OPTIONS_VAR= PKG_OPTIONS.foomatic
28PKG_SUPPORTED_OPTIONS= cups 22PKG_SUPPORTED_OPTIONS= cups
29 23
30.include "../../mk/bsd.prefs.mk" 24.include "../../mk/bsd.prefs.mk"
31 25
32BUILD_DEFS+= MANINSTALL 26BUILD_DEFS+= MANINSTALL
33 27
34.if ${OPSYS} == "SunOS" 28.if ${OPSYS} == "SunOS"
35# SunOS nroff has problems with foomatic-rip.1 29# SunOS nroff has problems with foomatic-rip.1
36MANINSTALL= none 30MANINSTALL= none
37INSTALL_TARGET= install-bin 31INSTALL_TARGET= install-bin
38.else 32.else
39INSTALL_TARGET= install-bin install-man 33INSTALL_TARGET= install-bin install-man
40.endif 34.endif
41 35
42.include "../../mk/bsd.options.mk" 36.include "../../mk/bsd.options.mk"
43 37
44.if !empty(PKG_OPTIONS:Mcups) 38.if !empty(PKG_OPTIONS:Mcups)
45DEPENDS+= {cups>=1.0,${TEXTTOPS_DEPENDS}}:../../print/cups 39DEPENDS+= cups>=1.0:../../print/cups
 40EVAL_PREFIX+= CUPS_PREFIX=cups
 41CUPS_FILTERDIR= ${CUPS_PREFIX:Q}/libexec/cups/filter
 42CONFIGURE_ENV+= CUPS_FILTERS=${CUPS_FILTERDIR}
 43FILES_SUBST+= CUPS_FILTERDIR=${CUPS_FILTERDIR}
 44DEINSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/DEINSTALL
 45INSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/INSTALL
46.else 46.else
 47TEXTTOPS_DEPENDS= {a2ps,enscript,mpage}-[0-9]*
47DEPENDS+= ${TEXTTOPS_DEPENDS}:../../print/mpage 48DEPENDS+= ${TEXTTOPS_DEPENDS}:../../print/mpage
 49CONFIGURE_ENV+= CUPS_CONFIG=/nonexistent
 50CONFIGURE_ENV+= CUPS_SERVERBIN=/nonexistent
 51CONFIGURE_ENV+= CUPS_FILTERS=/nonexistent
48.endif 52.endif
49 53
50DEINSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/DEINSTALL 
51INSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/INSTALL 
52 
53EGDIR= ${PREFIX}/share/examples/foomatic 54EGDIR= ${PREFIX}/share/examples/foomatic
54CONFDIR= ${PKG_SYSCONFDIR}/foomatic 55CONFDIR= ${PKG_SYSCONFDIR}/foomatic
55 56
56REQD_DIRS= ${EGDIR} 57REQD_DIRS= ${EGDIR}
57OWN_DIRS= ${CONFDIR} 58OWN_DIRS= ${CONFDIR}
58CONF_FILES= ${EGDIR}/filter.conf ${CONFDIR}/filter.conf 59CONF_FILES= ${EGDIR}/filter.conf ${CONFDIR}/filter.conf
59 60
60INSTALLATION_DIRS+= ${EGDIR} 61INSTALLATION_DIRS+= ${EGDIR}
61post-install: 62post-install:
62 ${INSTALL_DATA} ${WRKSRC}/filter.conf ${DESTDIR}${EGDIR} 63 ${INSTALL_DATA} ${WRKSRC}/filter.conf ${DESTDIR}${EGDIR}
63 64
64.include "../../print/ghostscript/buildlink3.mk" 65.include "../../print/ghostscript/buildlink3.mk"
65.include "../../mk/bsd.pkg.mk" 66.include "../../mk/bsd.pkg.mk"