diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-02-26 10:57:45 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-02-26 10:57:45 +0000 |
commit | 97f4078fc66b31385abf80fccbd0ad2c025fe60f (patch) | |
tree | ba40492c0d12e5e3607803f3192c1d24923347ba | |
parent | ff2ff9e81927ce4912893dae7f00cc43823bb857 (diff) | |
download | pkgsrc-97f4078fc66b31385abf80fccbd0ad2c025fe60f.tar.gz |
Use OPSYSVARS.
119 files changed, 300 insertions, 709 deletions
diff --git a/www/curl/options.mk b/www/curl/options.mk index 83e1b1f1d28..7134e74a04d 100644 --- a/www/curl/options.mk +++ b/www/curl/options.mk @@ -1,14 +1,11 @@ -# $NetBSD: options.mk,v 1.13 2015/06/03 12:00:06 fhajny Exp $ +# $NetBSD: options.mk,v 1.14 2016/02/26 10:57:45 jperkin Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.curl PKG_SUPPORTED_OPTIONS= inet6 libssh2 gssapi ldap rtmp libidn http2 PKG_SUGGESTED_OPTIONS= inet6 libidn -.include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == NetBSD # Kerberos is built in - no additional dependency -PKG_SUGGESTED_OPTIONS+= gssapi -.endif +PKG_SUGGESTED_OPTIONS.NetBSD+= gssapi .include "../../mk/bsd.options.mk" diff --git a/www/firefox/Makefile b/www/firefox/Makefile index af16beb5e6a..c95f961dc10 100644 --- a/www/firefox/Makefile +++ b/www/firefox/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.243 2016/02/12 15:21:48 ryoon Exp $ +# $NetBSD: Makefile,v 1.244 2016/02/26 10:57:45 jperkin Exp $ FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR} MOZ_BRANCH= 44.0 @@ -29,13 +29,9 @@ LDFLAGS.SunOS+= -lm ALL_ENV+= MOZILLA_PKG_NAME=firefox -.include "../../mk/bsd.prefs.mk" - # Avoid ld "invalid section index" errors. -.if ${OPSYS} == "SunOS" -BUILDLINK_TRANSFORM+= rm:-fdata-sections -BUILDLINK_TRANSFORM+= rm:-ffunction-sections -.endif +BUILDLINK_TRANSFORM.SunOS+= rm:-fdata-sections +BUILDLINK_TRANSFORM.SunOS+= rm:-ffunction-sections LDFLAGS.DragonFly= -lplc4 -lnspr4 LDFLAGS.FreeBSD= -lplc4 -lnspr4 diff --git a/www/firefox/mozilla-common.mk b/www/firefox/mozilla-common.mk index 7d8811f273e..ee8d930ed5d 100644 --- a/www/firefox/mozilla-common.mk +++ b/www/firefox/mozilla-common.mk @@ -1,10 +1,12 @@ -# $NetBSD: mozilla-common.mk,v 1.70 2016/02/09 12:47:22 ryoon Exp $ +# $NetBSD: mozilla-common.mk,v 1.71 2016/02/26 10:57:45 jperkin Exp $ # # common Makefile fragment for mozilla packages based on gecko 2.0. # # used by www/firefox/Makefile # used by www/seamonkey/Makefile +.include "../../mk/bsd.prefs.mk" + .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" BUILD_DEPENDS+= yasm>=1.1:../../devel/yasm .endif @@ -18,7 +20,6 @@ test: cd ${WRKSRC}/${OBJDIR}/dist/bin && \ ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey -.include "../../mk/bsd.prefs.mk" # tar(1) of OpenBSD 5.5 has no --exclude command line option. .if ${OPSYS} == "OpenBSD" TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} @@ -162,9 +163,7 @@ PLIST.mozglue= yes # See ${WRKSRC}/security/sandbox/mac/Sandbox.mm: On Darwin, sandboxing # support is only available when the toolkit is cairo-cocoa. -.if ${OPSYS} == "Darwin" -CONFIGURE_ARGS+= --disable-sandbox -.endif +CONFIGURE_ARGS.Darwin+= --disable-sandbox # See ${WRKSRC}/configure.in: It tries to use MacOS X 10.6 SDK by # default, which is not always possible. @@ -190,13 +189,9 @@ create-rm-wrapper: ${WRAPPER_DIR}/bin/rm chmod +x ${WRAPPER_DIR}/bin/rm -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" # The configure test for __thread succeeds, but later we end up with: # dist/bin/libxul.so: undefined reference to `__tls_get_addr' -CONFIGURE_ENV+= ac_cv_thread_keyword=no -.endif +CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no .if ${OPSYS} == "SunOS" # native libbz2.so hides BZ2_crc32Table diff --git a/www/firefox/options.mk b/www/firefox/options.mk index d97832af48b..6fa2a631c19 100644 --- a/www/firefox/options.mk +++ b/www/firefox/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.28 2015/12/27 18:25:33 ryoon Exp $ +# $NetBSD: options.mk,v 1.29 2016/02/26 10:57:45 jperkin Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.firefox PKG_SUPPORTED_OPTIONS= official-mozilla-branding @@ -13,9 +13,7 @@ PKG_SUGGESTED_OPTIONS+= pulseaudio .endif # On NetBSD/amd64 6.99.21 libxul.so is invalid when --enable-webrtc is set. -.if ${OPSYS} == "Linux" -PKG_SUGGESTED_OPTIONS+= webrtc -.endif +PKG_SUGGESTED_OPTIONS.Linux+= webrtc .include "../../mk/bsd.options.mk" diff --git a/www/firefox24/Makefile b/www/firefox24/Makefile index 4565bab64eb..2dcc55edafe 100644 --- a/www/firefox24/Makefile +++ b/www/firefox24/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2015/11/18 14:19:55 ryoon Exp $ +# $NetBSD: Makefile,v 1.34 2016/02/26 10:57:46 jperkin Exp $ FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR} # Also update MOZ_BRANCH= in devel/xulrunner24/Makefile @@ -35,13 +35,9 @@ LDFLAGS.NetBSD+= -pthread ALL_ENV+= MOZILLA_PKG_NAME=firefox24 -.include "../../mk/bsd.prefs.mk" - # Avoid ld "invalid section index" errors. -.if ${OPSYS} == "SunOS" -BUILDLINK_TRANSFORM+= rm:-fdata-sections -BUILDLINK_TRANSFORM+= rm:-ffunction-sections -.endif +BUILDLINK_TRANSFORM.SunOS+= rm:-fdata-sections +BUILDLINK_TRANSFORM.SunOS+= rm:-ffunction-sections LDFLAGS.DragonFly= -lplc4 -lnspr4 LDFLAGS.FreeBSD= -lplc4 -lnspr4 diff --git a/www/firefox24/mozilla-common.mk b/www/firefox24/mozilla-common.mk index 288001fab5b..b98eaf7d5f8 100644 --- a/www/firefox24/mozilla-common.mk +++ b/www/firefox24/mozilla-common.mk @@ -1,4 +1,4 @@ -# $NetBSD: mozilla-common.mk,v 1.11 2015/12/05 21:26:04 adam Exp $ +# $NetBSD: mozilla-common.mk,v 1.12 2016/02/26 10:57:46 jperkin Exp $ # # common Makefile fragment for mozilla packages based on gecko 2.0. # @@ -144,13 +144,9 @@ create-rm-wrapper: ${WRAPPER_DIR}/bin/rm chmod +x ${WRAPPER_DIR}/bin/rm -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" # The configure test for __thread succeeds, but later we end up with: # dist/bin/libxul.so: undefined reference to `__tls_get_addr' -CONFIGURE_ENV+= ac_cv_thread_keyword=no -.endif +CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no .if ${OPSYS} == "SunOS" # native libbz2.so hides BZ2_crc32Table diff --git a/www/firefox31/Makefile b/www/firefox31/Makefile index b3b4ca65689..043c1a4fb1e 100644 --- a/www/firefox31/Makefile +++ b/www/firefox31/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2015/11/18 14:19:55 ryoon Exp $ +# $NetBSD: Makefile,v 1.19 2016/02/26 10:57:46 jperkin Exp $ FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}esr # Also update MOZ_BRANCH= in devel/xulrunner31/Makefile @@ -34,13 +34,9 @@ LDFLAGS.SunOS+= -lm ALL_ENV+= MOZILLA_PKG_NAME=firefox31 -.include "../../mk/bsd.prefs.mk" - # Avoid ld "invalid section index" errors. -.if ${OPSYS} == "SunOS" -BUILDLINK_TRANSFORM+= rm:-fdata-sections -BUILDLINK_TRANSFORM+= rm:-ffunction-sections -.endif +BUILDLINK_TRANSFORM.SunOS+= rm:-fdata-sections +BUILDLINK_TRANSFORM.SunOS+= rm:-ffunction-sections LDFLAGS.DragonFly= -lplc4 -lnspr4 LDFLAGS.FreeBSD= -lplc4 -lnspr4 diff --git a/www/firefox31/mozilla-common.mk b/www/firefox31/mozilla-common.mk index a69d09e66c7..a81e25ab563 100644 --- a/www/firefox31/mozilla-common.mk +++ b/www/firefox31/mozilla-common.mk @@ -1,4 +1,4 @@ -# $NetBSD: mozilla-common.mk,v 1.3 2015/12/05 21:26:04 adam Exp $ +# $NetBSD: mozilla-common.mk,v 1.4 2016/02/26 10:57:46 jperkin Exp $ # # common Makefile fragment for mozilla packages based on gecko 2.0. # @@ -173,13 +173,9 @@ create-rm-wrapper: ${WRAPPER_DIR}/bin/rm chmod +x ${WRAPPER_DIR}/bin/rm -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" # The configure test for __thread succeeds, but later we end up with: # dist/bin/libxul.so: undefined reference to `__tls_get_addr' -CONFIGURE_ENV+= ac_cv_thread_keyword=no -.endif +CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no .if ${OPSYS} == "SunOS" # native libbz2.so hides BZ2_crc32Table diff --git a/www/firefox31/options.mk b/www/firefox31/options.mk index 9b83d4f18f6..a1e6bd6531a 100644 --- a/www/firefox31/options.mk +++ b/www/firefox31/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.1 2014/11/03 12:18:31 ryoon Exp $ +# $NetBSD: options.mk,v 1.2 2016/02/26 10:57:46 jperkin Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.firefox31 PKG_SUPPORTED_OPTIONS= official-mozilla-branding @@ -12,9 +12,7 @@ PKG_SUGGESTED_OPTIONS+= pulseaudio .endif # On NetBSD/amd64 6.99.21 libxul.so is invalid when --enable-webrtc is set. -.if ${OPSYS} == "Linux" -PKG_SUGGESTED_OPTIONS+= webrtc -.endif +PKG_SUGGESTED_OPTIONS.Linux+= webrtc .include "../../mk/bsd.options.mk" diff --git a/www/firefox38/Makefile b/www/firefox38/Makefile index 0eb10ded132..d8a97b526d4 100644 --- a/www/firefox38/Makefile +++ b/www/firefox38/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2016/02/19 14:42:33 ryoon Exp $ +# $NetBSD: Makefile,v 1.14 2016/02/26 10:57:46 jperkin Exp $ FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR} MOZ_BRANCH= 38.6 @@ -32,13 +32,9 @@ LDFLAGS.SunOS+= -lm ALL_ENV+= MOZILLA_PKG_NAME=firefox38 -.include "../../mk/bsd.prefs.mk" - # Avoid ld "invalid section index" errors. -.if ${OPSYS} == "SunOS" -BUILDLINK_TRANSFORM+= rm:-fdata-sections -BUILDLINK_TRANSFORM+= rm:-ffunction-sections -.endif +BUILDLINK_TRANSFORM.SunOS+= rm:-fdata-sections +BUILDLINK_TRANSFORM.SunOS+= rm:-ffunction-sections LDFLAGS.DragonFly= -lplc4 -lnspr4 LDFLAGS.FreeBSD= -lplc4 -lnspr4 diff --git a/www/firefox38/mozilla-common.mk b/www/firefox38/mozilla-common.mk index ddc99640eb1..45d3dda90d3 100644 --- a/www/firefox38/mozilla-common.mk +++ b/www/firefox38/mozilla-common.mk @@ -1,4 +1,4 @@ -# $NetBSD: mozilla-common.mk,v 1.4 2015/12/05 21:26:04 adam Exp $ +# $NetBSD: mozilla-common.mk,v 1.5 2016/02/26 10:57:46 jperkin Exp $ # # common Makefile fragment for mozilla packages based on gecko 2.0. # @@ -157,9 +157,7 @@ PLIST.mozglue= yes # See ${WRKSRC}/security/sandbox/mac/Sandbox.mm: On Darwin, sandboxing # support is only available when the toolkit is cairo-cocoa. -.if ${OPSYS} == "Darwin" -CONFIGURE_ARGS+= --disable-sandbox -.endif +CONFIGURE_ARGS.Darwin+= --disable-sandbox # See ${WRKSRC}/configure.in: It tries to use MacOS X 10.6 SDK by # default, which is not always possible. @@ -185,13 +183,9 @@ create-rm-wrapper: ${WRAPPER_DIR}/bin/rm chmod +x ${WRAPPER_DIR}/bin/rm -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" # The configure test for __thread succeeds, but later we end up with: # dist/bin/libxul.so: undefined reference to `__tls_get_addr' -CONFIGURE_ENV+= ac_cv_thread_keyword=no -.endif +CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no .if ${OPSYS} == "SunOS" # native libbz2.so hides BZ2_crc32Table diff --git a/www/firefox38/options.mk b/www/firefox38/options.mk index b6f915cfe13..f5ddeedd25a 100644 --- a/www/firefox38/options.mk +++ b/www/firefox38/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.1 2015/07/09 14:13:51 ryoon Exp $ +# $NetBSD: options.mk,v 1.2 2016/02/26 10:57:46 jperkin Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.firefox38 PKG_SUPPORTED_OPTIONS= official-mozilla-branding @@ -12,9 +12,7 @@ PKG_SUGGESTED_OPTIONS+= pulseaudio .endif # On NetBSD/amd64 6.99.21 libxul.so is invalid when --enable-webrtc is set. -.if ${OPSYS} == "Linux" -PKG_SUGGESTED_OPTIONS+= webrtc -.endif +PKG_SUGGESTED_OPTIONS.Linux+= webrtc .include "../../mk/bsd.options.mk" diff --git a/www/http_load/Makefile b/www/http_load/Makefile index bf4a477df61..90348c48384 100644 --- a/www/http_load/Makefile +++ b/www/http_load/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2014/02/12 23:18:45 tron Exp $ +# $NetBSD: Makefile,v 1.24 2016/02/26 10:57:46 jperkin Exp $ DISTNAME= http_load-12mar2006 PKGNAME= http_load-20060312 @@ -13,10 +13,7 @@ LICENSE= 2-clause-bsd MAKE_ENV+= SSLBASE=${SSLBASE:Q} -.include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "SunOS" -MAKE_ENV+= SYSV_LIBS="-lnsl -lsocket -lresolv" -.endif +MAKE_ENV.SunOS+= SYSV_LIBS="-lnsl -lsocket -lresolv" .include "../../security/openssl/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/mMosaic/Makefile b/www/mMosaic/Makefile index fe455dc2e21..af069dbfe0c 100644 --- a/www/mMosaic/Makefile +++ b/www/mMosaic/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.30 2014/12/15 11:46:36 jperkin Exp $ +# $NetBSD: Makefile,v 1.31 2016/02/26 10:57:46 jperkin Exp $ # DISTNAME= mMosaic-3.7.2 @@ -16,32 +16,21 @@ WRKSRC= ${WRKDIR}/mMosaic-src-3.7.2 INSTALLATION_DIRS= bin +OPSYSVARS+= MAKEFLAGS +MAKEFLAGS.DragonFly+= sysconfigflags='-DFreeBSD -DMOTIF1_2' +MAKEFLAGS.FreeBSD+= sysconfigflags='-DFreeBSD -DMOTIF1_2' +MAKEFLAGS.IRIX+= sysconfigflags='-DSVR4 -DIRIX -DMOTIF1_2' +MAKEFLAGS.Linux+= sysconfigflags='-DLINUX -Dlinux -DMOTIF1_2' +MAKEFLAGS.NetBSD+= sysconfigflags='-DNETBSD -DMOTIF1_2' + +BUILDLINK_TRANSFORM.Darwin+= opt:-shared:-c + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/mMosaic ${DESTDIR}${PREFIX}/bin/ .include "../../devel/zlib/buildlink3.mk" -.include "../../mk/jpeg.buildlink3.mk" .include "../../graphics/png/buildlink3.mk" +.include "../../mk/jpeg.buildlink3.mk" .include "../../mk/motif.buildlink3.mk" - -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -MAKEFLAGS+= sysconfigflags='-DNETBSD -DMOTIF1_2' - -.elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly" -MAKEFLAGS+= sysconfigflags='-DFreeBSD -DMOTIF1_2' - -.elif ${OPSYS} == "Linux" -MAKEFLAGS+= sysconfigflags='-DLINUX -Dlinux -DMOTIF1_2' - -.elif ${OPSYS:MIRIX*} != "" -MAKEFLAGS+= sysconfigflags='-DSVR4 -DIRIX -DMOTIF1_2' - -.elif ${OPSYS} == "Darwin" -BUILDLINK_TRANSFORM+= opt:-shared:-c -.endif - .include "../../x11/libXmu/buildlink3.mk" - .include "../../mk/bsd.pkg.mk" diff --git a/www/mini_httpd/Makefile b/www/mini_httpd/Makefile index d90d4d7d7b7..1d5a2b40543 100644 --- a/www/mini_httpd/Makefile +++ b/www/mini_httpd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2015/05/05 15:55:17 joerg Exp $ +# $NetBSD: Makefile,v 1.26 2016/02/26 10:57:46 jperkin Exp $ DISTNAME= mini_httpd-1.21 CATEGORIES= www @@ -16,13 +16,8 @@ MAKE_ENV+= PKG_CFLAGS=${CFLAGS:Q} MAKE_ENV+= PKG_LDFLAGS=${LDFLAGS:Q} MAKE_ENV+= PKG_LIBS=${LIBS:Q} -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -MAKE_ENV+= SYSV_LIBS="-lnsl -lsocket" -.elif ${OPSYS} == "NetBSD" -MAKE_ENV+= CRYPT_LIB=-lcrypt -.endif +MAKE_ENV.NetBSD+= CRYPT_LIB=-lcrypt +MAKE_ENV.SunOS+= SYSV_LIBS="-lnsl -lsocket" SUBST_CLASSES= htpasswd SUBST_MESSAGE.htpasswd= Fix name of (m)htpasswd in manual pages. diff --git a/www/seamonkey/options.mk b/www/seamonkey/options.mk index 8df6f6ae27f..f1be8c24985 100644 --- a/www/seamonkey/options.mk +++ b/www/seamonkey/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.32 2015/07/01 13:02:30 ryoon Exp $ +# $NetBSD: options.mk,v 1.33 2016/02/26 10:57:46 jperkin Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.seamonkey PKG_SUPPORTED_OPTIONS= alsa debug mozilla-jemalloc # gnome @@ -6,9 +6,8 @@ PKG_SUPPORTED_OPTIONS+= mozilla-lightning webrtc mozilla-chatzilla pulseaudio PLIST_VARS+= debug gnome jemalloc -.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS" -PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc -.endif +PKG_SUGGESTED_OPTIONS.Linux+= mozilla-jemalloc +PKG_SUGGESTED_OPTIONS.SunOS+= mozilla-jemalloc # On NetBSD/amd64 6.99.21 libxul.so is invalid when --enable-webrtc is set. .if (${OPSYS} == "FreeBSD") || (${OPSYS} == "Linux") || (${OPSYS} == "OpenBSD") diff --git a/www/sqtop/Makefile b/www/sqtop/Makefile index 293a196bf30..e2e55a9df79 100644 --- a/www/sqtop/Makefile +++ b/www/sqtop/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2015/08/18 07:31:19 wiz Exp $ +# $NetBSD: Makefile,v 1.8 2016/02/26 10:57:46 jperkin Exp $ DISTNAME= sqtop-2013-12-17 PKGNAME= ${DISTNAME:C/([0-9])-/\1/g} @@ -17,13 +17,9 @@ DEPENDS+= squid-[0-9]*:../../www/squid3 GNU_CONFIGURE= yes USE_LANGUAGES= c c++ -LDFLAGS.SunOS+= -lsocket -lnsl - -.include "../../mk/bsd.prefs.mk" +CONFIGURE_ARGS.NetBSD+= --with-resolver=netdb_getnameinfo -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --with-resolver=netdb_getnameinfo -.endif +LDFLAGS.SunOS+= -lsocket -lnsl .include "../../mk/resolv.buildlink3.mk" .include "../../devel/ncurses/buildlink3.mk" diff --git a/www/squid3/Makefile b/www/squid3/Makefile index f20b6da9132..f1bc5f95e69 100644 --- a/www/squid3/Makefile +++ b/www/squid3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.60 2016/02/24 06:38:57 taca Exp $ +# $NetBSD: Makefile,v 1.61 2016/02/26 10:57:46 jperkin Exp $ DISTNAME= squid-3.5.15 CATEGORIES= www @@ -53,9 +53,7 @@ OWN_DIRS_PERMS+=${SQUID_DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \ .include "options.mk" # Incorrect check for <netinet/ip_icmp.h> on FreeBSD: -.if $(OPSYS) == "FreeBSD" -CONFIGURE_ENV+= ac_cv_header_netinet_ip_icmp_h=yes -.endif +CONFIGURE_ENV.FreeBSD+= ac_cv_header_netinet_ip_icmp_h=yes INSTALLATION_DIRS= ${EGDIR} diff --git a/www/squid3/options.mk b/www/squid3/options.mk index 47f777b0d10..c2ccade0b2a 100644 --- a/www/squid3/options.mk +++ b/www/squid3/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.16 2015/05/04 09:13:34 adam Exp $ +# $NetBSD: options.mk,v 1.17 2016/02/26 10:57:46 jperkin Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.squid PKG_SUPPORTED_OPTIONS= inet6 snmp ssl squid-backend-aufs squid-backend-diskd \ @@ -42,14 +42,10 @@ PKG_SUPPORTED_OPTIONS+= squid-pf PKG_SUGGESTED_OPTIONS+= squid-ipf .endif -.if ${OPSYS} == "OpenBSD" -PKG_SUGGESTED_OPTIONS+= squid-pf -.endif +PKG_SUGGESTED_OPTIONS.OpenBSD+= squid-pf -.if ${OPSYS} == "Darwin" -PKG_SUPPORTED_OPTIONS+= squid-ipfw -PKG_SUGGESTED_OPTIONS+= squid-ipfw -.endif +PKG_SUPPORTED_OPTIONS.Darwin+= squid-ipfw +PKG_SUGGESTED_OPTIONS.Darwin+= squid-ipfw # limited platform support squid-arp-acl .if !empty(OPSYS:MFreeBSD) || !empty(OPSYS:MNetBSD) || !empty(OPSYS:MOpenBSD) || !empty(OPSYS:MLinux) || !empty(OPSYS:MSunOS) diff --git a/www/urlget/Makefile b/www/urlget/Makefile index c7264bb9ba5..0d03b52e5a1 100644 --- a/www/urlget/Makefile +++ b/www/urlget/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2013/03/14 17:04:27 kim Exp $ +# $NetBSD: Makefile,v 1.15 2016/02/26 10:57:46 jperkin Exp $ # DISTNAME= urlget-1.5 @@ -8,13 +8,9 @@ MASTER_SITES= http://oss.gw.com/people/kim/ MAINTAINER= kim@tac.nyc.ny.us COMMENT= Simple command-line tool to retrieve an HTTP URL -.include "../../mk/bsd.prefs.mk" +BUILD_TARGET.SunOS= svr4 +BUILD_TARGET.*= bsd -.if ${OPSYS} == "SunOS" -BUILD_TARGET= svr4 -.else -BUILD_TARGET= bsd -.endif INSTALL_TARGET= inst-all INSTALL_MAKE_FLAGS+= DEST=${DESTDIR}${PREFIX} INSTALL_MAKE_FLAGS+= MANDIR=${DESTDIR}/${PREFIX}/${PKGMANDIR}/man1 diff --git a/www/w3c-httpd/Makefile b/www/w3c-httpd/Makefile index 31f63a9dc8e..3d30073ffc5 100644 --- a/www/w3c-httpd/Makefile +++ b/www/w3c-httpd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2012/10/28 06:31:08 asau Exp $ +# $NetBSD: Makefile,v 1.27 2016/02/26 10:57:46 jperkin Exp $ DISTNAME= w3c-httpd-3.0A PKGREVISION= 1 @@ -16,22 +16,16 @@ BUILD_TARGET= build-all # prevent conflict with directory All on non-case-sensitive file systems USE_TOOLS+= csh -.include "../../mk/bsd.prefs.mk" -.if (${OPSYS} == "FreeBSD") || (${OPSYS} == "DragonFly" ) -OSNAME= freebsd -.elif (${OPSYS} == "Darwin") -OSNAME=darwin -CPPFLAGS+= -Dunix -.elif (${OPSYS} == "IRIX") -OSNAME=sgi -.elif (${OPSYS} == "OSF1") -OSNAME=osf1 -.elif (${OPSYS} == "Linux") -OSNAME=linux -.else -# covers OpenBSD, too -OSNAME= netbsd -.endif +OPSYSVARS+= OSNAME +OSNAME.Darwin= darwin +OSNAME.DragonFly= freebsd +OSNAME.FreeBSD= freebsd +OSNAME.IRIX= sgi +OSNAME.Linux= linux +OSNAME.OSF1= osf1 +OSNAME.*= netbsd + +CPPFLAGS.Darwin+= -Dunix CFLAGS+= ${CPPFLAGS} diff --git a/x11/Xfixes/Makefile b/x11/Xfixes/Makefile index 014012dbe4c..6b41889cfac 100644 --- a/x11/Xfixes/Makefile +++ b/x11/Xfixes/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2014/10/09 14:07:13 wiz Exp $ +# $NetBSD: Makefile,v 1.30 2016/02/26 11:27:14 jperkin Exp $ DISTNAME= libXfixes-2.0.1 PKGNAME= ${DISTNAME:S/libX/X/} @@ -25,9 +25,7 @@ PKGCONFIG_OVERRIDE+= xfixes.pc.in PKG_FAIL_REASON+="This package is for native X11 only; use libXfixes instead." .endif -.if (${OPSYS} == "Darwin") -CFLAGS+= -fno-common -.endif +CFLAGS.Darwin+= -fno-common .include "../../x11/fixesproto4/buildlink3.mk" .include "../../mk/x11.buildlink3.mk" diff --git a/x11/enlightenment/Makefile b/x11/enlightenment/Makefile index f771eae36df..cf5681b6e0c 100644 --- a/x11/enlightenment/Makefile +++ b/x11/enlightenment/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2016/01/24 16:14:45 jperkin Exp $ +# $NetBSD: Makefile,v 1.38 2016/02/26 11:27:14 jperkin Exp $ # DISTNAME= enlightenment-0.17.3 @@ -35,14 +35,12 @@ BUILD_DEFS+= PKG_SYSCONFBASE INSTALLATION_DIRS= ${EGDIR} -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -SUBST_CLASSES+= solhost +SUBST_CLASSES.SunOS+= solhost SUBST_STAGE.solhost= pre-configure SUBST_FILES.solhost= configure SUBST_SED.solhost= -e '/^MODULE_ARCH=/s/.host_os/solaris/' -.endif + +.include "../../mk/bsd.prefs.mk" .if ${X11_TYPE} == "modular" CPPFLAGS+= -DPKGSRC_X11BASE=\"${X11BASE:Q}\" diff --git a/x11/gtk2/Makefile b/x11/gtk2/Makefile index ec6654e8ee0..e5fb795ef89 100644 --- a/x11/gtk2/Makefile +++ b/x11/gtk2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.273 2015/12/30 10:15:07 prlw1 Exp $ +# $NetBSD: Makefile,v 1.274 2016/02/26 11:27:14 jperkin Exp $ DISTNAME= gtk+-2.24.29 PKGNAME= ${DISTNAME:S/gtk/gtk2/} @@ -53,12 +53,10 @@ REQD_DIRS+= ${PREFIX}/libdata/gtk-2.0 BUILD_DIRS= . demos/gtk-demo -.include "../../mk/bsd.prefs.mk" - # fix for 'only weak aliases are supported on darwin' error -.if ${OPSYS} == "Darwin" -CONFIGURE_ARGS+= --disable-visibility -.endif +CONFIGURE_ARGS.Darwin+= --disable-visibility + +.include "../../mk/bsd.prefs.mk" # gtk/Makefile.am hardcodes 'grep -o' so require GNU grep on platforms # which do not have it. diff --git a/x11/gtk3/Makefile b/x11/gtk3/Makefile index 2bcf3fa9cbc..e602899e5d5 100644 --- a/x11/gtk3/Makefile +++ b/x11/gtk3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.71 2015/11/17 22:57:58 prlw1 Exp $ +# $NetBSD: Makefile,v 1.72 2016/02/26 11:27:14 jperkin Exp $ DISTNAME= gtk+-3.16.7 PKGNAME= ${DISTNAME:S/gtk/gtk3/} @@ -57,10 +57,8 @@ TOOLS_PATH.grep= ${LOCALBASE}/bin/ggrep .endif # isnan and isinf are part of libc, not libm on DragonFly # conf tests fail detection due to conflicting definitions, just skip them -.if ${OPSYS} == "DragonFly" -CONFIGURE_ENV+= ac_cv_func_isnan=yes -CONFIGURE_ENV+= ac_cv_func_isinf=yes -.endif +CONFIGURE_ENV.DragonFly+= ac_cv_func_isinf=yes +CONFIGURE_ENV.DragonFly+= ac_cv_func_isnan=yes CFLAGS.SunOS+= -std=gnu99 diff --git a/x11/kde-runtime4/options.mk b/x11/kde-runtime4/options.mk index cf229e9bb41..c676d597a21 100644 --- a/x11/kde-runtime4/options.mk +++ b/x11/kde-runtime4/options.mk @@ -1,12 +1,10 @@ -# $NetBSD: options.mk,v 1.4 2013/04/30 20:51:54 markd Exp $ +# $NetBSD: options.mk,v 1.5 2016/02/26 11:27:14 jperkin Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.kde-runtime4 PKG_SUPPORTED_OPTIONS= samba alsa pulseaudio PKG_SUGGESTED_OPTIONS= samba -.if ${OPSYS} == "Linux" -PKG_SUGGESTED_OPTIONS+= alsa -.endif +PKG_SUGGESTED_OPTIONS.Linux+= alsa .include "../../mk/bsd.options.mk" diff --git a/x11/kdebase3/Makefile b/x11/kdebase3/Makefile index 02b4e39efd2..be74cb7448d 100644 --- a/x11/kdebase3/Makefile +++ b/x11/kdebase3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.190 2015/07/04 16:18:42 joerg Exp $ +# $NetBSD: Makefile,v 1.191 2016/02/26 11:27:14 jperkin Exp $ DISTNAME= kdebase-${_KDE_VERSION} PKGREVISION= 38 @@ -194,12 +194,10 @@ post-install: CONFIGURE_ENV+= ac_cv_func_getutxent='no' .endif -.if ${OPSYS} == "NetBSD" # We always use pkg-config for detecting the fontconfig version, since there # may exist an old version of fontconfig-config on systems that have been # updated from NetBSD 1.x. -CONFIGURE_ENV+= kde_cv_path_fontconfig_config='NONE' -.endif +CONFIGURE_ENV.NetBSD+= kde_cv_path_fontconfig_config='NONE' .include "../../meta-pkgs/kde3/kde3.mk" .include "../../sysutils/desktop-file-utils/desktopdb.mk" diff --git a/x11/kdelibs3/Makefile b/x11/kdelibs3/Makefile index bd250e2fef1..19acb98f12e 100644 --- a/x11/kdelibs3/Makefile +++ b/x11/kdelibs3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.182 2015/06/12 10:52:18 wiz Exp $ +# $NetBSD: Makefile,v 1.183 2016/02/26 11:27:14 jperkin Exp $ DISTNAME= kdelibs-${_KDE_VERSION} PKGREVISION= 38 @@ -62,6 +62,10 @@ SPECIAL_PERMS+= ${PREFIX}/bin/kpac_dhcp_helper ${SETUID_ROOT_PERMS} # find the path to the kgrantpty expects it to have read permissions set. SPECIAL_PERMS+= ${PREFIX}/bin/kgrantpty ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 4555 +# We require use of a recent enough libbz2 to have the BZ2_ prefixes +# so force this as configure gets this wrong on Solaris 9 +CONFIGURE_ENV.SunOS+= ac_cv_lib_bzip2='no' + .include "options.mk" PLIST_VARS+= kded @@ -140,9 +144,3 @@ CONFIGURE_ENV+= ac_cv_func_getservbyname_r='no' CONFIGURE_ENV+= ac_cv_func_getservbyport_r='no' CONFIGURE_ENV+= ac_cv_func_getprotobyname_r='no' .endif - -.if ${OPSYS} == "SunOS" -# We require use of a recent enough libbz2 to have the BZ2_ prefixes -# so force this as configure gets this wrong on Solaris 9 -CONFIGURE_ENV+= ac_cv_lib_bzip2='no' -.endif diff --git a/x11/libFS/Makefile b/x11/libFS/Makefile index 74e23886a24..f0838f6465c 100644 --- a/x11/libFS/Makefile +++ b/x11/libFS/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2015/05/01 08:34:56 wiz Exp $ +# $NetBSD: Makefile,v 1.16 2016/02/26 11:27:14 jperkin Exp $ DISTNAME= libFS-1.0.7 CATEGORIES= x11 devel @@ -15,11 +15,7 @@ USE_TOOLS+= pkg-config PKGCONFIG_OVERRIDE+= libfs.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../meta-pkgs/modular-xorg/hacks.mk" diff --git a/x11/libX11/Makefile b/x11/libX11/Makefile index 52375ea1758..1a04e035313 100644 --- a/x11/libX11/Makefile +++ b/x11/libX11/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2015/03/10 07:16:26 wiz Exp $ +# $NetBSD: Makefile,v 1.41 2016/02/26 11:27:14 jperkin Exp $ DISTNAME= libX11-1.6.3 CATEGORIES= x11 devel @@ -21,11 +21,7 @@ PKGCONFIG_OVERRIDE+= x11.pc.in CONFIGURE_ENV+= FILE_MAN_SUFFIX=5 -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../mk/pthread.buildlink3.mk" CPPFLAGS.OSF1+= ${PTHREAD_CFLAGS} # Required by compiler if including pthread.h @@ -39,6 +35,8 @@ BUILDLINK_API_DEPENDS.xproto+=xproto>=7.0.17 TOOL_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/tradcpp -Uunix" +.include "../../mk/bsd.prefs.mk" + .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} diff --git a/x11/libXScrnSaver/Makefile b/x11/libXScrnSaver/Makefile index 8ed921750cd..05c9e626f9c 100644 --- a/x11/libXScrnSaver/Makefile +++ b/x11/libXScrnSaver/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2014/10/09 14:07:14 wiz Exp $ +# $NetBSD: Makefile,v 1.11 2016/02/26 11:27:14 jperkin Exp $ # DISTNAME= libXScrnSaver-1.2.2 @@ -18,11 +18,7 @@ USE_TOOLS+= pkg-config PKGCONFIG_OVERRIDE+= xscrnsaver.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../meta-pkgs/modular-xorg/hacks.mk" diff --git a/x11/libXevie/Makefile b/x11/libXevie/Makefile index f72b1db924f..353484ecc4c 100644 --- a/x11/libXevie/Makefile +++ b/x11/libXevie/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2014/10/09 14:07:14 wiz Exp $ +# $NetBSD: Makefile,v 1.9 2016/02/26 11:27:14 jperkin Exp $ # DISTNAME= libXevie-1.0.3 @@ -16,11 +16,7 @@ USE_TOOLS+= pkg-config autoconf PKGCONFIG_OVERRIDE+= xevie.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull pre-configure: cd ${WRKSRC} && autoconf -f diff --git a/x11/libXext/Makefile b/x11/libXext/Makefile index df788b57e1d..845944ca45a 100644 --- a/x11/libXext/Makefile +++ b/x11/libXext/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2014/10/09 14:07:14 wiz Exp $ +# $NetBSD: Makefile,v 1.23 2016/02/26 11:27:14 jperkin Exp $ DISTNAME= libXext-1.3.3 CATEGORIES= x11 devel @@ -15,11 +15,7 @@ USE_TOOLS+= pkg-config PKGCONFIG_OVERRIDE+= xext.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../mk/compiler.mk" diff --git a/x11/libXi/Makefile b/x11/libXi/Makefile index e1df1a6e8f6..af9ca3869db 100644 --- a/x11/libXi/Makefile +++ b/x11/libXi/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2015/12/27 11:31:35 wiz Exp $ +# $NetBSD: Makefile,v 1.30 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXi-1.7.6 CATEGORIES= x11 devel @@ -22,11 +22,7 @@ SUBST_STAGE.sosubdir= pre-configure SUBST_FILES.sosubdir= man/*.man SUBST_SED.sosubdir= -e 's|\.so X|.so manlibmansuffix/X|' -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull BUILDLINK_API_DEPENDS.inputproto+= inputproto>=2.3 BUILDLINK_API_DEPENDS.libX11+= libX11>=1.6 diff --git a/x11/libXinerama/Makefile b/x11/libXinerama/Makefile index f48b52b8601..f6bfa6f7b55 100644 --- a/x11/libXinerama/Makefile +++ b/x11/libXinerama/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2014/10/09 14:07:14 wiz Exp $ +# $NetBSD: Makefile,v 1.14 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXinerama-1.1.3 CATEGORIES= x11 @@ -16,11 +16,7 @@ USE_TOOLS+= pkg-config CONFIGURE_ENV+= LIB_MAN_SUFFIX=3 PKGCONFIG_OVERRIDE+= xinerama.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../meta-pkgs/modular-xorg/hacks.mk" diff --git a/x11/libXp/Makefile b/x11/libXp/Makefile index ab62550f942..3f662f70ee1 100644 --- a/x11/libXp/Makefile +++ b/x11/libXp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2015/02/23 07:33:40 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXp-1.0.3 CATEGORIES= x11 print @@ -16,11 +16,9 @@ GNU_CONFIGURE= yes CONFIGURE_ENV+= LIB_MAN_SUFFIX=3 PKGCONFIG_OVERRIDE+= xp.pc.in -.include "../../mk/bsd.prefs.mk" +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +.include "../../mk/bsd.prefs.mk" .if ${X11_TYPE} == "native" XPRINT_CFLAGS= -I${X11BASE}/include diff --git a/x11/libXrandr/Makefile b/x11/libXrandr/Makefile index 13fd1097a49..d3bee6d7f53 100644 --- a/x11/libXrandr/Makefile +++ b/x11/libXrandr/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2015/05/27 06:44:09 wiz Exp $ +# $NetBSD: Makefile,v 1.18 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXrandr-1.5.0 CATEGORIES= x11 devel @@ -18,11 +18,7 @@ USE_TOOLS+= pkg-config CONFIGURE_ENV+= LIB_MAN_SUFFIX=3 PKGCONFIG_OVERRIDE+= xrandr.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull BUILDLINK_API_DEPENDS.libX11+= libX11>=1.6 .include "../../x11/libX11/buildlink3.mk" diff --git a/x11/libXrender/Makefile b/x11/libXrender/Makefile index 4a0530233b2..b38dfd86638 100644 --- a/x11/libXrender/Makefile +++ b/x11/libXrender/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2015/12/29 04:54:39 dholland Exp $ +# $NetBSD: Makefile,v 1.13 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXrender-0.9.9 CATEGORIES= x11 devel @@ -18,11 +18,7 @@ USE_TOOLS+= pkg-config PKGCONFIG_OVERRIDE+= xrender.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../meta-pkgs/modular-xorg/hacks.mk" diff --git a/x11/libXres/Makefile b/x11/libXres/Makefile index 100f89828d5..f020b5d068f 100644 --- a/x11/libXres/Makefile +++ b/x11/libXres/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2013/05/31 08:25:43 wiz Exp $ +# $NetBSD: Makefile,v 1.11 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXres-1.0.7 CATEGORIES= x11 @@ -15,11 +15,7 @@ USE_TOOLS+= pkg-config PKGCONFIG_OVERRIDE+= xres.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../meta-pkgs/modular-xorg/hacks.mk" diff --git a/x11/libXt/Makefile b/x11/libXt/Makefile index 4bbb8e494e7..9047c916480 100644 --- a/x11/libXt/Makefile +++ b/x11/libXt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2015/05/01 08:44:16 wiz Exp $ +# $NetBSD: Makefile,v 1.24 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXt-1.1.5 CATEGORIES= x11 devel @@ -18,11 +18,9 @@ CONFIGURE_ARGS+= --with-appdefaultdir=${PREFIX}/lib/X11/app-defaults CONFIGURE_ENV+= APP_MAN_SUFFIX=1 LIB_MAN_SUFFIX=3 PKGCONFIG_OVERRIDE+= xt.pc.in -.include "../../mk/bsd.prefs.mk" +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +.include "../../mk/bsd.prefs.mk" .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} CPPFLAGS_FOR_BUILD=-I${PREFIX}/include diff --git a/x11/libXv/Makefile b/x11/libXv/Makefile index 24ce503e3c1..56881b8512e 100644 --- a/x11/libXv/Makefile +++ b/x11/libXv/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2014/10/09 14:07:15 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXv-1.0.10 CATEGORIES= x11 @@ -14,11 +14,7 @@ PKGCONFIG_OVERRIDE+= xv.pc.in GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../meta-pkgs/modular-xorg/hacks.mk" diff --git a/x11/libXvMC/Makefile b/x11/libXvMC/Makefile index eed179cc7de..543c45dd461 100644 --- a/x11/libXvMC/Makefile +++ b/x11/libXvMC/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2015/03/15 20:44:12 wiz Exp $ +# $NetBSD: Makefile,v 1.12 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXvMC-1.0.9 CATEGORIES= x11 @@ -16,11 +16,7 @@ GNU_CONFIGURE= yes PKGCONFIG_OVERRIDE+= xvmc.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../meta-pkgs/modular-xorg/hacks.mk" diff --git a/x11/libXxf86dga/Makefile b/x11/libXxf86dga/Makefile index a4fc4c0d7bd..5e7b223c908 100644 --- a/x11/libXxf86dga/Makefile +++ b/x11/libXxf86dga/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2013/05/31 08:28:47 wiz Exp $ +# $NetBSD: Makefile,v 1.13 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXxf86dga-1.1.4 CATEGORIES= x11 @@ -17,11 +17,7 @@ CONFIGURE_ENV+= LIB_MAN_SUFFIX=3 PKGCONFIG_OVERRIDE+= xxf86dga.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../meta-pkgs/modular-xorg/hacks.mk" diff --git a/x11/libXxf86misc/Makefile b/x11/libXxf86misc/Makefile index b525a20fd19..e227d9b17d2 100644 --- a/x11/libXxf86misc/Makefile +++ b/x11/libXxf86misc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2012/10/29 05:06:36 asau Exp $ +# $NetBSD: Makefile,v 1.8 2016/02/26 11:27:15 jperkin Exp $ # DISTNAME= libXxf86misc-1.0.3 @@ -17,11 +17,7 @@ GNU_CONFIGURE= yes CONFIGURE_ENV+= LIB_MAN_SUFFIX=3 -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../x11/xproto/buildlink3.mk" .include "../../x11/libX11/buildlink3.mk" diff --git a/x11/libXxf86vm/Makefile b/x11/libXxf86vm/Makefile index 16ff13e9689..de3a739ba5a 100644 --- a/x11/libXxf86vm/Makefile +++ b/x11/libXxf86vm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2015/02/24 08:46:04 wiz Exp $ +# $NetBSD: Makefile,v 1.13 2016/02/26 11:27:15 jperkin Exp $ DISTNAME= libXxf86vm-1.1.4 CATEGORIES= x11 @@ -17,11 +17,7 @@ GNU_CONFIGURE= yes PKGCONFIG_OVERRIDE+= xxf86vm.pc.in CONFIGURE_ENV+= LIB_MAN_SUFFIX=3 -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --disable-malloc0returnsnull -.endif +CONFIGURE_ARGS.NetBSD+= --disable-malloc0returnsnull .include "../../meta-pkgs/modular-xorg/hacks.mk" diff --git a/x11/mkcomposecache/Makefile b/x11/mkcomposecache/Makefile index b492ff25d39..0b1f636b2a7 100644 --- a/x11/mkcomposecache/Makefile +++ b/x11/mkcomposecache/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2015/07/04 06:29:05 richard Exp $ +# $NetBSD: Makefile,v 1.3 2016/02/26 11:27:16 jperkin Exp $ # DISTNAME= mkcomposecache-1.2.1 @@ -14,10 +14,7 @@ COMMENT= Used for creating global (system-wide) Compose cache files GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= ADMIN_MAN_SUFFIX=8 -.endif +CONFIGURE_ENV.SunOS+= ADMIN_MAN_SUFFIX=8 .include "../../x11/libX11/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/modular-xorg-server/Makefile.common b/x11/modular-xorg-server/Makefile.common index 8fac754dbad..adeaa8fa018 100644 --- a/x11/modular-xorg-server/Makefile.common +++ b/x11/modular-xorg-server/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.6 2016/02/09 01:18:15 wiz Exp $ +# $NetBSD: Makefile.common,v 1.7 2016/02/26 11:27:16 jperkin Exp $ # used by x11/modular-xorg-server/Makefile # used by x11/modular-xorg-xephyr/Makefile @@ -97,9 +97,7 @@ PLIST.sparc= yes # Workaround for PR#41556. # Avoid to use bsd_kqueue_apm, force to use bsd_apm instead. -.if ${OPSYS} == "NetBSD" -CONFIGURE_ENV+= ac_cv_header_sys_event_h=no -.endif +CONFIGURE_ENV.NetBSD+= ac_cv_header_sys_event_h=no INSTALLATION_DIRS+= lib/xorg/modules/drivers lib/xorg/modules/input diff --git a/x11/modular-xorg-server112/Makefile b/x11/modular-xorg-server112/Makefile index ee469f045d1..f99795a0484 100644 --- a/x11/modular-xorg-server112/Makefile +++ b/x11/modular-xorg-server112/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2015/11/08 15:08:00 sevan Exp $ +# $NetBSD: Makefile,v 1.9 2016/02/26 11:27:16 jperkin Exp $ DISTNAME= xorg-server-1.12.4 PKGNAME= modular-${DISTNAME} @@ -106,9 +106,7 @@ PLIST.sparc= yes # Workaround for PR#41556. # Avoid to use bsd_kqueue_apm, force to use bsd_apm instead. -.if ${OPSYS} == "NetBSD" -CONFIGURE_ENV+= ac_cv_header_sys_event_h=no -.endif +CONFIGURE_ENV.NetBSD+= ac_cv_header_sys_event_h=no INSTALLATION_DIRS+= lib/xorg/modules/drivers lib/xorg/modules/input diff --git a/x11/motif/Makefile b/x11/motif/Makefile index 8aa7b845971..72b9becff10 100644 --- a/x11/motif/Makefile +++ b/x11/motif/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2014/10/09 14:07:15 wiz Exp $ +# $NetBSD: Makefile,v 1.12 2016/02/26 11:27:16 jperkin Exp $ PKGVER= 2.3.4 PKGREVISION= 7 @@ -49,9 +49,7 @@ BUILDLINK_TRANSFORM+= l:Xft:Xft:fontconfig # Don't compress manual pages as they include each other. .undef MANZ -.if ${OPSYS} == "NetBSD" -CONFIGURE_ENV+= ac_cv_func_setpgrp_void=no -.endif +CONFIGURE_ENV.NetBSD+= ac_cv_func_setpgrp_void=no CONFIGURE_ARGS+= --enable-xft CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS diff --git a/x11/mrxvt/Makefile b/x11/mrxvt/Makefile index 56967422a93..2b366a5ba27 100644 --- a/x11/mrxvt/Makefile +++ b/x11/mrxvt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2015/02/08 18:12:49 tnn Exp $ +# $NetBSD: Makefile,v 1.34 2016/02/26 11:27:16 jperkin Exp $ # DISTNAME= mrxvt-0.5.4 @@ -21,11 +21,7 @@ CONFIGURE_ARGS+= --enable-text-shadow CONFIGURE_ARGS+= --enable-24bits CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "HPUX" -CONFIGURE_ARGS+= --disable-lastlog --disable-utmp --disable-wtmp -.endif +CONFIGURE_ARGS.HPUX+= --disable-lastlog --disable-utmp --disable-wtmp EGDIR= ${PREFIX}/share/examples MAKE_DIRS+= ${PKG_SYSCONFDIR}/mrxvt diff --git a/x11/pixman/hacks.mk b/x11/pixman/hacks.mk index 2bd5d332079..1d3cba1d78c 100644 --- a/x11/pixman/hacks.mk +++ b/x11/pixman/hacks.mk @@ -1,4 +1,4 @@ -# $NetBSD: hacks.mk,v 1.11 2015/09/19 17:11:35 tnn Exp $ +# $NetBSD: hacks.mk,v 1.12 2016/02/26 11:27:16 jperkin Exp $ # .if !defined(PIXMAN_HACKS_MK) PIXMAN_HACKS_MK= # empty @@ -19,9 +19,7 @@ CONFIGURE_ARGS+= --disable-sse2 --disable-ssse3 CONFIGURE_ARGS+= --disable-sse2 --disable-mmx --disable-ssse3 .endif -.if ${OPSYS} == "MirBSD" -CONFIGURE_ARGS+= PTHREAD_LIBS=-pthread -.endif +CONFIGURE_ARGS.MirBSD+= PTHREAD_LIBS=-pthread .if !empty(MACHINE_PLATFORM:MNetBSD-[0-5].*-*) CONFIGURE_ENV+= ac_cv_tls=none diff --git a/x11/py-gnome2/Makefile b/x11/py-gnome2/Makefile index 530d4a401ee..c2142ec49da 100644 --- a/x11/py-gnome2/Makefile +++ b/x11/py-gnome2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.104 2015/12/05 21:26:08 adam Exp $ +# $NetBSD: Makefile,v 1.105 2016/02/26 11:27:16 jperkin Exp $ DISTNAME= gnome-python-2.28.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/gnome-python/gnome2/} @@ -20,10 +20,7 @@ USE_TOOLS+= pkg-config gmake PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # py-ORBit, py-gtk2 -.include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "SunOS" -BUILDLINK_TRANSFORM+= rm:-std=c9x -.endif +BUILDLINK_TRANSFORM.SunOS+= rm:-std=c9x .include "../../lang/python/extension.mk" .include "../../lang/python/application.mk" diff --git a/x11/py-qt4/Makefile b/x11/py-qt4/Makefile index f674e63d21a..9de5d317d7a 100644 --- a/x11/py-qt4/Makefile +++ b/x11/py-qt4/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.78 2016/01/31 08:09:22 dbj Exp $ +# $NetBSD: Makefile,v 1.79 2016/02/26 11:27:16 jperkin Exp $ PKGNAME= ${PYPKGPREFIX}-qt4-${PYQT_VERSION} PYQT_VERSION= 4.11.4 @@ -62,20 +62,18 @@ DISTNAME= PyQt-x11-gpl-${PYQT_VERSION} .include "../../lang/python/extension.mk" -.include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "Darwin" # configure-ng.py has Darwin specific code to avoid using sys.executable # that assumes the builtin python when configuring the path in pyuic/pyuic4. # Instead of patching that out, just do a manual replace-interpreter # on the configured result -SUBST_CLASSES+= fix-pyuic4 -SUBST_STAGE.fix-pyuic4= post-configure -SUBST_MESSAGE.fix-pyuic4= Fixing python interpreter path in pyuic4 -SUBST_FILES.fix-pyuic4= pyuic/pyuic4 -SUBST_SED.fix-pyuic4= -e 's,python[^ ]*,${PYTHONBIN},' -.endif +SUBST_CLASSES.Darwin+= fix-pyuic4 +SUBST_STAGE.fix-pyuic4= post-configure +SUBST_MESSAGE.fix-pyuic4= Fixing python interpreter path in pyuic4 +SUBST_FILES.fix-pyuic4= pyuic/pyuic4 +SUBST_SED.fix-pyuic4= -e 's,python[^ ]*,${PYTHONBIN},' CONFIGURE_ARGS+= --verbose + do-configure: (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ ${PYTHONBIN} configure.py ${CONFIGURE_ARGS}) diff --git a/x11/py-sip/Makefile b/x11/py-sip/Makefile index 9368184e4d8..12ec902ec36 100644 --- a/x11/py-sip/Makefile +++ b/x11/py-sip/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.45 2015/10/26 21:40:01 adam Exp $ +# $NetBSD: Makefile,v 1.46 2016/02/26 11:27:16 jperkin Exp $ DISTNAME= sip-4.17 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -15,20 +15,17 @@ USE_LANGUAGES= c c++ USE_LIBTOOL= yes USE_TOOLS+= gmake -.include "../../mk/bsd.prefs.mk" - CONFIGURE_ARGS+= -b ${PREFIX}/bin CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB} CONFIGURE_ARGS+= -e ${PREFIX}/${PYINC} CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX} -.if ${OPSYS} == "DragonFly" -CONFIGURE_ARGS+= -p freebsd-g++ -.endif CONFIGURE_ARGS+= CFLAGS=${CFLAGS:Q} CONFIGURE_ARGS+= CXXFLAGS=${CXXFLAGS:Q} CONFIGURE_ARGS+= INCDIR=${PREFIX}/include CONFIGURE_ARGS+= LIBDIR=${PREFIX}/lib +CONFIGURE_ARGS.DragonFly+= -p freebsd-g++ + PY_PATCHPLIST= yes PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} diff --git a/x11/qt3/application.mk b/x11/qt3/application.mk index 81e84e67c4c..0b326442998 100644 --- a/x11/qt3/application.mk +++ b/x11/qt3/application.mk @@ -1,4 +1,4 @@ -# $NetBSD: application.mk,v 1.3 2007/06/15 17:33:40 joerg Exp $ +# $NetBSD: application.mk,v 1.4 2016/02/26 11:27:16 jperkin Exp $ # # This file provides useful definitions for packages that contain # QT applications. @@ -13,12 +13,10 @@ .if !defined(QT3_APPLICATION_MK) QT3_APPLICATION_MK= # defined -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "Linux" # work-around bug noted in PR #25402 -BUILDLINK_TRANSFORM+= rm:-Wl,--no-undefined -.endif +BUILDLINK_TRANSFORM.Linux+= rm:-Wl,--no-undefined + +.include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "SunOS" GCC_REQD+= 3.3 diff --git a/x11/qt4-tools/hacks.mk b/x11/qt4-tools/hacks.mk index 2782d35d410..1d4f012d7cc 100644 --- a/x11/qt4-tools/hacks.mk +++ b/x11/qt4-tools/hacks.mk @@ -1,4 +1,4 @@ -# $NetBSD: hacks.mk,v 1.2 2013/10/22 14:27:24 jperkin Exp $ +# $NetBSD: hacks.mk,v 1.3 2016/02/26 11:27:16 jperkin Exp $ ### [Sat Sep 22 11:21:06 UTC 2012 : apb] ### g++-4.5.3 and 4.5.4 on NetBSD/i386 fails with an internal compiler error @@ -17,6 +17,4 @@ SUBST_SED.pr46978= -e '/^CXXFLAGS/s/-O2/-O1/' .endif # QTBUG-5986 -.if ${OPSYS} == "Darwin" -BUILDLINK_TRANSFORM+= rm:-O[23] -.endif +BUILDLINK_TRANSFORM.Darwin+= rm:-O[23] diff --git a/x11/qt5-qtbase/Makefile.common b/x11/qt5-qtbase/Makefile.common index d664022f179..1034252a996 100644 --- a/x11/qt5-qtbase/Makefile.common +++ b/x11/qt5-qtbase/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.18 2016/01/28 17:00:29 fhajny Exp $ +# $NetBSD: Makefile.common,v 1.19 2016/02/26 11:27:16 jperkin Exp $ # used by x11/qt5-mysql/Makefile # used by x11/qt5-odbc/Makefile # used by x11/qt5-psql/Makefile @@ -42,10 +42,8 @@ CFLAGS.NetBSD+= -D_NETBSD_SOURCE BUILDLINK_TRANSFORM+= rm:-Wundef # SunOS ld doesn't support -rpath-link -.if ${OPSYS} == "SunOS" -BUILDLINK_TRANSFORM+= rm:-Wl,-rpath-link,${PREFIX}/qt5/lib -BUILDLINK_TRANSFORM+= rm:-Wl,-rpath-link,${WRKSRC}/lib -.endif +BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-rpath-link,${PREFIX}/qt5/lib +BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-rpath-link,${WRKSRC}/lib MAKE_ENV+= QTPREFIX=${QTPREFIX:Q} PLIST_VARS+= mac unix diff --git a/x11/rxvt/Makefile b/x11/rxvt/Makefile index 57bde0eed6f..b0a508feb06 100644 --- a/x11/rxvt/Makefile +++ b/x11/rxvt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.57 2015/07/04 16:18:42 joerg Exp $ +# $NetBSD: Makefile,v 1.58 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= rxvt-2.7.10 PKGREVISION= 6 @@ -47,9 +47,7 @@ CONFIGURE_ARGS+= --with-xpm-library=${BUILDLINK_PREFIX.libXpm}/lib SPECIAL_PERMS= ${PREFIX}/bin/rxvt ${SETUID_ROOT_PERMS} .endif -.if ${OPSYS} == "SunOS" -CFLAGS+= -DSunOS -.endif +CFLAGS.SunOS+= -DSunOS post-patch: ${MV} ${WRKSRC}/src/feature.h ${WRKSRC}/src/feature.h.orig diff --git a/x11/tint2/Makefile b/x11/tint2/Makefile index 2746232c4dc..91231196aaf 100644 --- a/x11/tint2/Makefile +++ b/x11/tint2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.35 2015/12/05 21:26:09 adam Exp $ +# $NetBSD: Makefile,v 1.36 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= tint2-0.11 PKGREVISION= 24 @@ -23,6 +23,7 @@ CONF_FILES= ${PREFIX}/share/examples/tint2/tint2rc \ REPLACE_PYTHON+= src/tint2conf/tintwizard.py PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # py-gtk2 +# XXX: why not use normal CMAKE_ARGS infrastructure? CMAKE_OPTS+= -DCMAKE_INSTALL_PREFIX=${PREFIX} CMAKE_OPTS+= -DSYSCONFDIR=${PKG_SYSCONFDIR} CMAKE_OPTS+= -DMANDIR=${PKGMANDIR} @@ -32,12 +33,9 @@ CMAKE_OPTS+= -DCMAKE_SKIP_BUILD_RPATH:BOOL=ON \ CMAKE_OPTS+= -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \ CMAKE_OPTS+= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON -.include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "Linux" -CMAKE_OPTS+= -DENABLE_BATTERY=ON -.else -CMAKE_OPTS+= -DENABLE_BATTERY=OFF -.endif +OPSYSVARS+= CMAKE_OPTS +CMAKE_OPTS.Linux= -DENABLE_BATTERY=ON +CMAKE_OPTS.*= -DENABLE_BATTERY=OFF do-configure: cd ${WRKSRC} && ${PREFIX}/bin/cmake ${CMAKE_OPTS} . diff --git a/x11/wxGTK30/Makefile b/x11/wxGTK30/Makefile index 1f8a396c36a..6b800a017a1 100644 --- a/x11/wxGTK30/Makefile +++ b/x11/wxGTK30/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2016/02/17 10:16:05 dbj Exp $ +# $NetBSD: Makefile,v 1.15 2016/02/26 11:27:17 jperkin Exp $ VERSION= 3.0.2 PKGREVISION= 5 @@ -73,9 +73,7 @@ PLIST_SRC+= PLIST.gtk2 CONFIGURE_ARGS+= --with-gtk=2 .endif -.if ${OPSYS} == "SunOS" -CONFIGURE_ARGS+= --disable-xlocale -.endif +CONFIGURE_ARGS.SunOS+= --disable-xlocale post-configure: echo 'install_qadll: install_xmldll' >> ${WRKSRC}/Makefile diff --git a/x11/xdm/Makefile b/x11/xdm/Makefile index 2d26bc616ab..cde8793875e 100644 --- a/x11/xdm/Makefile +++ b/x11/xdm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2015/04/22 19:49:09 tnn Exp $ +# $NetBSD: Makefile,v 1.30 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= xdm-1.1.11 PKGREVISION= 5 @@ -46,11 +46,7 @@ OWN_DIRS_PERMS+= ${VARBASE}/lib/xdm \ TOOL_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/tradcpp -Uunix" -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --with-random-device=/dev/urandom -.endif +CONFIGURE_ARGS.NetBSD+= --with-random-device=/dev/urandom # The following forces the X server to start on the 5th virtual terminal. # This is suboptimal but matches the defaults for the xdm configuration, @@ -65,6 +61,7 @@ CONFIGURE_ARGS+= --with-random-device=/dev/urandom # same terminal X used (the first one). As a result, only one of them # will receive key presses. And on slow machines, X will have lost access # to the keyboard. +.include "../../mk/bsd.prefs.mk" .if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \ (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") CONFIGURE_ARGS+= --with-default-vt=vt05 diff --git a/x11/xf86-input-acecad/Makefile b/x11/xf86-input-acecad/Makefile index 12b2369ea27..2ed7f38f8f1 100644 --- a/x11/xf86-input-acecad/Makefile +++ b/x11/xf86-input-acecad/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.7 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= xf86-input-acecad-1.5.0 PKGREVISION= 4 @@ -15,11 +15,7 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../devel/xorg-util-macros/buildlink3.mk" .include "../../x11/inputproto/buildlink3.mk" diff --git a/x11/xf86-input-elographics/Makefile b/x11/xf86-input-elographics/Makefile index 144410120e9..89ec8b3bbe1 100644 --- a/x11/xf86-input-elographics/Makefile +++ b/x11/xf86-input-elographics/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.3 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= xf86-input-elographics-1.4.1 PKGREVISION= 1 @@ -15,11 +15,7 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/xproto/buildlink3.mk" .include "../../x11/modular-xorg-server/buildlink3.mk" diff --git a/x11/xf86-input-fpit/Makefile b/x11/xf86-input-fpit/Makefile index e9323cd11b2..d8282bbdc89 100644 --- a/x11/xf86-input-fpit/Makefile +++ b/x11/xf86-input-fpit/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.3 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= xf86-input-fpit-1.4.0 PKGREVISION= 1 @@ -15,11 +15,7 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../devel/xorg-util-macros/buildlink3.mk" .include "../../x11/xproto/buildlink3.mk" diff --git a/x11/xf86-input-hyperpen/Makefile b/x11/xf86-input-hyperpen/Makefile index c10682c75e5..7e207583861 100644 --- a/x11/xf86-input-hyperpen/Makefile +++ b/x11/xf86-input-hyperpen/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.4 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= xf86-input-hyperpen-1.4.1 PKGREVISION= 1 @@ -16,11 +16,7 @@ USE_LIBTOOL= yes USE_TOOLS+= pkg-config USE_LANGUAGES+= c99 -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/xproto/buildlink3.mk" .include "../../x11/modular-xorg-server/buildlink3.mk" diff --git a/x11/xf86-input-joystick/Makefile b/x11/xf86-input-joystick/Makefile index c501b6ed7b9..64bf7e14ed9 100644 --- a/x11/xf86-input-joystick/Makefile +++ b/x11/xf86-input-joystick/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.3 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= xf86-input-joystick-1.6.2 PKGREVISION= 1 @@ -17,11 +17,7 @@ USE_TOOLS+= pkg-config PKGCONFIG_OVERRIDE+= xorg-joystick.pc.in -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/kbproto/buildlink3.mk" .include "../../devel/xorg-util-macros/buildlink3.mk" diff --git a/x11/xf86-input-keyboard/Makefile b/x11/xf86-input-keyboard/Makefile index 12c3d5e5c9a..c141576f545 100644 --- a/x11/xf86-input-keyboard/Makefile +++ b/x11/xf86-input-keyboard/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.22 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= xf86-input-keyboard-1.8.1 PKGREVISION= 2 @@ -14,11 +14,7 @@ USE_LIBTOOL= YES GNU_CONFIGURE= YES USE_TOOLS+= gmake pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/inputproto/buildlink3.mk" .include "../../x11/libxkbfile/buildlink3.mk" diff --git a/x11/xf86-input-mouse/Makefile b/x11/xf86-input-mouse/Makefile index 3194e1f4ace..d12ec3c8d92 100644 --- a/x11/xf86-input-mouse/Makefile +++ b/x11/xf86-input-mouse/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.26 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= xf86-input-mouse-1.9.1 PKGREVISION= 3 @@ -14,11 +14,7 @@ USE_LIBTOOL= YES GNU_CONFIGURE= YES USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/randrproto/buildlink3.mk" .include "../../x11/inputproto/buildlink3.mk" diff --git a/x11/xf86-input-mutouch/Makefile b/x11/xf86-input-mutouch/Makefile index 0ce1a8e5bf0..ee66b10d602 100644 --- a/x11/xf86-input-mutouch/Makefile +++ b/x11/xf86-input-mutouch/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.4 2016/02/26 11:27:17 jperkin Exp $ DISTNAME= xf86-input-mutouch-1.3.0 PKGREVISION= 1 @@ -12,15 +12,11 @@ COMMENT= Microtouch input driver for the Xorg X server #LICENSE= # TODO: (see mk/license.mk) GNU_CONFIGURE= yes +USE_LANGUAGES= c99 USE_LIBTOOL= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -USE_LANGUAGES=+ c99 -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/xproto/buildlink3.mk" .include "../../x11/modular-xorg-server/buildlink3.mk" diff --git a/x11/xf86-input-penmount/Makefile b/x11/xf86-input-penmount/Makefile index c41c59fa75a..83e1b4fa75c 100644 --- a/x11/xf86-input-penmount/Makefile +++ b/x11/xf86-input-penmount/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.7 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-input-penmount-1.5.0 PKGREVISION= 4 @@ -15,11 +15,7 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/xproto/buildlink3.mk" .include "../../x11/modular-xorg-server/buildlink3.mk" diff --git a/x11/xf86-input-vmmouse/Makefile b/x11/xf86-input-vmmouse/Makefile index d6fe655f4dd..2f3f5f052d0 100644 --- a/x11/xf86-input-vmmouse/Makefile +++ b/x11/xf86-input-vmmouse/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.21 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-input-vmmouse-13.1.0 PKGREVISION= 1 @@ -15,11 +15,7 @@ USE_LIBTOOL= YES GNU_CONFIGURE= YES USE_TOOLS+= gmake pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/randrproto/buildlink3.mk" .include "../../x11/inputproto/buildlink3.mk" diff --git a/x11/xf86-input-void/Makefile b/x11/xf86-input-void/Makefile index 87b9d552f94..340f35daa4e 100644 --- a/x11/xf86-input-void/Makefile +++ b/x11/xf86-input-void/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2016/01/05 13:11:42 tnn Exp $ +# $NetBSD: Makefile,v 1.16 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-input-void-1.4.1 PKGREVISION= 1 @@ -14,11 +14,7 @@ USE_LIBTOOL= YES GNU_CONFIGURE= YES USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/inputproto/buildlink3.mk" .include "../../x11/modular-xorg-server/buildlink3.mk" diff --git a/x11/xf86-video-amdgpu/Makefile b/x11/xf86-video-amdgpu/Makefile index ae9173421a4..3bad5dda4e3 100644 --- a/x11/xf86-video-amdgpu/Makefile +++ b/x11/xf86-video-amdgpu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2016/02/19 09:58:48 wiz Exp $ +# $NetBSD: Makefile,v 1.5 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-video-amdgpu-1.0.1 CATEGORIES= x11 @@ -13,11 +13,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= gmake pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/xf86-video-apm/Makefile b/x11/xf86-video-apm/Makefile index 8ffc3eac712..1835dce042d 100644 --- a/x11/xf86-video-apm/Makefile +++ b/x11/xf86-video-apm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2016/01/05 13:11:43 tnn Exp $ +# $NetBSD: Makefile,v 1.18 2016/02/26 11:27:18 jperkin Exp $ # DISTNAME= xf86-video-apm-1.2.5 @@ -15,11 +15,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-ark/Makefile b/x11/xf86-video-ark/Makefile index 740a663377a..d72cbf256de 100644 --- a/x11/xf86-video-ark/Makefile +++ b/x11/xf86-video-ark/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2016/01/05 13:11:43 tnn Exp $ +# $NetBSD: Makefile,v 1.17 2016/02/26 11:27:18 jperkin Exp $ # DISTNAME= xf86-video-ark-0.7.5 @@ -15,11 +15,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-ast/Makefile b/x11/xf86-video-ast/Makefile index 60c6fa61ea6..2073d1b93e4 100644 --- a/x11/xf86-video-ast/Makefile +++ b/x11/xf86-video-ast/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2016/01/05 13:11:43 tnn Exp $ +# $NetBSD: Makefile,v 1.21 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-video-ast-1.1.5 PKGREVISION= 1 @@ -14,11 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/xf86-video-ati/Makefile b/x11/xf86-video-ati/Makefile index 740f7f07208..51f8b07a6c3 100644 --- a/x11/xf86-video-ati/Makefile +++ b/x11/xf86-video-ati/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2016/02/09 01:20:44 wiz Exp $ +# $NetBSD: Makefile,v 1.37 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-video-ati-7.6.1 PKGREVISION= 3 @@ -18,13 +18,9 @@ USE_LIBTOOL= YES GNU_CONFIGURE= YES USE_TOOLS+= gmake pkg-config -.include "../../mk/bsd.prefs.mk" - CONFIGURE_ARGS+= --enable-glamor -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 BUILDLINK_API_DEPENDS.modular-xorg-server+= modular-xorg-server>=1.18.1 .include "../../x11/modular-xorg-server/buildlink3.mk" diff --git a/x11/xf86-video-ati6/Makefile b/x11/xf86-video-ati6/Makefile index 13614a61f47..33b1ad094a9 100644 --- a/x11/xf86-video-ati6/Makefile +++ b/x11/xf86-video-ati6/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2016/01/05 13:11:43 tnn Exp $ +# $NetBSD: Makefile,v 1.13 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-video-ati-6.14.6 PKGNAME= ${DISTNAME:S/ati/ati6/} @@ -20,11 +20,8 @@ GNU_CONFIGURE= YES USE_TOOLS+= automake autoconf autoreconf gmake pkg-config .include "options.mk" -.include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 pre-configure: cd ${WRKSRC} && autoreconf -vif diff --git a/x11/xf86-video-chips/Makefile b/x11/xf86-video-chips/Makefile index a47cc349161..cb02efe97b4 100644 --- a/x11/xf86-video-chips/Makefile +++ b/x11/xf86-video-chips/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2016/01/05 13:11:43 tnn Exp $ +# $NetBSD: Makefile,v 1.17 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-video-chips-1.2.6 PKGREVISION= 1 @@ -14,11 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 # # it appears the 1.2.5 tarball forgot something diff --git a/x11/xf86-video-cirrus/Makefile b/x11/xf86-video-cirrus/Makefile index 779698e7021..48038612db9 100644 --- a/x11/xf86-video-cirrus/Makefile +++ b/x11/xf86-video-cirrus/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2016/01/05 13:11:43 tnn Exp $ +# $NetBSD: Makefile,v 1.19 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-video-cirrus-1.5.3 PKGREVISION= 1 @@ -14,11 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-dummy/Makefile b/x11/xf86-video-dummy/Makefile index 6e7f3a4516c..baf9ba66c0b 100644 --- a/x11/xf86-video-dummy/Makefile +++ b/x11/xf86-video-dummy/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2016/01/05 13:11:43 tnn Exp $ +# $NetBSD: Makefile,v 1.7 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-video-dummy-0.3.7 PKGREVISION= 4 @@ -15,11 +15,7 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/xf86dgaproto/buildlink3.mk" .include "../../x11/fontsproto/buildlink3.mk" diff --git a/x11/xf86-video-fbdev/Makefile b/x11/xf86-video-fbdev/Makefile index c8a9433d676..dbb6b4614c8 100644 --- a/x11/xf86-video-fbdev/Makefile +++ b/x11/xf86-video-fbdev/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2016/01/05 13:11:43 tnn Exp $ +# $NetBSD: Makefile,v 1.9 2016/02/26 11:27:18 jperkin Exp $ DISTNAME= xf86-video-fbdev-0.4.4 PKGREVISION= 4 @@ -15,11 +15,7 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/fontsproto/buildlink3.mk" .include "../../x11/xproto/buildlink3.mk" diff --git a/x11/xf86-video-glint/Makefile b/x11/xf86-video-glint/Makefile index 5b8e5b01191..51c13c121ab 100644 --- a/x11/xf86-video-glint/Makefile +++ b/x11/xf86-video-glint/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2016/01/05 13:11:43 tnn Exp $ +# $NetBSD: Makefile,v 1.19 2016/02/26 11:27:19 jperkin Exp $ # DISTNAME= xf86-video-glint-1.2.8 @@ -17,11 +17,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-i128/Makefile b/x11/xf86-video-i128/Makefile index c8750c9d886..4ac7cc746d2 100644 --- a/x11/xf86-video-i128/Makefile +++ b/x11/xf86-video-i128/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.18 2016/02/26 11:27:19 jperkin Exp $ # DISTNAME= xf86-video-i128-1.3.6 @@ -15,11 +15,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-i740/Makefile b/x11/xf86-video-i740/Makefile index ea14c5e529a..504ffbe3adc 100644 --- a/x11/xf86-video-i740/Makefile +++ b/x11/xf86-video-i740/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.19 2016/02/26 11:27:19 jperkin Exp $ DISTNAME= xf86-video-i740-1.3.5 PKGREVISION= 3 @@ -14,11 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-intel/Makefile b/x11/xf86-video-intel/Makefile index 2afca15ae34..9eb793bbe0c 100644 --- a/x11/xf86-video-intel/Makefile +++ b/x11/xf86-video-intel/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2016/01/05 13:05:37 tnn Exp $ +# $NetBSD: Makefile,v 1.38 2016/02/26 11:27:19 jperkin Exp $ DISTNAME= xf86-video-intel-2.99.917 PKGREVISION= 4 @@ -18,11 +18,7 @@ GNU_CONFIGURE= YES USE_LIBTOOL= YES USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 BUILDLINK_API_DEPENDS.libdrm+= libdrm>=2.4.7 diff --git a/x11/xf86-video-mach64/Makefile b/x11/xf86-video-mach64/Makefile index 977ef50da6b..a4487b14c6f 100644 --- a/x11/xf86-video-mach64/Makefile +++ b/x11/xf86-video-mach64/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.18 2016/02/26 11:27:19 jperkin Exp $ DISTNAME= xf86-video-mach64-6.9.5 PKGREVISION= 1 @@ -18,12 +18,8 @@ USE_LIBTOOL= YES GNU_CONFIGURE= YES USE_TOOLS+= gmake pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CPPFLAGS+= -D__EXTENSIONS__ -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CPPFLAGS.SunOS+= -D__EXTENSIONS__ +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/fontsproto/buildlink3.mk" diff --git a/x11/xf86-video-mga/Makefile b/x11/xf86-video-mga/Makefile index 753bc9310bd..2452343b019 100644 --- a/x11/xf86-video-mga/Makefile +++ b/x11/xf86-video-mga/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.22 2016/02/26 11:27:19 jperkin Exp $ DISTNAME= xf86-video-mga-1.6.4 PKGREVISION= 3 @@ -16,11 +16,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-modesetting/Makefile b/x11/xf86-video-modesetting/Makefile index cf504f312b0..a6c773bb716 100644 --- a/x11/xf86-video-modesetting/Makefile +++ b/x11/xf86-video-modesetting/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2015/07/03 23:23:40 rodent Exp $ +# $NetBSD: Makefile,v 1.3 2016/02/26 11:27:19 jperkin Exp $ DISTNAME= xf86-video-modesetting-0.9.0 CATEGORIES= x11 @@ -14,13 +14,9 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - USE_OLD_MODULAR_XORG_SERVER= yes -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX= 4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 BUILDLINK_API_DEPENDS.xextproto+= xextproto>=7.0.99.1 .include "../../x11/xextproto/buildlink3.mk" diff --git a/x11/xf86-video-neomagic/Makefile b/x11/xf86-video-neomagic/Makefile index 48a91bc2fe2..46e09eee3fa 100644 --- a/x11/xf86-video-neomagic/Makefile +++ b/x11/xf86-video-neomagic/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.20 2016/02/26 11:27:19 jperkin Exp $ DISTNAME= xf86-video-neomagic-1.2.9 PKGREVISION= 1 @@ -14,11 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/xf86-video-newport/Makefile b/x11/xf86-video-newport/Makefile index eeeb0e5c261..0cc0476d56b 100644 --- a/x11/xf86-video-newport/Makefile +++ b/x11/xf86-video-newport/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2015/09/23 16:39:17 rodent Exp $ +# $NetBSD: Makefile,v 1.7 2016/02/26 11:27:19 jperkin Exp $ DISTNAME= xf86-video-newport-0.2.4 PKGREVISION= 4 @@ -17,9 +17,7 @@ USE_TOOLS+= pkg-config .include "options.mk" -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX= 4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 USE_OLD_MODULAR_XORG_SERVER= yes diff --git a/x11/xf86-video-nouveau/Makefile b/x11/xf86-video-nouveau/Makefile index 646f5dbfe3a..9a0c60e1925 100644 --- a/x11/xf86-video-nouveau/Makefile +++ b/x11/xf86-video-nouveau/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.7 2016/02/26 11:27:19 jperkin Exp $ DISTNAME= xf86-video-nouveau-1.0.12 PKGREVISION= 1 @@ -15,11 +15,7 @@ USE_LANGUAGES+= c99 USE_LIBTOOL= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/libdrm/buildlink3.mk" diff --git a/x11/xf86-video-nv/Makefile b/x11/xf86-video-nv/Makefile index 2bec2e8584a..21ee7aaaf77 100644 --- a/x11/xf86-video-nv/Makefile +++ b/x11/xf86-video-nv/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.30 2016/02/26 11:27:19 jperkin Exp $ DISTNAME= xf86-video-nv-2.1.20 PKGREVISION= 4 @@ -15,11 +15,7 @@ USE_LIBTOOL= YES GNU_CONFIGURE= YES USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" diff --git a/x11/xf86-video-openchrome/Makefile b/x11/xf86-video-openchrome/Makefile index 4cb85186bbe..296e7b912b3 100644 --- a/x11/xf86-video-openchrome/Makefile +++ b/x11/xf86-video-openchrome/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.18 2016/02/26 11:27:19 jperkin Exp $ DISTNAME= xf86-video-openchrome-0.3.3 PKGREVISION= 4 @@ -18,6 +18,8 @@ USE_TOOLS+= pkg-config CONFIGURE_ARGS+= --enable-maintainer-mode CONFIGURE_ARGS+= --enable-dri +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 + .include "../../mk/bsd.prefs.mk" PLIST_VARS+= XvMC @@ -25,10 +27,6 @@ PLIST_VARS+= XvMC PLIST.XvMC= yes .endif -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif - .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/libXvMC/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-qxl/Makefile b/x11/xf86-video-qxl/Makefile index 6c357b89586..a7e9ee14dd0 100644 --- a/x11/xf86-video-qxl/Makefile +++ b/x11/xf86-video-qxl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.5 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-qxl-0.1.4 PKGREVISION= 1 @@ -17,10 +17,8 @@ USE_TOOLS+= pkg-config .include "options.mk" -.if ${OPSYS} == "SunOS" -CPPFLAGS+= -D__EXTENSIONS__ -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CPPFLAGS.SunOS+= -D__EXTENSIONS__ +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/libXext/buildlink3.mk" BUILDLINK_API_DEPENDS.libdrm+= libdrm>=2.4.46 diff --git a/x11/xf86-video-r128/Makefile b/x11/xf86-video-r128/Makefile index b6f0281e81b..ec5af984f92 100644 --- a/x11/xf86-video-r128/Makefile +++ b/x11/xf86-video-r128/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2016/01/22 12:11:57 wiz Exp $ +# $NetBSD: Makefile,v 1.18 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-r128-6.10.1 CATEGORIES= x11 @@ -17,11 +17,7 @@ USE_LIBTOOL= YES GNU_CONFIGURE= YES USE_TOOLS+= gmake pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" diff --git a/x11/xf86-video-rendition/Makefile b/x11/xf86-video-rendition/Makefile index de715e8ed28..4a7b313d6ad 100644 --- a/x11/xf86-video-rendition/Makefile +++ b/x11/xf86-video-rendition/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.19 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-rendition-4.2.6 PKGREVISION= 1 @@ -14,11 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-s3/Makefile b/x11/xf86-video-s3/Makefile index b5fd82b8fb2..2975d30daa2 100644 --- a/x11/xf86-video-s3/Makefile +++ b/x11/xf86-video-s3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2016/01/05 13:11:44 tnn Exp $ +# $NetBSD: Makefile,v 1.18 2016/02/26 11:27:20 jperkin Exp $ # DISTNAME= xf86-video-s3-0.6.5 @@ -15,11 +15,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-s3virge/Makefile b/x11/xf86-video-s3virge/Makefile index 4e7808d5786..0de1d1edbd2 100644 --- a/x11/xf86-video-s3virge/Makefile +++ b/x11/xf86-video-s3virge/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.19 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-s3virge-1.10.7 PKGREVISION= 1 @@ -14,11 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-savage/Makefile b/x11/xf86-video-savage/Makefile index 388dd9e3f99..c826cd14c44 100644 --- a/x11/xf86-video-savage/Makefile +++ b/x11/xf86-video-savage/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.21 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-savage-2.3.8 PKGREVISION= 1 @@ -16,11 +16,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-siliconmotion/Makefile b/x11/xf86-video-siliconmotion/Makefile index c832323b068..346cbb28278 100644 --- a/x11/xf86-video-siliconmotion/Makefile +++ b/x11/xf86-video-siliconmotion/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.19 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-siliconmotion-1.7.8 PKGREVISION= 1 @@ -14,11 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-sis/Makefile b/x11/xf86-video-sis/Makefile index 424eb5bd0f2..c06a7d2d522 100644 --- a/x11/xf86-video-sis/Makefile +++ b/x11/xf86-video-sis/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.24 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-sis-0.10.8 PKGREVISION= 1 @@ -21,9 +21,7 @@ USE_TOOLS+= pkg-config TOOL_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/tradcpp -Uunix" -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-suncg14/Makefile b/x11/xf86-video-suncg14/Makefile index 9830fea7eb2..fb4fbd06522 100644 --- a/x11/xf86-video-suncg14/Makefile +++ b/x11/xf86-video-suncg14/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.7 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-suncg14-1.1.2 PKGREVISION= 4 @@ -17,9 +17,7 @@ USE_TOOLS+= pkg-config .include "options.mk" -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/fontsproto/buildlink3.mk" .include "../../x11/xproto/buildlink3.mk" diff --git a/x11/xf86-video-suncg3/Makefile b/x11/xf86-video-suncg3/Makefile index f3534486302..934cadd3b88 100644 --- a/x11/xf86-video-suncg3/Makefile +++ b/x11/xf86-video-suncg3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.7 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-suncg3-1.1.2 PKGREVISION= 4 @@ -15,11 +15,7 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/fontsproto/buildlink3.mk" .include "../../x11/xproto/buildlink3.mk" diff --git a/x11/xf86-video-suncg6/Makefile b/x11/xf86-video-suncg6/Makefile index 2d3720649fe..a1d2c17e339 100644 --- a/x11/xf86-video-suncg6/Makefile +++ b/x11/xf86-video-suncg6/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.3 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-suncg6-1.1.2 PKGREVISION= 1 @@ -17,9 +17,7 @@ USE_TOOLS+= pkg-config .include "options.mk" -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/fontsproto/buildlink3.mk" .include "../../x11/xproto/buildlink3.mk" diff --git a/x11/xf86-video-sunffb/Makefile b/x11/xf86-video-sunffb/Makefile index 6c983b2295b..6fc05922579 100644 --- a/x11/xf86-video-sunffb/Makefile +++ b/x11/xf86-video-sunffb/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.7 2016/02/26 11:27:20 jperkin Exp $ DISTNAME= xf86-video-sunffb-1.2.2 PKGREVISION= 4 @@ -17,9 +17,7 @@ USE_TOOLS+= pkg-config .include "options.mk" -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 BUILDLINK_API_DEPENDS.xextproto+= xextproto>=7.0.99.1 .include "../../x11/xextproto/buildlink3.mk" diff --git a/x11/xf86-video-suntcx/Makefile b/x11/xf86-video-suntcx/Makefile index bbf25727d03..2b61d042d7b 100644 --- a/x11/xf86-video-suntcx/Makefile +++ b/x11/xf86-video-suntcx/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.3 2016/02/26 11:27:21 jperkin Exp $ DISTNAME= xf86-video-suntcx-1.1.2 PKGREVISION= 1 @@ -17,9 +17,7 @@ USE_TOOLS+= pkg-config .include "options.mk" -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/fontsproto/buildlink3.mk" .include "../../x11/xproto/buildlink3.mk" diff --git a/x11/xf86-video-tdfx/Makefile b/x11/xf86-video-tdfx/Makefile index 4d048d433e7..9285a6a0b9e 100644 --- a/x11/xf86-video-tdfx/Makefile +++ b/x11/xf86-video-tdfx/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.20 2016/02/26 11:27:21 jperkin Exp $ DISTNAME= xf86-video-tdfx-1.4.6 PKGREVISION= 3 @@ -16,11 +16,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-tga/Makefile b/x11/xf86-video-tga/Makefile index 929b6550eaa..54ab2cb3f14 100644 --- a/x11/xf86-video-tga/Makefile +++ b/x11/xf86-video-tga/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.16 2016/02/26 11:27:21 jperkin Exp $ # DISTNAME= xf86-video-tga-1.2.2 @@ -15,11 +15,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-trident/Makefile b/x11/xf86-video-trident/Makefile index b0e35f953a0..78ba4e96dad 100644 --- a/x11/xf86-video-trident/Makefile +++ b/x11/xf86-video-trident/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2016/01/05 13:11:45 tnn Exp $ +# $NetBSD: Makefile,v 1.19 2016/02/26 11:27:21 jperkin Exp $ # DISTNAME= xf86-video-trident-1.3.7 @@ -15,11 +15,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-tseng/Makefile b/x11/xf86-video-tseng/Makefile index bd385a93a23..c7fa4f07167 100644 --- a/x11/xf86-video-tseng/Makefile +++ b/x11/xf86-video-tseng/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2016/01/05 13:11:46 tnn Exp $ +# $NetBSD: Makefile,v 1.18 2016/02/26 11:27:21 jperkin Exp $ # DISTNAME= xf86-video-tseng-1.2.5 @@ -15,11 +15,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xf86-video-vesa/Makefile b/x11/xf86-video-vesa/Makefile index ed82d5c029d..65b6adf8020 100644 --- a/x11/xf86-video-vesa/Makefile +++ b/x11/xf86-video-vesa/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2016/01/05 13:11:46 tnn Exp $ +# $NetBSD: Makefile,v 1.23 2016/02/26 11:27:21 jperkin Exp $ DISTNAME= xf86-video-vesa-2.3.4 PKGREVISION= 1 @@ -14,11 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" BUILDLINK_DEPMETHOD.libXext?= build diff --git a/x11/xf86-video-vmware/Makefile b/x11/xf86-video-vmware/Makefile index a25d3b3f3f6..7f3fca6e7df 100644 --- a/x11/xf86-video-vmware/Makefile +++ b/x11/xf86-video-vmware/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2016/01/05 13:11:46 tnn Exp $ +# $NetBSD: Makefile,v 1.25 2016/02/26 11:27:21 jperkin Exp $ DISTNAME= xf86-video-vmware-13.1.0 PKGREVISION= 4 @@ -14,11 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 ONLY_FOR_PLATFORM+= *-*-i386 *-*-x86_64 diff --git a/x11/xf86-video-voodoo/Makefile b/x11/xf86-video-voodoo/Makefile index b8ad396bebe..fbb58ad8918 100644 --- a/x11/xf86-video-voodoo/Makefile +++ b/x11/xf86-video-voodoo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2016/01/05 13:11:46 tnn Exp $ +# $NetBSD: Makefile,v 1.3 2016/02/26 11:27:21 jperkin Exp $ DISTNAME= xf86-video-voodoo-1.2.5 PKGREVISION= 1 @@ -17,9 +17,7 @@ USE_TOOLS+= pkg-config .include "options.mk" -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 BUILDLINK_API_DEPENDS.xextproto+= xextproto>=7.0.99.1 .include "../../x11/xextproto/buildlink3.mk" diff --git a/x11/xf86-video-wsfb/Makefile b/x11/xf86-video-wsfb/Makefile index 5efdbbe06cf..29f18926050 100644 --- a/x11/xf86-video-wsfb/Makefile +++ b/x11/xf86-video-wsfb/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2016/01/05 13:11:46 tnn Exp $ +# $NetBSD: Makefile,v 1.17 2016/02/26 11:27:21 jperkin Exp $ DISTNAME= xf86-video-wsfb-0.4.0 PKGREVISION= 6 @@ -16,11 +16,7 @@ USE_LIBTOOL= YES GNU_CONFIGURE= YES USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" .include "../../x11/xproto/buildlink3.mk" diff --git a/x11/xf86-video-xgi/Makefile b/x11/xf86-video-xgi/Makefile index 439892b3397..3db2767aeca 100644 --- a/x11/xf86-video-xgi/Makefile +++ b/x11/xf86-video-xgi/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2016/01/05 13:11:46 tnn Exp $ +# $NetBSD: Makefile,v 1.4 2016/02/26 11:27:21 jperkin Exp $ DISTNAME= xf86-video-xgi-1.6.1 PKGREVISION= 1 @@ -14,10 +14,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "SunOS" -CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 -.endif +CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4 .include "../../x11/modular-xorg-server/buildlink3.mk" #.include "../../x11/randrproto/buildlink3.mk" diff --git a/x11/xflame/Makefile b/x11/xflame/Makefile index 00e6425c71f..f00d1b93d2f 100644 --- a/x11/xflame/Makefile +++ b/x11/xflame/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2012/10/29 05:07:10 asau Exp $ +# $NetBSD: Makefile,v 1.13 2016/02/26 11:27:21 jperkin Exp $ # DISTNAME= xflame-1.1.1 @@ -11,11 +11,8 @@ COMMENT= Draws a flame on the screen USE_IMAKE= yes -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "SunOS" -MAKE_FLAGS+= EXTRA_LOAD_FLAGS=-lrt -.endif +OPSYSVARS+= MAKE_FLAGS +MAKE_FLAGS.SunOS+= EXTRA_LOAD_FLAGS=-lrt .include "../../x11/libX11/buildlink3.mk" .include "../../x11/libXext/buildlink3.mk" diff --git a/x11/xfwp/Makefile b/x11/xfwp/Makefile index 42f73aee251..4ea312dab2c 100644 --- a/x11/xfwp/Makefile +++ b/x11/xfwp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2014/12/12 00:24:42 rodent Exp $ +# $NetBSD: Makefile,v 1.4 2016/02/26 11:27:21 jperkin Exp $ DISTNAME= xfwp-1.0.3 CATEGORIES= net @@ -13,11 +13,7 @@ LICENSE= x11 GNU_CONFIGURE= yes USE_TOOLS+= pkg-config -.include "../../mk/bsd.fast.prefs.mk" - -.if ${OPSYS} == "Linux" -CONFIGURE_ARGS+= --disable-strict-compilation --disable-selective-werror -.endif +CONFIGURE_ARGS.Linux+= --disable-strict-compilation --disable-selective-werror .include "../../x11/xproxymanagementprotocol/buildlink3.mk" .include "../../x11/libICE/buildlink3.mk" diff --git a/x11/xman/Makefile b/x11/xman/Makefile index 19aea04c3c8..79105679ca7 100644 --- a/x11/xman/Makefile +++ b/x11/xman/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2015/03/07 18:32:44 wiz Exp $ +# $NetBSD: Makefile,v 1.17 2016/02/26 11:27:22 jperkin Exp $ DISTNAME= xman-1.1.4 CATEGORIES= x11 @@ -14,11 +14,7 @@ USE_TOOLS+= pkg-config CONFIGURE_ENV+= APP_MAN_SUFFIX=1 -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --with-manconfig=/etc/man.conf -.endif +CONFIGURE_ARGS.NetBSD+= --with-manconfig=/etc/man.conf MAKE_FLAGS+= appdefaultdir=${PREFIX}/lib/X11/app-defaults |