*: Replace custom tool setup with new ggrep.diff -r1.3 -r1.4 pkgsrc/lang/compiler-rt/Makefile
(jperkin)
@@ -1,28 +1,29 @@ | @@ -1,28 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2018/08/10 15:57:54 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2018/10/17 08:39:13 jperkin Exp $ | |
2 | 2 | |||
3 | DISTNAME= compiler-rt-6.0.1.src | 3 | DISTNAME= compiler-rt-6.0.1.src | |
4 | PKGNAME= ${DISTNAME:S/.src//} | 4 | PKGNAME= ${DISTNAME:S/.src//} | |
5 | CATEGORIES= lang devel | 5 | CATEGORIES= lang devel | |
6 | MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/ | 6 | MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/ | |
7 | EXTRACT_SUFX= .tar.xz | 7 | EXTRACT_SUFX= .tar.xz | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://compiler-rt.llvm.org/ | 10 | HOMEPAGE= http://compiler-rt.llvm.org/ | |
11 | COMMENT= LLVM runtime libraries | 11 | COMMENT= LLVM runtime libraries | |
12 | LICENSE= modified-bsd OR mit | 12 | LICENSE= modified-bsd OR mit | |
13 | 13 | |||
14 | USE_LANGUAGES= c99 c++11 | 14 | USE_LANGUAGES= c99 c++11 | |
15 | USE_CMAKE= yes | 15 | USE_CMAKE= yes | |
16 | USE_TOOLS+= ggrep | |||
16 | GCC_REQD+= 4.8 | 17 | GCC_REQD+= 4.8 | |
17 | SSP_SUPPORTED= no | 18 | SSP_SUPPORTED= no | |
18 | 19 | |||
19 | CONFIGURE_DIRS= ${WRKDIR}/build | 20 | CONFIGURE_DIRS= ${WRKDIR}/build | |
20 | CMAKE_ARG_PATH= ${WRKSRC} | 21 | CMAKE_ARG_PATH= ${WRKSRC} | |
21 | 22 | |||
22 | OS_DIR.SunOS-5.11= solaris2.11 | 23 | OS_DIR.SunOS-5.11= solaris2.11 | |
23 | OS_DIR= ${OS_DIR.${OPSYS}-${OS_VERSION}} | 24 | OS_DIR= ${OS_DIR.${OPSYS}-${OS_VERSION}} | |
24 | 25 | |||
25 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release | 26 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release | |
26 | CMAKE_ARGS+= -DCMAKE_C_COMPILER=${CC:Q} | 27 | CMAKE_ARGS+= -DCMAKE_C_COMPILER=${CC:Q} | |
27 | CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${CXX:Q} | 28 | CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${CXX:Q} | |
28 | CMAKE_ARGS+= -DCOMPILER_RT_TEST_COMPILER=${PKG_CC:Q} | 29 | CMAKE_ARGS+= -DCOMPILER_RT_TEST_COMPILER=${PKG_CC:Q} | |
@@ -30,24 +31,17 @@ CMAKE_ARGS+= -DCOMPILER_RT_OS_DIR:STRING | @@ -30,24 +31,17 @@ CMAKE_ARGS+= -DCOMPILER_RT_OS_DIR:STRING | |||
30 | CMAKE_ARGS+= -DCOMPILER_RT_INSTALL_PATH:STRING=lib/clang/${PKGVERSION_NOREV} | 31 | CMAKE_ARGS+= -DCOMPILER_RT_INSTALL_PATH:STRING=lib/clang/${PKGVERSION_NOREV} | |
31 | CMAKE_ARGS+= -DCOMPILER_RT_INCLUDE_TESTS:BOOL=ON | 32 | CMAKE_ARGS+= -DCOMPILER_RT_INCLUDE_TESTS:BOOL=ON | |
32 | CMAKE_ARGS+= -DLLVM_CONFIG_PATH=${LLVM_CONFIG_PATH:Q} | 33 | CMAKE_ARGS+= -DLLVM_CONFIG_PATH=${LLVM_CONFIG_PATH:Q} | |
33 | 34 | |||
34 | PLIST_SUBST+= COMPILER_RT_OS_DIR=${OS_DIR} | 35 | PLIST_SUBST+= COMPILER_RT_OS_DIR=${OS_DIR} | |
35 | 36 | |||
36 | TEST_TARGET= check-compiler-rt | 37 | TEST_TARGET= check-compiler-rt | |
37 | 38 | |||
38 | PYTHON_FOR_BUILD_ONLY= yes | 39 | PYTHON_FOR_BUILD_ONLY= yes | |
39 | 40 | |||
40 | post-extract: | 41 | post-extract: | |
41 | ${RUN} mkdir -p ${WRKDIR}/build | 42 | ${RUN} mkdir -p ${WRKDIR}/build | |
42 | 43 | |||
43 | .include "../../mk/bsd.prefs.mk" | |||
44 | ||||
45 | .if ${OPSYS} == "SunOS" | |||
46 | BUILD_DEPENDS+= grep>=0:../../textproc/grep | |||
47 | TOOLS_PATH.grep= ${PREFIX}/bin/ggrep | |||
48 | .endif | |||
49 | ||||
50 | .include "../../devel/googletest/buildlink3.mk" | 44 | .include "../../devel/googletest/buildlink3.mk" | |
51 | .include "../../lang/llvm/buildlink3.mk" | 45 | .include "../../lang/llvm/buildlink3.mk" | |
52 | .include "../../lang/python/tool.mk" | 46 | .include "../../lang/python/tool.mk" | |
53 | .include "../../mk/bsd.pkg.mk" | 47 | .include "../../mk/bsd.pkg.mk" |
@@ -1,30 +1,30 @@ | @@ -1,30 +1,30 @@ | |||
1 | # $NetBSD: Makefile,v 1.58 2018/10/15 11:22:23 he Exp $ | 1 | # $NetBSD: Makefile,v 1.59 2018/10/17 08:39:13 jperkin Exp $ | |
2 | 2 | |||
3 | DISTNAME= rustc-1.29.1-src | 3 | DISTNAME= rustc-1.29.1-src | |
4 | PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} | 4 | PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} | |
5 | PKGREVISION= 2 | 5 | PKGREVISION= 2 | |
6 | CATEGORIES= lang | 6 | CATEGORIES= lang | |
7 | MASTER_SITES= http://static.rust-lang.org/dist/ | 7 | MASTER_SITES= http://static.rust-lang.org/dist/ | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://www.rust-lang.org/ | 10 | HOMEPAGE= https://www.rust-lang.org/ | |
11 | COMMENT= Safe, concurrent, practical language | 11 | COMMENT= Safe, concurrent, practical language | |
12 | LICENSE= mit OR apache-2.0 | 12 | LICENSE= mit OR apache-2.0 | |
13 | 13 | |||
14 | USE_GCC_RUNTIME= yes | 14 | USE_GCC_RUNTIME= yes | |
15 | USE_LANGUAGES= c c++11 | 15 | USE_LANGUAGES= c c++11 | |
16 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
17 | USE_TOOLS+= bash gmake perl:build pkg-config | 17 | USE_TOOLS+= bash ggrep gmake perl:build pkg-config | |
18 | # For internal llvm | 18 | # For internal llvm | |
19 | BUILD_DEPENDS+= cmake-[0-9]*:../../devel/cmake | 19 | BUILD_DEPENDS+= cmake-[0-9]*:../../devel/cmake | |
20 | 20 | |||
21 | HAS_CONFIGURE= yes | 21 | HAS_CONFIGURE= yes | |
22 | CONFIGURE_ARGS+= --prefix=${PREFIX} | 22 | CONFIGURE_ARGS+= --prefix=${PREFIX} | |
23 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} | 23 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} | |
24 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | 24 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | |
25 | CONFIGURE_ARGS+= --python=${PYTHONBIN} | 25 | CONFIGURE_ARGS+= --python=${PYTHONBIN} | |
26 | CONFIGURE_ARGS+= --release-channel=stable | 26 | CONFIGURE_ARGS+= --release-channel=stable | |
27 | #CONFIGURE_ARGS+= --enable-local-rust | 27 | #CONFIGURE_ARGS+= --enable-local-rust | |
28 | CONFIGURE_ARGS+= --local-rust-root=${RUST_BOOTSTRAP_PATH} | 28 | CONFIGURE_ARGS+= --local-rust-root=${RUST_BOOTSTRAP_PATH} | |
29 | CONFIGURE_ARGS+= --enable-extended # Build and install cargo too. | 29 | CONFIGURE_ARGS+= --enable-extended # Build and install cargo too. | |
30 | CONFIGURE_ARGS+= --enable-rpath | 30 | CONFIGURE_ARGS+= --enable-rpath | |
@@ -220,29 +220,27 @@ DISTFILES:= ${DISTFILES} ${RUST_STAGE0} | @@ -220,29 +220,27 @@ DISTFILES:= ${DISTFILES} ${RUST_STAGE0} | |||
220 | SITES.${RUST_STAGE0}= ftp://golden-delicious.urc.uninett.no/pub/rust/ | 220 | SITES.${RUST_STAGE0}= ftp://golden-delicious.urc.uninett.no/pub/rust/ | |
221 | SITES.${RUST_STD_STAGE0}= ftp://golden-delicious.urc.uninett.no/pub/rust/ | 221 | SITES.${RUST_STD_STAGE0}= ftp://golden-delicious.urc.uninett.no/pub/rust/ | |
222 | pre-build-fix: | 222 | pre-build-fix: | |
223 | .endif | 223 | .endif | |
224 | 224 | |||
225 | # You may override RUST_BOOTSTRAP_PATH and RUST_ARCH in mk.conf if you have a local bootstrap compiler. | 225 | # You may override RUST_BOOTSTRAP_PATH and RUST_ARCH in mk.conf if you have a local bootstrap compiler. | |
226 | .if !defined(RUST_ARCH) && !defined(RUST_BOOTSTRAP_PATH) | 226 | .if !defined(RUST_ARCH) && !defined(RUST_BOOTSTRAP_PATH) | |
227 | NOT_FOR_PLATFORM+= ${MACHINE_PLATFORM} | 227 | NOT_FOR_PLATFORM+= ${MACHINE_PLATFORM} | |
228 | .else | 228 | .else | |
229 | RUST_BOOTSTRAP_PATH?= ${WRKDIR}/rust-bootstrap | 229 | RUST_BOOTSTRAP_PATH?= ${WRKDIR}/rust-bootstrap | |
230 | .endif | 230 | .endif | |
231 | 231 | |||
232 | .if ${OPSYS} == "SunOS" | 232 | .if ${OPSYS} == "SunOS" | |
233 | BUILD_DEPENDS+= grep>=0:../../textproc/grep | |||
234 | BUILD_DEPENDS+= coreutils>=0:../../sysutils/coreutils | 233 | BUILD_DEPENDS+= coreutils>=0:../../sysutils/coreutils | |
235 | TOOLS_PATH.grep= ${PREFIX}/bin/ggrep | |||
236 | TOOLS_CREATE+= md5sum | 234 | TOOLS_CREATE+= md5sum | |
237 | TOOLS_PATH.md5sum= ${PREFIX}/bin/gmd5sum | 235 | TOOLS_PATH.md5sum= ${PREFIX}/bin/gmd5sum | |
238 | .endif | 236 | .endif | |
239 | 237 | |||
240 | SUBST_CLASSES+= rpath | 238 | SUBST_CLASSES+= rpath | |
241 | SUBST_STAGE.rpath= pre-configure | 239 | SUBST_STAGE.rpath= pre-configure | |
242 | SUBST_FILES.rpath= src/bootstrap/bin/rustc.rs | 240 | SUBST_FILES.rpath= src/bootstrap/bin/rustc.rs | |
243 | SUBST_VARS.rpath= PREFIX | 241 | SUBST_VARS.rpath= PREFIX | |
244 | 242 | |||
245 | post-extract: | 243 | post-extract: | |
246 | set -e; \ | 244 | set -e; \ | |
247 | if ${TEST} -e ${WRKDIR}/rust-${RUST_STAGE0_VER}-${RUST_ARCH}/install.sh \ | 245 | if ${TEST} -e ${WRKDIR}/rust-${RUST_STAGE0_VER}-${RUST_ARCH}/install.sh \ | |
248 | -a ! -e ${RUST_BOOTSTRAP_PATH}/bin/rustc; then \ | 246 | -a ! -e ${RUST_BOOTSTRAP_PATH}/bin/rustc; then \ |
@@ -1,43 +1,37 @@ | @@ -1,43 +1,37 @@ | |||
1 | # $NetBSD: Makefile,v 1.14 2018/08/20 00:43:33 leot Exp $ | 1 | # $NetBSD: Makefile,v 1.15 2018/10/17 08:39:13 jperkin Exp $ | |
2 | 2 | |||
3 | DISTNAME= xdg-utils-1.1.3 | 3 | DISTNAME= xdg-utils-1.1.3 | |
4 | PKGREVISION= 1 | 4 | PKGREVISION= 1 | |
5 | CATEGORIES= misc | 5 | CATEGORIES= misc | |
6 | MASTER_SITES= https://portland.freedesktop.org/download/ | 6 | MASTER_SITES= https://portland.freedesktop.org/download/ | |
7 | 7 | |||
8 | MAINTAINER= leot@NetBSD.org | 8 | MAINTAINER= leot@NetBSD.org | |
9 | HOMEPAGE= https://www.freedesktop.org/wiki/Software/xdg-utils/ | 9 | HOMEPAGE= https://www.freedesktop.org/wiki/Software/xdg-utils/ | |
10 | COMMENT= Tools to assist applications with various desktop integration tasks | 10 | COMMENT= Tools to assist applications with various desktop integration tasks | |
11 | LICENSE= mit | 11 | LICENSE= mit | |
12 | 12 | |||
13 | BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto | 13 | BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto | |
14 | BUILD_DEPENDS+= w3m-[0-9]*:../../www/w3m | 14 | BUILD_DEPENDS+= w3m-[0-9]*:../../www/w3m | |
15 | 15 | |||
16 | GNU_CONFIGURE= yes | 16 | GNU_CONFIGURE= yes | |
17 | USE_LANGUAGES= # none | 17 | USE_LANGUAGES= # none | |
18 | USE_TOOLS+= bash:run gmake grep:run gsed:run | 18 | USE_TOOLS+= bash:run gmake ggrep:run gsed:run | |
19 | 19 | |||
20 | SUBST_CLASSES+= gsed | 20 | SUBST_CLASSES+= gsed | |
21 | SUBST_FILES.gsed= scripts/xdg-*.in | 21 | SUBST_FILES.gsed= scripts/xdg-*.in | |
22 | SUBST_STAGE.gsed= pre-configure | 22 | SUBST_STAGE.gsed= pre-configure | |
23 | SUBST_MESSAGE.gsed= Use GNU grep/sed instead of grep/sed. | 23 | SUBST_MESSAGE.gsed= Use GNU grep/sed instead of grep/sed. | |
24 | SUBST_SED.gsed+= -e "s, sed , ${TOOLS_PATH.gsed} ,g" | 24 | SUBST_SED.gsed+= -e "s, sed , ${TOOLS_PATH.gsed} ,g" | |
25 | SUBST_SED.gsed+= -e "s, grep , ${TOOLS_PATH.grep} ,g" | 25 | SUBST_SED.gsed+= -e "s, grep , ${TOOLS_PATH.ggrep} ,g" | |
26 | 26 | |||
27 | SUBST_CLASSES+= paths | 27 | SUBST_CLASSES+= paths | |
28 | SUBST_FILES.paths= scripts/xdg-*.in | 28 | SUBST_FILES.paths= scripts/xdg-*.in | |
29 | SUBST_STAGE.paths= pre-configure | 29 | SUBST_STAGE.paths= pre-configure | |
30 | SUBST_MESSAGE.paths= Avoid hardcoded paths. | 30 | SUBST_MESSAGE.paths= Avoid hardcoded paths. | |
31 | SUBST_SED.paths+= -e "s,/usr/local,${PREFIX},g" | 31 | SUBST_SED.paths+= -e "s,/usr/local,${PREFIX},g" | |
32 | SUBST_SED.paths+= -e "s,/etc,${PKG_SYSCONFDIR},g" | 32 | SUBST_SED.paths+= -e "s,/etc,${PKG_SYSCONFDIR},g" | |
33 | 33 | |||
34 | # "foo > /dev/null 2> /dev/null" gives "foo: not found" with NetBSD's sh | 34 | # "foo > /dev/null 2> /dev/null" gives "foo: not found" with NetBSD's sh | |
35 | REPLACE_BASH+= scripts/xdg-* | 35 | REPLACE_BASH+= scripts/xdg-* | |
36 | 36 | |||
37 | .include "../../mk/bsd.prefs.mk" | |||
38 | ||||
39 | .if ${OPSYS} == "SunOS" | |||
40 | TOOLS_PLATFORM.grep= # use pkgsrc ggrep | |||
41 | .endif | |||
42 | ||||
43 | .include "../../mk/bsd.pkg.mk" | 37 | .include "../../mk/bsd.pkg.mk" |
@@ -1,37 +1,37 @@ | @@ -1,37 +1,37 @@ | |||
1 | # $NetBSD: Makefile,v 1.299 2018/08/22 09:48:01 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.300 2018/10/17 08:39:13 jperkin Exp $ | |
2 | 2 | |||
3 | DISTNAME= gtk+-2.24.32 | 3 | DISTNAME= gtk+-2.24.32 | |
4 | PKGNAME= ${DISTNAME:S/gtk/gtk2/} | 4 | PKGNAME= ${DISTNAME:S/gtk/gtk2/} | |
5 | PKGREVISION= 5 | 5 | PKGREVISION= 5 | |
6 | CATEGORIES= x11 gnome | 6 | CATEGORIES= x11 gnome | |
7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/2.24/} | 7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/2.24/} | |
8 | EXTRACT_SUFX= .tar.xz | 8 | EXTRACT_SUFX= .tar.xz | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= https://www.gtk.org/ | 11 | HOMEPAGE= https://www.gtk.org/ | |
12 | COMMENT= GIMP Toolkit v2 - libraries for building X11 user interfaces | 12 | COMMENT= GIMP Toolkit v2 - libraries for building X11 user interfaces | |
13 | LICENSE= gnu-lgpl-v2.1 | 13 | LICENSE= gnu-lgpl-v2.1 | |
14 | 14 | |||
15 | # gtk-builder-convert uses minidom from xml.dom, which needs expat | 15 | # gtk-builder-convert uses minidom from xml.dom, which needs expat | |
16 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | 16 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | |
17 | 17 | |||
18 | CONFLICTS= gtk2-engines<2.6.0 | 18 | CONFLICTS= gtk2-engines<2.6.0 | |
19 | CONFLICTS+= gail-[0-9]* | 19 | CONFLICTS+= gail-[0-9]* | |
20 | 20 | |||
21 | SUPERSEDES= gail-[0-9]* | 21 | SUPERSEDES= gail-[0-9]* | |
22 | 22 | |||
23 | USE_PKGLOCALEDIR= yes | 23 | USE_PKGLOCALEDIR= yes | |
24 | USE_TOOLS+= gmake msgfmt perl pkg-config | 24 | USE_TOOLS+= ggrep gmake msgfmt perl pkg-config | |
25 | USE_LANGUAGES= c c++ | 25 | USE_LANGUAGES= c c++ | |
26 | USE_LIBTOOL= yes | 26 | USE_LIBTOOL= yes | |
27 | PTHREAD_AUTO_VARS= yes | 27 | PTHREAD_AUTO_VARS= yes | |
28 | 28 | |||
29 | GNU_CONFIGURE= yes | 29 | GNU_CONFIGURE= yes | |
30 | # bashism in "configure" (illegal variable substitution), patched | 30 | # bashism in "configure" (illegal variable substitution), patched | |
31 | #CONFIG_SHELL= bash | 31 | #CONFIG_SHELL= bash | |
32 | CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/libdata | 32 | CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/libdata | |
33 | # Work around build problems, disable unstable PAPI, PR #41608: | 33 | # Work around build problems, disable unstable PAPI, PR #41608: | |
34 | CONFIGURE_ARGS+= --disable-papi | 34 | CONFIGURE_ARGS+= --disable-papi | |
35 | # Not to unwanted pick up of db2html, PR#44908 | 35 | # Not to unwanted pick up of db2html, PR#44908 | |
36 | CONFIGURE_ENV+= ac_cv_prog_DB2HTML=false | 36 | CONFIGURE_ENV+= ac_cv_prog_DB2HTML=false | |
37 | MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR} | 37 | MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR} | |
@@ -49,33 +49,26 @@ PKGCONFIG_OVERRIDE+= gtk+-unix-print-2.0 | @@ -49,33 +49,26 @@ PKGCONFIG_OVERRIDE+= gtk+-unix-print-2.0 | |||
49 | INSTALLATION_DIRS+= lib/gtk-2.0/immodules | 49 | INSTALLATION_DIRS+= lib/gtk-2.0/immodules | |
50 | INSTALLATION_DIRS+= lib/gtk-2.0/modules | 50 | INSTALLATION_DIRS+= lib/gtk-2.0/modules | |
51 | INSTALLATION_DIRS+= lib/gtk-2.0/2.10.0/filesystems | 51 | INSTALLATION_DIRS+= lib/gtk-2.0/2.10.0/filesystems | |
52 | 52 | |||
53 | REQD_DIRS+= ${PREFIX}/libdata/gtk-2.0 | 53 | REQD_DIRS+= ${PREFIX}/libdata/gtk-2.0 | |
54 | 54 | |||
55 | BUILD_DIRS= . demos/gtk-demo | 55 | BUILD_DIRS= . demos/gtk-demo | |
56 | 56 | |||
57 | # fix for 'only weak aliases are supported on darwin' error | 57 | # fix for 'only weak aliases are supported on darwin' error | |
58 | CONFIGURE_ARGS.Darwin+= --disable-visibility | 58 | CONFIGURE_ARGS.Darwin+= --disable-visibility | |
59 | 59 | |||
60 | .include "../../mk/bsd.prefs.mk" | 60 | .include "../../mk/bsd.prefs.mk" | |
61 | 61 | |||
62 | # gtk/Makefile.am hardcodes 'grep -o' so require GNU grep on platforms | |||
63 | # which do not have it. | |||
64 | .if ${OPSYS} == "SunOS" | |||
65 | BUILD_DEPENDS+= grep-[0-9]*:../../textproc/grep | |||
66 | TOOLS_PATH.grep= ${PREFIX}/bin/ggrep | |||
67 | .endif | |||
68 | ||||
69 | CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" | 62 | CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" | |
70 | 63 | |||
71 | #SUBST_CLASSES+= pthread | 64 | #SUBST_CLASSES+= pthread | |
72 | #SUBST_STAGE.pthread= pre-configure | 65 | #SUBST_STAGE.pthread= pre-configure | |
73 | #SUBST_MESSAGE.pthread= Fixing pthread flags. | 66 | #SUBST_MESSAGE.pthread= Fixing pthread flags. | |
74 | #SUBST_SED.pthread= -e 's,__PTHREAD_FLAGS__,${BUILDLINK_LDFLAGS.pthread},g' | 67 | #SUBST_SED.pthread= -e 's,__PTHREAD_FLAGS__,${BUILDLINK_LDFLAGS.pthread},g' | |
75 | #SUBST_FILES.pthread= gdk-pixbuf/Makefile.in | 68 | #SUBST_FILES.pthread= gdk-pixbuf/Makefile.in | |
76 | 69 | |||
77 | SUBST_CLASSES+= iconcache | 70 | SUBST_CLASSES+= iconcache | |
78 | SUBST_STAGE.iconcache= pre-configure | 71 | SUBST_STAGE.iconcache= pre-configure | |
79 | SUBST_MESSAGE.iconcache= Renaming gtk-icon-cache-update. | 72 | SUBST_MESSAGE.iconcache= Renaming gtk-icon-cache-update. | |
80 | SUBST_SED.iconcache= -e 's,gtk-update-icon-cache,gtk2-update-icon-cache,g' | 73 | SUBST_SED.iconcache= -e 's,gtk-update-icon-cache,gtk2-update-icon-cache,g' | |
81 | SUBST_FILES.iconcache= gtk/Makefile.in | 74 | SUBST_FILES.iconcache= gtk/Makefile.in |
@@ -1,29 +1,29 @@ | @@ -1,29 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.118 2018/08/22 09:48:01 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.119 2018/10/17 08:39:13 jperkin Exp $ | |
2 | 2 | |||
3 | DISTNAME= gtk+-3.22.30 | 3 | DISTNAME= gtk+-3.22.30 | |
4 | PKGNAME= ${DISTNAME:S/gtk/gtk3/} | 4 | PKGNAME= ${DISTNAME:S/gtk/gtk3/} | |
5 | PKGREVISION= 3 | 5 | PKGREVISION= 3 | |
6 | CATEGORIES= x11 gnome | 6 | CATEGORIES= x11 gnome | |
7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/${PKGVERSION_NOREV:R}/} | 7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/${PKGVERSION_NOREV:R}/} | |
8 | EXTRACT_SUFX= .tar.xz | 8 | EXTRACT_SUFX= .tar.xz | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= https://www.gtk.org/ | 11 | HOMEPAGE= https://www.gtk.org/ | |
12 | COMMENT= GIMP Toolkit v3 - libraries for building X11 user interfaces | 12 | COMMENT= GIMP Toolkit v3 - libraries for building X11 user interfaces | |
13 | LICENSE= gnu-lgpl-v2.1 | 13 | LICENSE= gnu-lgpl-v2.1 | |
14 | 14 | |||
15 | USE_PKGLOCALEDIR= yes | 15 | USE_PKGLOCALEDIR= yes | |
16 | USE_TOOLS+= gmake perl pkg-config bash xgettext msgmerge | 16 | USE_TOOLS+= ggrep gmake perl pkg-config bash xgettext msgmerge | |
17 | USE_LANGUAGES= c c++ | 17 | USE_LANGUAGES= c c++ | |
18 | USE_LIBTOOL= yes | 18 | USE_LIBTOOL= yes | |
19 | PTHREAD_AUTO_VARS= yes | 19 | PTHREAD_AUTO_VARS= yes | |
20 | TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen | 20 | TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen | |
21 | TOOL_DEPENDS+= gettext-tools>=0.19.4nb1:../../devel/gettext-tools | 21 | TOOL_DEPENDS+= gettext-tools>=0.19.4nb1:../../devel/gettext-tools | |
22 | # There is no logic in gettext.mk to detect the native version of xgettext, | 22 | # There is no logic in gettext.mk to detect the native version of xgettext, | |
23 | # and we do need it to be compiled with Glade support. | 23 | # and we do need it to be compiled with Glade support. | |
24 | _TOOLS_USE_PKGSRC.xgettext=yes | 24 | _TOOLS_USE_PKGSRC.xgettext=yes | |
25 | 25 | |||
26 | GNU_CONFIGURE= yes | 26 | GNU_CONFIGURE= yes | |
27 | # XXX there is a subtle bashism in "configure" or a bug in NetBSD's sh | 27 | # XXX there is a subtle bashism in "configure" or a bug in NetBSD's sh | |
28 | CONFIG_SHELL= ${TOOLS_PATH.bash} | 28 | CONFIG_SHELL= ${TOOLS_PATH.bash} | |
29 | CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/libdata | 29 | CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/libdata | |
@@ -37,32 +37,26 @@ TEST_TARGET= check | @@ -37,32 +37,26 @@ TEST_TARGET= check | |||
37 | PKGCONFIG_OVERRIDE+= gdk-3.0.pc.in | 37 | PKGCONFIG_OVERRIDE+= gdk-3.0.pc.in | |
38 | PKGCONFIG_OVERRIDE+= gtk+-3.0.pc.in | 38 | PKGCONFIG_OVERRIDE+= gtk+-3.0.pc.in | |
39 | PKGCONFIG_OVERRIDE+= gtk+-unix-print-3.0.pc.in | 39 | PKGCONFIG_OVERRIDE+= gtk+-unix-print-3.0.pc.in | |
40 | PKGCONFIG_OVERRIDE+= gail-3.0.pc.in | 40 | PKGCONFIG_OVERRIDE+= gail-3.0.pc.in | |
41 | 41 | |||
42 | INSTALLATION_DIRS+= lib/gtk-3.0/immodules | 42 | INSTALLATION_DIRS+= lib/gtk-3.0/immodules | |
43 | INSTALLATION_DIRS+= lib/gtk-3.0/modules | 43 | INSTALLATION_DIRS+= lib/gtk-3.0/modules | |
44 | INSTALLATION_DIRS+= lib/gtk-3.0/3.0.0/filesystems | 44 | INSTALLATION_DIRS+= lib/gtk-3.0/3.0.0/filesystems | |
45 | 45 | |||
46 | BUILD_DIRS= . demos/gtk-demo | 46 | BUILD_DIRS= . demos/gtk-demo | |
47 | 47 | |||
48 | .include "../../mk/bsd.prefs.mk" | 48 | .include "../../mk/bsd.prefs.mk" | |
49 | 49 | |||
50 | # gtk/Makefile.am hardcodes 'grep -o' so require GNU grep on platforms | |||
51 | # which do not have it. | |||
52 | .if ${OPSYS} == "SunOS" | |||
53 | BUILD_DEPENDS+= grep-[0-9]*:../../textproc/grep | |||
54 | TOOLS_PATH.grep= ${PREFIX}/bin/ggrep | |||
55 | .endif | |||
56 | # isnan and isinf are part of libc, not libm on DragonFly | 50 | # isnan and isinf are part of libc, not libm on DragonFly | |
57 | # conf tests fail detection due to conflicting definitions, just skip them | 51 | # conf tests fail detection due to conflicting definitions, just skip them | |
58 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isinf=yes | 52 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isinf=yes | |
59 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isnan=yes | 53 | CONFIGURE_ENV.DragonFly+= ac_cv_func_isnan=yes | |
60 | 54 | |||
61 | CFLAGS.SunOS+= -std=gnu99 | 55 | CFLAGS.SunOS+= -std=gnu99 | |
62 | 56 | |||
63 | CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" | 57 | CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" | |
64 | 58 | |||
65 | # We remove the module databases during post-install since we create them | 59 | # We remove the module databases during post-install since we create them | |
66 | # anew in the +INSTALL script as part of the POST-INSTALL action. | 60 | # anew in the +INSTALL script as part of the POST-INSTALL action. | |
67 | # | 61 | # | |
68 | post-install: | 62 | post-install: |