Fri Dec 30 07:08:34 2016 UTC ()
Added avahi as an option so ippfind can be build; unified PLIST and cleanup for Darwin


(adam)
diff -r1.236 -r1.237 pkgsrc/print/cups/Makefile
diff -r1.57 -r1.58 pkgsrc/print/cups/PLIST
diff -r1.1 -r0 pkgsrc/print/cups/PLIST.Darwin
diff -r1.36 -r1.37 pkgsrc/print/cups/buildlink3.mk
diff -r1.18 -r1.19 pkgsrc/print/cups/options.mk

cvs diff -r1.236 -r1.237 pkgsrc/print/cups/Makefile (expand / switch to unified diff)

--- pkgsrc/print/cups/Makefile 2016/12/12 14:26:15 1.236
+++ pkgsrc/print/cups/Makefile 2016/12/30 07:08:34 1.237
@@ -1,93 +1,90 @@ @@ -1,93 +1,90 @@
1# $NetBSD: Makefile,v 1.236 2016/12/12 14:26:15 wiz Exp $ 1# $NetBSD: Makefile,v 1.237 2016/12/30 07:08:34 adam Exp $
2 2
3DISTNAME= cups-2.2.1-source 3DISTNAME= cups-2.2.1-source
4PKGNAME= ${DISTNAME:S/-source//} 4PKGNAME= ${DISTNAME:S/-source//}
5CATEGORIES= print 5CATEGORIES= print
6MASTER_SITES= ${MASTER_SITE_GITHUB:=apple/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=apple/}
7GITHUB_RELEASE= v${PKGVERSION_NOREV} 
8 7
9MAINTAINER= sbd@NetBSD.org 8MAINTAINER= sbd@NetBSD.org
10HOMEPAGE= http://www.cups.org/ 9HOMEPAGE= http://www.cups.org/
11COMMENT= Common UNIX Printing System 10COMMENT= Common UNIX Printing System
12LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2 11LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2
13 12
 13GITHUB_RELEASE= v${PKGVERSION_NOREV}
 14
14CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]* 15CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]*
15 16
16WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} 17WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
17UNLIMIT_RESOURCES= datasize memorysize 18UNLIMIT_RESOURCES= datasize memorysize
18USE_LANGUAGES= c c++ # pdftops is a C++ application 19USE_LANGUAGES= c c++ # pdftops is a C++ application
19USE_PKGLOCALEDIR= yes 
20USE_TOOLS+= aclocal autoconf automake gmake 
21USE_LIBTOOL= yes 20USE_LIBTOOL= yes
 21USE_PKGLOCALEDIR= yes
 22USE_TOOLS+= aclocal autoconf automake gmake pkg-config
22 23
23GNU_CONFIGURE= yes 24GNU_CONFIGURE= yes
24CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale 25CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
25CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR} 26CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
26CONFIGURE_ARGS+= --localstatedir=${VARBASE} 27CONFIGURE_ARGS+= --localstatedir=${VARBASE}
27CONFIGURE_ARGS+= --with-cachedir=${CUPS_CACHE:Q} 28CONFIGURE_ARGS+= --with-cachedir=${CUPS_CACHE:Q}
28CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/cups 29CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/cups
29CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups 30CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups
30CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER} 31CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER}
31CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP} 32CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP}
32CONFIGURE_ARGS+= --with-system-groups=${CUPS_SYSTEM_GROUPS:Q} 33CONFIGURE_ARGS+= --with-system-groups=${CUPS_SYSTEM_GROUPS:Q}
33CONFIGURE_ARGS+= --enable-libpaper 34CONFIGURE_ARGS+= --enable-libpaper
34CONFIGURE_ARGS+= --enable-libtool 35CONFIGURE_ARGS+= --enable-libtool
35CONFIGURE_ARGS+= --enable-ssl 36CONFIGURE_ARGS+= --enable-ssl
36CONFIGURE_ARGS+= --with-manext=bsd 37CONFIGURE_ARGS+= --with-manext=bsd
 38CONFIGURE_ARGS+= --without-bundledir
37CONFIGURE_ARGS+= --without-icondir 39CONFIGURE_ARGS+= --without-icondir
38CONFIGURE_ARGS+= --without-menudir 40CONFIGURE_ARGS+= --without-menudir
39CONFIGURE_ARGS+= --without-perl 41CONFIGURE_ARGS+= --without-perl
40CONFIGURE_ARGS+= --without-php 42CONFIGURE_ARGS+= --without-php
41CONFIGURE_ARGS+= --without-python 43CONFIGURE_ARGS+= --without-python
42CONFIGURE_ARGS+= --without-java 44CONFIGURE_ARGS+= --without-java
43CONFIGURE_ARGS+= --disable-gssapi 45CONFIGURE_ARGS+= --disable-gssapi
44 46
45CONFIGURE_ENV+= DSOFLAGS=${LDFLAGS:M*:Q} 47CONFIGURE_ENV+= DSOFLAGS=${LDFLAGS:M*:Q}
46 48
47.include "../../mk/bsd.prefs.mk" 49.include "../../mk/bsd.prefs.mk"
48.include "options.mk" 50.include "options.mk"
49 51
50.if ${OPSYS} == "SunOS" 52.if ${OPSYS} == "SunOS"
51LIBS_SSP= -lssp_nonshared -lssp 53LIBS_SSP= -lssp_nonshared -lssp
52CONFIGURE_ENV+= LIBS_SSP=${LIBS_SSP:M*:Q} 54CONFIGURE_ENV+= LIBS_SSP=${LIBS_SSP:M*:Q}
53# Explicitly disable epoll on illumos, it is provided for Linux compat only. 55# Explicitly disable epoll on illumos, it is provided for Linux compat only.
54CONFIGURE_ENV+= ac_cv_func_epoll_create=no 56CONFIGURE_ENV+= ac_cv_func_epoll_create=no
55.endif 57.endif
56LIBS+= ${BUILDLINK_LDADD.iconv} 58LIBS+= ${BUILDLINK_LDADD.iconv}
57 59
58PLIST_VARS+= notmac 
59.if ${OPSYS} != "Darwin" 
60PLIST.notmac= yes 
61.endif 
62 
63# Avoid the following error when compiling with clang. 60# Avoid the following error when compiling with clang.
64# /usr/local/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 against `_DYNAMIC' 61# /usr/local/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 against `_DYNAMIC'
65# can not be used when making a shared object; recompile with -fPIC 62# can not be used when making a shared object; recompile with -fPIC
66BUILDLINK_TRANSFORM.FreeBSD+= rm:-Wl,-pie 63BUILDLINK_TRANSFORM.FreeBSD+= rm:-Wl,-pie
67 64
68# CUPS_USER user to run filter and CGI programs as 65# CUPS_USER user to run filter and CGI programs as
69# CUPS_GROUP group to run filter and CGI programs as 66# CUPS_GROUP group to run filter and CGI programs as
70# CUPS_SYSTEM_GROUPS group for system administration 67# CUPS_SYSTEM_GROUPS group for system administration
71# 68#
72CUPS_USER?= lp 69CUPS_USER?= lp
73CUPS_GROUP?= lp 70CUPS_GROUP?= lp
74CUPS_SYSTEM_GROUPS?= ${REAL_ROOT_GROUP} 71CUPS_SYSTEM_GROUPS?= ${REAL_ROOT_GROUP}
75FILES_SUBST+= CUPS_USER=${CUPS_USER} 72FILES_SUBST+= CUPS_USER=${CUPS_USER}
76FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP} 73FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP}
77FILES_SUBST+= CUPS_SYSTEM_GROUPS=${CUPS_SYSTEM_GROUPS:Q} 74FILES_SUBST+= CUPS_SYSTEM_GROUPS=${CUPS_SYSTEM_GROUPS:Q}
78 75
79PKG_GROUPS_VARS+= CUPS_GROUP CUPS_SYSTEM_GROUPS 76PKG_GROUPS_VARS+= CUPS_GROUP CUPS_SYSTEM_GROUPS
80PKG_USERS_VARS+= CUPS_USER 77PKG_USERS_VARS= CUPS_USER
81 78
82BUILD_DEFS+= CUPS_USER CUPS_GROUP CUPS_SYSTEM_GROUPS VARBASE 79BUILD_DEFS+= CUPS_USER CUPS_GROUP CUPS_SYSTEM_GROUPS VARBASE
83 80
84DOCDIR= ${PREFIX}/share/doc/cups 81DOCDIR= ${PREFIX}/share/doc/cups
85EGDIR= ${PREFIX}/share/examples/cups 82EGDIR= ${PREFIX}/share/examples/cups
86MIMEDIR= ${PREFIX}/share/cups/mime 83MIMEDIR= ${PREFIX}/share/cups/mime
87PKG_SYSCONFSUBDIR= cups 84PKG_SYSCONFSUBDIR= cups
88CUPS_CONFDIR= ${PKG_SYSCONFDIR} 85CUPS_CONFDIR= ${PKG_SYSCONFDIR}
89CUPS_LOGDIR= ${VARBASE}/log/cups 86CUPS_LOGDIR= ${VARBASE}/log/cups
90CUPS_REQUESTS= ${VARBASE}/spool/cups 87CUPS_REQUESTS= ${VARBASE}/spool/cups
91CUPS_CACHE= ${VARBASE}/cache/cups 88CUPS_CACHE= ${VARBASE}/cache/cups
92CUPS_STATEDIR= ${VARBASE}/run/cups 89CUPS_STATEDIR= ${VARBASE}/run/cups
93 90
@@ -123,30 +120,26 @@ SUBST_CLASSES+= rpathfix @@ -123,30 +120,26 @@ SUBST_CLASSES+= rpathfix
123SUBST_FILES.rpathfix= cups-config.in 120SUBST_FILES.rpathfix= cups-config.in
124SUBST_MESSAGE.rpathfix= Adding rpath to cups-config. 121SUBST_MESSAGE.rpathfix= Adding rpath to cups-config.
125SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g' 122SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g'
126SUBST_STAGE.rpathfix= post-patch 123SUBST_STAGE.rpathfix= post-patch
127 124
128.if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Mpowerpc) 125.if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Mpowerpc)
129SUBST_CLASSES+= piefix 126SUBST_CLASSES+= piefix
130SUBST_FILES.piefix= Makedefs.in 127SUBST_FILES.piefix= Makedefs.in
131SUBST_MESSAGE.piefix= Removing PIE flags 128SUBST_MESSAGE.piefix= Removing PIE flags
132SUBST_SED.piefix= -e 's|@PIEFLAGS@||g' 129SUBST_SED.piefix= -e 's|@PIEFLAGS@||g'
133SUBST_STAGE.piefix= post-patch 130SUBST_STAGE.piefix= post-patch
134.endif 131.endif
135 132
136.if ${OPSYS} == "Darwin" 
137PLIST_SRC= PLIST.Darwin 
138.endif 
139 
140INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR} ${CUPS_CONFDIR} 133INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR} ${CUPS_CONFDIR}
141INSTALL_ENV+= DSTROOT=${DESTDIR} 134INSTALL_ENV+= DSTROOT=${DESTDIR}
142 135
143pre-configure: 136pre-configure:
144.if !empty(CUPS_SYSTEM_GROUPS:M${CUPS_GROUP}) 137.if !empty(CUPS_SYSTEM_GROUPS:M${CUPS_GROUP})
145 ${ERROR_MSG} "CUPS_SYSTEM_GROUPS may not contain the CUPS_GROUP" 138 ${ERROR_MSG} "CUPS_SYSTEM_GROUPS may not contain the CUPS_GROUP"
146 exit 1 139 exit 1
147.endif 140.endif
148 cd ${WRKSRC} && aclocal && autoconf 141 cd ${WRKSRC} && aclocal && autoconf
149 142
150post-extract: 143post-extract:
151 ${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam 144 ${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam
152 145
@@ -161,19 +154,19 @@ post-install: @@ -161,19 +154,19 @@ post-install:
161 done 154 done
162 ${CHMOD} g-w ${DESTDIR}${PREFIX}/libexec/cups/cgi-bin 155 ${CHMOD} g-w ${DESTDIR}${PREFIX}/libexec/cups/cgi-bin
163.if !empty(PKG_OPTIONS:Mpam) 156.if !empty(PKG_OPTIONS:Mpam)
164 ${INSTALL_DATA} ${WRKDIR}/cups.pam ${DESTDIR}${EGDIR} 157 ${INSTALL_DATA} ${WRKDIR}/cups.pam ${DESTDIR}${EGDIR}
165.endif 158.endif
166.if !empty(PKG_OPTIONS:Mdnssd) 159.if !empty(PKG_OPTIONS:Mdnssd)
167 ${LN} -sf ${DESTDIR}${PREFIX}/libexec/cups/backend/dnssd ${DESTDIR}${PREFIX}/libexec/cups/backend/mdns 160 ${LN} -sf ${DESTDIR}${PREFIX}/libexec/cups/backend/dnssd ${DESTDIR}${PREFIX}/libexec/cups/backend/mdns
168.endif 161.endif
169 162
170.include "../../converters/libiconv/buildlink3.mk" 163.include "../../converters/libiconv/buildlink3.mk"
171.include "../../devel/zlib/buildlink3.mk" 164.include "../../devel/zlib/buildlink3.mk"
172.include "../../graphics/png/buildlink3.mk" 165.include "../../graphics/png/buildlink3.mk"
173.include "../../graphics/tiff/buildlink3.mk" 166.include "../../graphics/tiff/buildlink3.mk"
 167.include "../../print/libpaper/buildlink3.mk"
 168.include "../../security/gnutls/buildlink3.mk"
174.include "../../mk/curses.buildlink3.mk" 169.include "../../mk/curses.buildlink3.mk"
175.include "../../mk/jpeg.buildlink3.mk" 170.include "../../mk/jpeg.buildlink3.mk"
176.include "../../mk/pthread.buildlink3.mk" 171.include "../../mk/pthread.buildlink3.mk"
177.include "../../print/libpaper/buildlink3.mk" 
178.include "../../security/gnutls/buildlink3.mk" 
179.include "../../mk/bsd.pkg.mk" 172.include "../../mk/bsd.pkg.mk"

cvs diff -r1.57 -r1.58 pkgsrc/print/cups/Attic/PLIST (expand / switch to unified diff)

--- pkgsrc/print/cups/Attic/PLIST 2016/10/09 08:33:16 1.57
+++ pkgsrc/print/cups/Attic/PLIST 2016/12/30 07:08:34 1.58
@@ -1,18 +1,19 @@ @@ -1,18 +1,19 @@
1@comment $NetBSD: PLIST,v 1.57 2016/10/09 08:33:16 leot Exp $ 1@comment $NetBSD: PLIST,v 1.58 2016/12/30 07:08:34 adam Exp $
2bin/cancel 2bin/cancel
3bin/cups-config 3bin/cups-config
4bin/cupstestdsc 4bin/cupstestdsc
5bin/cupstestppd 5bin/cupstestppd
 6${PLIST.ippfind}bin/ippfind
6bin/ipptool 7bin/ipptool
7bin/lp 8bin/lp
8bin/lpoptions 9bin/lpoptions
9bin/lpq 10bin/lpq
10bin/lpr 11bin/lpr
11bin/lprm 12bin/lprm
12bin/lpstat 13bin/lpstat
13bin/ppdc 14bin/ppdc
14bin/ppdhtml 15bin/ppdhtml
15bin/ppdi 16bin/ppdi
16bin/ppdmerge 17bin/ppdmerge
17bin/ppdpo 18bin/ppdpo
18include/cups/adminutil.h 19include/cups/adminutil.h
@@ -25,26 +26,30 @@ include/cups/http.h @@ -25,26 +26,30 @@ include/cups/http.h
25include/cups/ipp.h 26include/cups/ipp.h
26include/cups/language.h 27include/cups/language.h
27include/cups/ppd.h 28include/cups/ppd.h
28include/cups/pwg.h 29include/cups/pwg.h
29include/cups/raster.h 30include/cups/raster.h
30include/cups/sidechannel.h 31include/cups/sidechannel.h
31include/cups/transcode.h 32include/cups/transcode.h
32include/cups/versioning.h 33include/cups/versioning.h
33lib/libcups.la 34lib/libcups.la
34lib/libcupscgi.la 35lib/libcupscgi.la
35lib/libcupsimage.la 36lib/libcupsimage.la
36lib/libcupsmime.la 37lib/libcupsmime.la
37lib/libcupsppdc.la 38lib/libcupsppdc.la
 39${PLIST.apple}libexec/cups/apple/http
 40${PLIST.apple}libexec/cups/apple/https
 41${PLIST.apple}libexec/cups/apple/ipp
 42${PLIST.apple}libexec/cups/apple/ipps
38${PLIST.dnssd}libexec/cups/backend/dnssd 43${PLIST.dnssd}libexec/cups/backend/dnssd
39libexec/cups/backend/http 44libexec/cups/backend/http
40libexec/cups/backend/https 45libexec/cups/backend/https
41libexec/cups/backend/ipp 46libexec/cups/backend/ipp
42libexec/cups/backend/ipps 47libexec/cups/backend/ipps
43libexec/cups/backend/lpd 48libexec/cups/backend/lpd
44${PLIST.dnssd}libexec/cups/backend/mdns 49${PLIST.dnssd}libexec/cups/backend/mdns
45libexec/cups/backend/snmp 50libexec/cups/backend/snmp
46libexec/cups/backend/socket 51libexec/cups/backend/socket
47libexec/cups/backend/usb 52libexec/cups/backend/usb
48libexec/cups/cgi-bin/admin.cgi 53libexec/cups/cgi-bin/admin.cgi
49libexec/cups/cgi-bin/classes.cgi 54libexec/cups/cgi-bin/classes.cgi
50libexec/cups/cgi-bin/help.cgi 55libexec/cups/cgi-bin/help.cgi
@@ -62,26 +67,27 @@ libexec/cups/filter/rastertoepson @@ -62,26 +67,27 @@ libexec/cups/filter/rastertoepson
62libexec/cups/filter/rastertohp 67libexec/cups/filter/rastertohp
63libexec/cups/filter/rastertolabel 68libexec/cups/filter/rastertolabel
64libexec/cups/filter/rastertopwg 69libexec/cups/filter/rastertopwg
65libexec/cups/monitor/bcp 70libexec/cups/monitor/bcp
66libexec/cups/monitor/tbcp 71libexec/cups/monitor/tbcp
67${PLIST.dbus}libexec/cups/notifier/dbus 72${PLIST.dbus}libexec/cups/notifier/dbus
68libexec/cups/notifier/mailto 73libexec/cups/notifier/mailto
69libexec/cups/notifier/rss 74libexec/cups/notifier/rss
70man/man1/cancel.1 75man/man1/cancel.1
71man/man1/cups-config.1 76man/man1/cups-config.1
72man/man1/cups.1 77man/man1/cups.1
73man/man1/cupstestdsc.1 78man/man1/cupstestdsc.1
74man/man1/cupstestppd.1 79man/man1/cupstestppd.1
 80${PLIST.ippfind}man/man1/ippfind.1
75man/man1/ipptool.1 81man/man1/ipptool.1
76man/man1/lp.1 82man/man1/lp.1
77man/man1/lpoptions.1 83man/man1/lpoptions.1
78man/man1/lpq.1 84man/man1/lpq.1
79man/man1/lpr.1 85man/man1/lpr.1
80man/man1/lprm.1 86man/man1/lprm.1
81man/man1/lpstat.1 87man/man1/lpstat.1
82man/man1/ppdc.1 88man/man1/ppdc.1
83man/man1/ppdhtml.1 89man/man1/ppdhtml.1
84man/man1/ppdi.1 90man/man1/ppdi.1
85man/man1/ppdmerge.1 91man/man1/ppdmerge.1
86man/man1/ppdpo.1 92man/man1/ppdpo.1
87man/man5/classes.conf.5 93man/man5/classes.conf.5
@@ -701,25 +707,25 @@ share/doc/cups/images/raster-organizatio @@ -701,25 +707,25 @@ share/doc/cups/images/raster-organizatio
701share/doc/cups/images/raster.png 707share/doc/cups/images/raster.png
702share/doc/cups/images/right.gif 708share/doc/cups/images/right.gif
703share/doc/cups/images/sample-image.png 709share/doc/cups/images/sample-image.png
704share/doc/cups/images/sel.gif 710share/doc/cups/images/sel.gif
705share/doc/cups/images/smiley.jpg 711share/doc/cups/images/smiley.jpg
706share/doc/cups/images/unsel.gif 712share/doc/cups/images/unsel.gif
707share/doc/cups/images/wait.gif 713share/doc/cups/images/wait.gif
708share/doc/cups/index.html 714share/doc/cups/index.html
709share/doc/cups/ja/index.html 715share/doc/cups/ja/index.html
710share/doc/cups/pt_BR/index.html 716share/doc/cups/pt_BR/index.html
711share/doc/cups/robots.txt 717share/doc/cups/robots.txt
712share/doc/cups/ru/index.html 718share/doc/cups/ru/index.html
713share/examples/cups/cups-files.conf 719share/examples/cups/cups-files.conf
714share/examples/cups/cupsd.conf 
715${PLIST.pam}share/examples/cups/cups.pam 720${PLIST.pam}share/examples/cups/cups.pam
 721share/examples/cups/cupsd.conf
716share/examples/cups/snmp.conf 722share/examples/cups/snmp.conf
717share/locale/ca/cups_ca.po 723share/locale/ca/cups_ca.po
718share/locale/cs/cups_cs.po 724share/locale/cs/cups_cs.po
719share/locale/de/cups_de.po 725share/locale/de/cups_de.po
720share/locale/es/cups_es.po 726share/locale/es/cups_es.po
721share/locale/fr/cups_fr.po 727share/locale/fr/cups_fr.po
722share/locale/it/cups_it.po 728share/locale/it/cups_it.po
723share/locale/ja/cups_ja.po 729share/locale/ja/cups_ja.po
724share/locale/pt_BR/cups_pt_BR.po 730share/locale/pt_BR/cups_pt_BR.po
725share/locale/ru/cups_ru.po 731share/locale/ru/cups_ru.po

File Deleted: pkgsrc/print/cups/Attic/PLIST.Darwin

cvs diff -r1.36 -r1.37 pkgsrc/print/cups/Attic/buildlink3.mk (expand / switch to unified diff)

--- pkgsrc/print/cups/Attic/buildlink3.mk 2016/09/20 11:12:22 1.36
+++ pkgsrc/print/cups/Attic/buildlink3.mk 2016/12/30 07:08:34 1.37
@@ -1,29 +1,33 @@ @@ -1,29 +1,33 @@
1# $NetBSD: buildlink3.mk,v 1.36 2016/09/20 11:12:22 wiz Exp $ 1# $NetBSD: buildlink3.mk,v 1.37 2016/12/30 07:08:34 adam Exp $
2 2
3BUILDLINK_TREE+= cups 3BUILDLINK_TREE+= cups
4 4
5.if !defined(CUPS_BUILDLINK3_MK) 5.if !defined(CUPS_BUILDLINK3_MK)
6CUPS_BUILDLINK3_MK:= 6CUPS_BUILDLINK3_MK:=
7 7
8BUILDLINK_API_DEPENDS.cups+= cups>=1.1.19nb3 8BUILDLINK_API_DEPENDS.cups+= cups>=1.1.19nb3
9BUILDLINK_ABI_DEPENDS.cups+= cups>=2.1.4nb2 9BUILDLINK_ABI_DEPENDS.cups+= cups>=2.1.4nb2
10BUILDLINK_PKGSRCDIR.cups?= ../../print/cups 10BUILDLINK_PKGSRCDIR.cups?= ../../print/cups
11 11
12pkgbase := cups 12pkgbase := cups
13.include "../../mk/pkg-build-options.mk" 13.include "../../mk/pkg-build-options.mk"
14 14
15.if !empty(PKG_BUILD_OPTIONS.cups:Mkerberos) 15.if !empty(PKG_BUILD_OPTIONS.cups:Mkerberos)
16.include "../../mk/krb5.buildlink3.mk" 16.include "../../mk/krb5.buildlink3.mk"
17.endif 17.endif
18 18
19.if !empty(PKG_BUILD_OPTIONS.cups:Mdnssd) 19.if !empty(PKG_BUILD_OPTIONS.cups:Mdnssd)
20.include "../../net/mDNSResponder/buildlink3.mk" 20.include "../../net/mDNSResponder/buildlink3.mk"
21.endif 21.endif
22 22
 23.if ${OPSYS} != "Darwin" && !empty(PKG_BUILD_OPTIONS.cups:Mavahi)
 24.include "../../net/avahi/buildlink3.mk"
 25.endif
 26
23.include "../../converters/libiconv/buildlink3.mk" 27.include "../../converters/libiconv/buildlink3.mk"
24.include "../../graphics/png/buildlink3.mk" 28.include "../../graphics/png/buildlink3.mk"
25.include "../../graphics/tiff/buildlink3.mk" 29.include "../../graphics/tiff/buildlink3.mk"
26.include "../../security/gnutls/buildlink3.mk" 30.include "../../security/gnutls/buildlink3.mk"
27.endif # CUPS_BUILDLINK3_MK 31.endif # CUPS_BUILDLINK3_MK
28 32
29BUILDLINK_TREE+= -cups 33BUILDLINK_TREE+= -cups

cvs diff -r1.18 -r1.19 pkgsrc/print/cups/Attic/options.mk (expand / switch to unified diff)

--- pkgsrc/print/cups/Attic/options.mk 2014/08/23 20:02:11 1.18
+++ pkgsrc/print/cups/Attic/options.mk 2016/12/30 07:08:34 1.19
@@ -1,73 +1,85 @@ @@ -1,73 +1,85 @@
1# $NetBSD: options.mk,v 1.18 2014/08/23 20:02:11 schnoebe Exp $ 1# $NetBSD: options.mk,v 1.19 2016/12/30 07:08:34 adam Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.cups 3PKG_OPTIONS_VAR= PKG_OPTIONS.cups
4PKG_SUPPORTED_OPTIONS= acl dbus dnssd kerberos pam tcpwrappers 4PKG_SUPPORTED_OPTIONS= acl dnssd kerberos pam tcpwrappers
5PKG_SUGGESTED_OPTIONS= dbus dnssd kerberos 5PKG_SUGGESTED_OPTIONS= dnssd kerberos
6 6
 7PLIST_VARS+= apple dbus dnssd ippfind libusb pam
 8
 9.if ${OPSYS} == "Darwin"
 10PLIST.apple= yes
 11PLIST.ippfind= yes
 12.else
 13# CUPS on Darwin does not support DBus and libusb
 14PKG_SUPPORTED_OPTIONS+= avahi dbus
 15PKG_SUGGESTED_OPTIONS+= dbus
7# Neither DragonFly nor SunOS can build libusb1 16# Neither DragonFly nor SunOS can build libusb1
8.if ${OPSYS} != "DragonFly" && ${OPSYS} != "SunOS" 17. if ${OPSYS} != "DragonFly" && ${OPSYS} != "SunOS"
9PKG_SUPPORTED_OPTIONS+= libusb 18PKG_SUPPORTED_OPTIONS+= libusb
10PKG_SUGGESTED_OPTIONS+= libusb 19PKG_SUGGESTED_OPTIONS+= libusb
 20. endif
11.endif 21.endif
12 22
13.include "../../mk/bsd.options.mk" 23.include "../../mk/bsd.options.mk"
14 24
15MESSAGE_SRC= ${PKGDIR}/MESSAGE 25MESSAGE_SRC= ${PKGDIR}/MESSAGE
16 26
17.if !empty(PKG_OPTIONS:Macl) 27.if !empty(PKG_OPTIONS:Macl)
18CONFIGURE_ARGS+= --enable-acl 28CONFIGURE_ARGS+= --enable-acl
19.else 29.else
20CONFIGURE_ARGS+= --disable-acl 30CONFIGURE_ARGS+= --disable-acl
21.endif 31.endif
22 32
23PLIST_VARS+= dbus 33.if !empty(PKG_OPTIONS:Mavahi)
 34.include "../../net/avahi/buildlink3.mk"
 35CONFIGURE_ARGS+= --enable-avahi
 36PLIST.ippfind= yes
 37.else
 38CONFIGURE_ARGS+= --disable-avahi
 39.endif
 40
24.if !empty(PKG_OPTIONS:Mdbus) 41.if !empty(PKG_OPTIONS:Mdbus)
25USE_TOOLS+= pkg-config 
26. include "../../sysutils/dbus/buildlink3.mk" 42. include "../../sysutils/dbus/buildlink3.mk"
27CONFIGURE_ARGS+= --enable-dbus 43CONFIGURE_ARGS+= --enable-dbus
28PLIST.dbus= yes 44PLIST.dbus= yes
29.else 45.else
30CONFIGURE_ARGS+= --disable-dbus 46CONFIGURE_ARGS+= --disable-dbus
31.endif 47.endif
32 48
33PLIST_VARS+= dnssd 
34.if !empty(PKG_OPTIONS:Mdnssd) 49.if !empty(PKG_OPTIONS:Mdnssd)
35.include "../../net/mDNSResponder/buildlink3.mk" 50.include "../../net/mDNSResponder/buildlink3.mk"
36CONFIGURE_ARGS+= --enable-dnssd 51CONFIGURE_ARGS+= --enable-dnssd
37PLIST.dnssd= yes 52PLIST.dnssd= yes
38.else 53.else
39CONFIGURE_ARGS+= --disable-dnssd 54CONFIGURE_ARGS+= --disable-dnssd
40.endif 55.endif
41 56
42.if !empty(PKG_OPTIONS:Mkerberos) 57.if !empty(PKG_OPTIONS:Mkerberos)
43.include "../../mk/krb5.buildlink3.mk" 58.include "../../mk/krb5.buildlink3.mk"
44CONFIGURE_ARGS+= --enable-gssapi 59CONFIGURE_ARGS+= --enable-gssapi
45.else 60.else
46CONFIGURE_ARGS+= --disable-gssapi 61CONFIGURE_ARGS+= --disable-gssapi
47.endif 62.endif
48 63
49PLIST_VARS+= libusb 
50.if !empty(PKG_OPTIONS:Mlibusb) 64.if !empty(PKG_OPTIONS:Mlibusb)
51.include "../../devel/libusb1/buildlink3.mk" 65.include "../../devel/libusb1/buildlink3.mk"
52CONFIGURE_ARGS+= --enable-libusb 66CONFIGURE_ARGS+= --enable-libusb
53MESSAGE_SRC+= ${PKGDIR}/MESSAGE.libusb 67MESSAGE_SRC+= ${PKGDIR}/MESSAGE.libusb
54USE_TOOLS+= pkg-config 
55PLIST.libusb= yes 68PLIST.libusb= yes
56.else 69.else
57CONFIGURE_ARGS+= --disable-libusb 70CONFIGURE_ARGS+= --disable-libusb
58.endif 71.endif
59 72
60PLIST_VARS+= pam 
61.if !empty(PKG_OPTIONS:Mpam) 73.if !empty(PKG_OPTIONS:Mpam)
62. include "../../mk/pam.buildlink3.mk" 74. include "../../mk/pam.buildlink3.mk"
63CONFIGURE_ARGS+= --enable-pam 75CONFIGURE_ARGS+= --enable-pam
64MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam 76MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam
65PLIST.pam= yes 77PLIST.pam= yes
66.else 78.else
67CONFIGURE_ARGS+= --disable-pam 79CONFIGURE_ARGS+= --disable-pam
68MESSAGE_SRC= ${.CURDIR}/MESSAGE 80MESSAGE_SRC= ${.CURDIR}/MESSAGE
69.endif 81.endif
70 82
71.if !empty(PKG_OPTIONS:Mtcpwrappers) 83.if !empty(PKG_OPTIONS:Mtcpwrappers)
72.include "../../security/tcp_wrappers/buildlink3.mk" 84.include "../../security/tcp_wrappers/buildlink3.mk"
73CONFIGURE_ARGS+= --enable-tcp-wrappers 85CONFIGURE_ARGS+= --enable-tcp-wrappers