| @@ -1,241 +1,242 @@ | | | @@ -1,241 +1,242 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.124 2019/02/01 16:47:59 ryoon Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.125 2019/02/21 23:56:51 gutteridge Exp $ |
2 | # | | 2 | # |
3 | # common Makefile fragment for mozilla packages based on gecko 2.0. | | 3 | # common Makefile fragment for mozilla packages based on gecko 2.0. |
4 | # | | 4 | # |
5 | # used by www/firefox/Makefile | | 5 | # used by www/firefox/Makefile |
6 | # used by www/seamonkey/Makefile | | 6 | # used by www/seamonkey/Makefile |
7 | | | 7 | |
8 | .include "../../mk/bsd.prefs.mk" | | 8 | .include "../../mk/bsd.prefs.mk" |
9 | | | 9 | |
10 | # Python 2.7 and Python 3.5 or later are required simultaneously. | | 10 | # Python 2.7 and Python 3.5 or later are required simultaneously. |
11 | PYTHON_VERSIONS_ACCEPTED= 27 | | 11 | PYTHON_VERSIONS_ACCEPTED= 27 |
12 | PYTHON_FOR_BUILD_ONLY= tool | | 12 | PYTHON_FOR_BUILD_ONLY= tool |
13 | .if !empty(PYTHON_VERSION_DEFAULT:M37) || !empty(PYTHON_VERSION_DEFAULT:M36) \ | | 13 | .if !empty(PYTHON_VERSION_DEFAULT:M37) || !empty(PYTHON_VERSION_DEFAULT:M36) \ |
14 | || !empty(PYTHON_VERSION_DEFAULT:M35) | | 14 | || !empty(PYTHON_VERSION_DEFAULT:M35) |
15 | TOOL_DEPENDS+= python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT} | | 15 | TOOL_DEPENDS+= python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT} |
16 | ALL_ENV+= PYTHON3=${LOCALBASE}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./} | | 16 | ALL_ENV+= PYTHON3=${LOCALBASE}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./} |
17 | .else | | 17 | .else |
18 | TOOL_DEPENDS+= python37-[0-9]*:../../lang/python37 | | 18 | TOOL_DEPENDS+= python37-[0-9]*:../../lang/python37 |
19 | ALL_ENV+= PYTHON3=${LOCALBASE}/bin/python3.7 | | 19 | ALL_ENV+= PYTHON3=${LOCALBASE}/bin/python3.7 |
20 | .endif | | 20 | .endif |
21 | | | 21 | |
22 | HAS_CONFIGURE= yes | | 22 | HAS_CONFIGURE= yes |
23 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 23 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
24 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip | | 24 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip |
25 | USE_LANGUAGES+= c99 gnu++14 | | 25 | USE_LANGUAGES+= c99 gnu++14 |
26 | UNLIMIT_RESOURCES+= datasize | | 26 | UNLIMIT_RESOURCES+= datasize |
27 | | | 27 | |
28 | TOOL_DEPENDS+= cbindgen>=0.6.8:../../devel/cbindgen | | 28 | TOOL_DEPENDS+= cbindgen>=0.6.8:../../devel/cbindgen |
29 | .if ${MACHINE_ARCH} == "sparc64" | | 29 | .if ${MACHINE_ARCH} == "sparc64" |
30 | CONFIGURE_ARGS+= --disable-nodejs | | 30 | CONFIGURE_ARGS+= --disable-nodejs |
31 | .else | | 31 | .else |
32 | TOOL_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs | | 32 | TOOL_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs |
33 | .endif | | 33 | .endif |
34 | | | 34 | |
35 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 35 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
36 | BUILD_DEPENDS+= yasm>=1.1:../../devel/yasm | | 36 | BUILD_DEPENDS+= yasm>=1.1:../../devel/yasm |
37 | .endif | | 37 | .endif |
38 | | | 38 | |
39 | # For rustc/cargo detection | | 39 | # For rustc/cargo detection |
40 | CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM:Q} | | 40 | CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM:Q} |
41 | CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM:Q} | | 41 | CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM:Q} |
42 | | | 42 | |
43 | CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ | | 43 | CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ |
44 | -isystem${X11BASE}/include/pixman-1" | | 44 | -isystem${X11BASE}/include/pixman-1" |
45 | | | 45 | |
46 | test: | | 46 | test: |
47 | cd ${WRKSRC}/${OBJDIR}/dist/bin && \ | | 47 | cd ${WRKSRC}/${OBJDIR}/dist/bin && \ |
48 | ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey | | 48 | ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey |
49 | | | 49 | |
50 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. | | 50 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. |
51 | .if ${OPSYS} == "OpenBSD" | | 51 | .if ${OPSYS} == "OpenBSD" |
52 | TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} | | 52 | TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} |
53 | USE_TOOLS+= bsdtar | | 53 | USE_TOOLS+= bsdtar |
54 | .endif | | 54 | .endif |
55 | GCC_REQD+= 6.1 | | 55 | GCC_REQD+= 6.1 |
56 | .if !empty(MACHINE_PLATFORM:MNetBSD-[0-7]**-*) || \ | | 56 | .if !empty(MACHINE_PLATFORM:MNetBSD-[0-7]**-*) || \ |
57 | !empty(MACHINE_PLATFORM:MNetBSD-8.[0-8]*-*) | | 57 | !empty(MACHINE_PLATFORM:MNetBSD-8.[0-8]*-*) |
58 | USE_PKGSRC_GCC_RUNTIME= yes | | 58 | USE_PKGSRC_GCC_RUNTIME= yes |
59 | .endif | | 59 | .endif |
60 | .if ${MACHINE_ARCH} == "i386" | | 60 | .if ${MACHINE_ARCH} == "i386" |
61 | # Fix for PR pkg/48152. | | 61 | # Fix for PR pkg/48152. |
62 | CXXFLAGS+= -march=i586 | | 62 | CXXFLAGS+= -march=i586 |
63 | # This is required for SSE2 code under i386. | | 63 | # This is required for SSE2 code under i386. |
64 | CXXFLAGS+= -mstackrealign | | 64 | CXXFLAGS+= -mstackrealign |
65 | .endif | | 65 | .endif |
66 | | | 66 | |
67 | CXXFLAGS+= -D__HAVE_INLINE___ISINF | | 67 | CXXFLAGS+= -D__HAVE_INLINE___ISINF |
68 | | | 68 | |
69 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh | | 69 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh |
70 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh | | 70 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh |
71 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}js/src/tests/update-test262.sh | | 71 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}js/src/tests/update-test262.sh |
72 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}intl/icu/source/configure | | 72 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}intl/icu/source/configure |
73 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh | | 73 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh |
74 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh | | 74 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh |
75 | #CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}modules/pdfium/update.sh | | 75 | #CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}modules/pdfium/update.sh |
76 | | | 76 | |
77 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3 | | 77 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3 |
78 | CONFIGURE_ARGS+= --enable-release | | 78 | CONFIGURE_ARGS+= --enable-release |
79 | CONFIGURE_ARGS+= --enable-rust-simd | | 79 | CONFIGURE_ARGS+= --enable-rust-simd |
80 | CONFIGURE_ARGS+= --enable-webrender=build | | 80 | CONFIGURE_ARGS+= --enable-webrender=build |
81 | CONFIGURE_ARGS+= --disable-tests | | 81 | CONFIGURE_ARGS+= --disable-tests |
82 | # Mozilla Bug 1432751 | | 82 | # Mozilla Bug 1432751 |
83 | #CONFIGURE_ARGS+= --enable-system-cairo | | 83 | #CONFIGURE_ARGS+= --enable-system-cairo |
84 | CONFIGURE_ARGS+= --enable-system-pixman | | 84 | CONFIGURE_ARGS+= --enable-system-pixman |
85 | CONFIGURE_ARGS+= --with-system-libvpx | | 85 | CONFIGURE_ARGS+= --with-system-libvpx |
86 | # textproc/hunspell 1.3 is too old | | 86 | # textproc/hunspell 1.3 is too old |
87 | #CONFIGURE_ARGS+= --enable-system-hunspell | | 87 | #CONFIGURE_ARGS+= --enable-system-hunspell |
88 | CONFIGURE_ARGS+= --enable-system-ffi | | 88 | CONFIGURE_ARGS+= --enable-system-ffi |
89 | CONFIGURE_ARGS+= --with-system-icu | | 89 | CONFIGURE_ARGS+= --with-system-icu |
90 | CONFIGURE_ARGS+= --with-system-nss | | 90 | CONFIGURE_ARGS+= --with-system-nss |
91 | CONFIGURE_ARGS+= --with-system-nspr | | 91 | CONFIGURE_ARGS+= --with-system-nspr |
92 | #CONFIGURE_ARGS+= --with-system-jpeg | | 92 | #CONFIGURE_ARGS+= --with-system-jpeg |
93 | CONFIGURE_ARGS+= --with-system-zlib | | 93 | CONFIGURE_ARGS+= --with-system-zlib |
94 | CONFIGURE_ARGS+= --with-system-bz2 | | 94 | CONFIGURE_ARGS+= --with-system-bz2 |
95 | CONFIGURE_ARGS+= --with-system-libevent=${BUILDLINK_PREFIX.libevent} | | 95 | CONFIGURE_ARGS+= --with-system-libevent=${BUILDLINK_PREFIX.libevent} |
96 | CONFIGURE_ARGS+= --disable-crashreporter | | 96 | CONFIGURE_ARGS+= --disable-crashreporter |
97 | CONFIGURE_ARGS+= --disable-necko-wifi | | 97 | CONFIGURE_ARGS+= --disable-necko-wifi |
98 | CONFIGURE_ARGS+= --enable-chrome-format=flat | | 98 | CONFIGURE_ARGS+= --enable-chrome-format=flat |
99 | CONFIGURE_ARGS+= --disable-libjpeg-turbo | | 99 | CONFIGURE_ARGS+= --disable-libjpeg-turbo |
100 | CONFIGURE_ARGS+= --with-system-webp | | 100 | CONFIGURE_ARGS+= --with-system-webp |
101 | | | 101 | |
102 | CONFIGURE_ARGS+= --disable-gconf | | 102 | CONFIGURE_ARGS+= --disable-gconf |
103 | #CONFIGURE_ARGS+= --enable-readline | | 103 | #CONFIGURE_ARGS+= --enable-readline |
104 | CONFIGURE_ARGS+= --disable-icf | | 104 | CONFIGURE_ARGS+= --disable-icf |
105 | CONFIGURE_ARGS+= --disable-updater | | 105 | CONFIGURE_ARGS+= --disable-updater |
106 | | | 106 | |
107 | SUBST_CLASSES+= fix-paths | | 107 | SUBST_CLASSES+= fix-paths |
108 | SUBST_STAGE.fix-paths= pre-configure | | 108 | SUBST_STAGE.fix-paths= pre-configure |
109 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | | 109 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. |
110 | SUBST_FILES.fix-paths+= ${MOZILLA_DIR}xpcom/io/nsAppFileLocationProvider.cpp | | 110 | SUBST_FILES.fix-paths+= ${MOZILLA_DIR}xpcom/io/nsAppFileLocationProvider.cpp |
111 | SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g' | | 111 | SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g' |
112 | | | 112 | |
113 | SUBST_CLASSES+= prefix | | 113 | SUBST_CLASSES+= prefix |
114 | SUBST_STAGE.prefix= pre-configure | | 114 | SUBST_STAGE.prefix= pre-configure |
115 | SUBST_MESSAGE.prefix= Setting PREFIX | | 115 | SUBST_MESSAGE.prefix= Setting PREFIX |
116 | SUBST_FILES.prefix+= ${MOZILLA_DIR}xpcom/build/BinaryPath.h | | 116 | SUBST_FILES.prefix+= ${MOZILLA_DIR}xpcom/build/BinaryPath.h |
117 | SUBST_VARS.prefix+= PREFIX | | 117 | SUBST_VARS.prefix+= PREFIX |
118 | | | 118 | |
119 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess | | 119 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess |
120 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess | | 120 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess |
121 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess | | 121 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess |
122 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess | | 122 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess |
123 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub | | 123 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub |
124 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub | | 124 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub |
125 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub | | 125 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub |
126 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub | | 126 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub |
127 | | | 127 | |
128 | CONFIGURE_ENV+= CPP=${CPP} | | 128 | CONFIGURE_ENV+= CPP=${CPP} |
129 | | | 129 | |
130 | # Build outside ${WRKSRC} | | 130 | # Build outside ${WRKSRC} |
131 | # Try to avoid conflict with config/makefiles/xpidl/Makefile.in | | 131 | # Try to avoid conflict with config/makefiles/xpidl/Makefile.in |
132 | OBJDIR= ../build | | 132 | OBJDIR= ../build |
133 | CONFIGURE_DIRS= ${OBJDIR} | | 133 | CONFIGURE_DIRS= ${OBJDIR} |
134 | CONFIGURE_SCRIPT= ${WRKSRC}/configure | | 134 | CONFIGURE_SCRIPT= ${WRKSRC}/configure |
135 | | | 135 | |
136 | PLIST_VARS+= sps vorbis tremor glskia throwwrapper mozglue avx86 | | 136 | PLIST_VARS+= sps vorbis tremor glskia throwwrapper mozglue avx86 |
137 | | | 137 | |
138 | .include "../../mk/endian.mk" | | 138 | .include "../../mk/endian.mk" |
139 | .if ${MACHINE_ENDIAN} == "little" | | 139 | .if ${MACHINE_ENDIAN} == "little" |
140 | PLIST.glskia= yes | | 140 | PLIST.glskia= yes |
141 | .endif | | 141 | .endif |
142 | | | 142 | |
143 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 143 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
144 | PLIST.avx86= yes # see media/libav/README_MOZILLA: only used on x86 | | 144 | PLIST.avx86= yes # see media/libav/README_MOZILLA: only used on x86 |
145 | .endif | | 145 | .endif |
146 | | | 146 | |
147 | .if ${MACHINE_ARCH} != "sparc64" | | 147 | .if ${MACHINE_ARCH} != "sparc64" |
148 | # For some reasons the configure test for GCC bug 26905 still triggers on | | 148 | # For some reasons the configure test for GCC bug 26905 still triggers on |
149 | # sparc64, which makes mozilla skip the installation of a few wrapper headers. | | 149 | # sparc64, which makes mozilla skip the installation of a few wrapper headers. |
150 | # Other archs end up with one additional file in the SDK headers | | 150 | # Other archs end up with one additional file in the SDK headers |
151 | PLIST.throwwrapper= yes | | 151 | PLIST.throwwrapper= yes |
152 | .endif | | 152 | .endif |
153 | | | 153 | |
154 | .if !empty(MACHINE_PLATFORM:S/i386/x86/:MLinux-*-x86*) | | 154 | .if !empty(MACHINE_PLATFORM:S/i386/x86/:MLinux-*-x86*) |
155 | PLIST.sps= yes | | 155 | PLIST.sps= yes |
156 | .endif | | 156 | .endif |
157 | | | 157 | |
158 | .if !empty(MACHINE_PLATFORM:MLinux-*-arm*) | | 158 | .if !empty(MACHINE_PLATFORM:MLinux-*-arm*) |
159 | PLIST.tremor= yes | | 159 | PLIST.tremor= yes |
160 | .else | | 160 | .else |
161 | PLIST.vorbis= yes | | 161 | PLIST.vorbis= yes |
162 | .endif | | 162 | .endif |
163 | | | 163 | |
164 | # See ${WRKSRC}/mozglue/build/moz.build: libmozglue is built and | | 164 | # See ${WRKSRC}/mozglue/build/moz.build: libmozglue is built and |
165 | # installed as a shared library on these platforms. | | 165 | # installed as a shared library on these platforms. |
166 | .if ${OPSYS} == "Cygwin" || ${OPSYS} == "Darwin" # or Android | | 166 | .if ${OPSYS} == "Cygwin" || ${OPSYS} == "Darwin" # or Android |
167 | PLIST.mozglue= yes | | 167 | PLIST.mozglue= yes |
168 | .endif | | 168 | .endif |
169 | | | 169 | |
170 | # See ${WRKSRC}/security/sandbox/mac/Sandbox.mm: On Darwin, sandboxing | | 170 | # See ${WRKSRC}/security/sandbox/mac/Sandbox.mm: On Darwin, sandboxing |
171 | # support is only available when the toolkit is cairo-cocoa. | | 171 | # support is only available when the toolkit is cairo-cocoa. |
172 | CONFIGURE_ARGS.Darwin+= --disable-sandbox | | 172 | CONFIGURE_ARGS.Darwin+= --disable-sandbox |
173 | | | 173 | |
174 | # See ${WRKSRC}/configure.in: It tries to use MacOS X 10.6 SDK by | | 174 | # See ${WRKSRC}/configure.in: It tries to use MacOS X 10.6 SDK by |
175 | # default, which is not always possible. | | 175 | # default, which is not always possible. |
176 | .if !empty(MACHINE_PLATFORM:MDarwin-8.*-*) | | 176 | .if !empty(MACHINE_PLATFORM:MDarwin-8.*-*) |
177 | CONFIGURE_ARGS+= --enable-macos-target=10.4 | | 177 | CONFIGURE_ARGS+= --enable-macos-target=10.4 |
178 | .elif !empty(MACHINE_PLATFORM:MDarwin-9.*-*) | | 178 | .elif !empty(MACHINE_PLATFORM:MDarwin-9.*-*) |
179 | CONFIGURE_ARGS+= --enable-macos-target=10.5 | | 179 | CONFIGURE_ARGS+= --enable-macos-target=10.5 |
180 | .endif | | 180 | .endif |
181 | | | 181 | |
182 | # Makefiles sometimes call "rm -f" without more arguments. Kludge around ... | | 182 | # Makefiles sometimes call "rm -f" without more arguments. Kludge around ... |
183 | .PHONY: create-rm-wrapper | | 183 | .PHONY: create-rm-wrapper |
184 | pre-configure: create-rm-wrapper | | 184 | pre-configure: create-rm-wrapper |
185 | create-rm-wrapper: | | 185 | create-rm-wrapper: |
186 | printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \ | | 186 | printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \ |
187 | ${WRAPPER_DIR}/bin/rm | | 187 | ${WRAPPER_DIR}/bin/rm |
188 | chmod +x ${WRAPPER_DIR}/bin/rm | | 188 | chmod +x ${WRAPPER_DIR}/bin/rm |
189 | | | 189 | |
190 | # The configure test for __thread succeeds, but later we end up with: | | 190 | # The configure test for __thread succeeds, but later we end up with: |
191 | # dist/bin/libxul.so: undefined reference to `__tls_get_addr' | | 191 | # dist/bin/libxul.so: undefined reference to `__tls_get_addr' |
192 | CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no | | 192 | CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no |
193 | # In unspecified case, clock_gettime(CLOCK_MONOTONIC, ...) fails. | | 193 | # In unspecified case, clock_gettime(CLOCK_MONOTONIC, ...) fails. |
194 | CONFIGURE_ENV.NetBSD+= ac_cv_clock_monotonic= | | 194 | CONFIGURE_ENV.NetBSD+= ac_cv_clock_monotonic= |
195 | | | 195 | |
196 | .if ${OPSYS} == "SunOS" | | 196 | .if ${OPSYS} == "SunOS" |
197 | # native libbz2.so hides BZ2_crc32Table | | 197 | # native libbz2.so hides BZ2_crc32Table |
198 | PREFER.bzip2?= pkgsrc | | 198 | PREFER.bzip2?= pkgsrc |
199 | .endif | | 199 | .endif |
200 | | | 200 | |
201 | .if ${OPSYS} == "OpenBSD" | | 201 | .if ${OPSYS} == "OpenBSD" |
202 | PLIST_SUBST+= DLL_SUFFIX=".so.1.0" | | 202 | PLIST_SUBST+= DLL_SUFFIX=".so.1.0" |
203 | .elif ${OPSYS} == "Darwin" | | 203 | .elif ${OPSYS} == "Darwin" |
204 | PLIST_SUBST+= DLL_SUFFIX=".dylib" | | 204 | PLIST_SUBST+= DLL_SUFFIX=".dylib" |
205 | .else | | 205 | .else |
206 | PLIST_SUBST+= DLL_SUFFIX=".so" | | 206 | PLIST_SUBST+= DLL_SUFFIX=".so" |
207 | .endif | | 207 | .endif |
208 | | | 208 | |
209 | .include "../../archivers/bzip2/buildlink3.mk" | | 209 | .include "../../archivers/bzip2/buildlink3.mk" |
210 | BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1 | | 210 | BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1 |
211 | .include "../../devel/libevent/buildlink3.mk" | | 211 | .include "../../devel/libevent/buildlink3.mk" |
212 | .include "../../devel/libffi/buildlink3.mk" | | 212 | .include "../../devel/libffi/buildlink3.mk" |
213 | BUILDLINK_API_DEPENDS.nspr+= nspr>=4.19 | | 213 | BUILDLINK_API_DEPENDS.nspr+= nspr>=4.19 |
214 | .include "../../devel/nspr/buildlink3.mk" | | 214 | .include "../../devel/nspr/buildlink3.mk" |
215 | .include "../../textproc/icu/buildlink3.mk" | | 215 | .include "../../textproc/icu/buildlink3.mk" |
216 | BUILDLINK_API_DEPENDS.nss+= nss>=3.40.1 | | 216 | BUILDLINK_API_DEPENDS.nss+= nss>=3.40.1 |
217 | .include "../../devel/nss/buildlink3.mk" | | 217 | .include "../../devel/nss/buildlink3.mk" |
218 | .include "../../devel/zlib/buildlink3.mk" | | 218 | .include "../../devel/zlib/buildlink3.mk" |
219 | #.include "../../mk/jpeg.buildlink3.mk" | | 219 | #.include "../../mk/jpeg.buildlink3.mk" |
220 | .include "../../graphics/MesaLib/buildlink3.mk" | | 220 | .include "../../graphics/MesaLib/buildlink3.mk" |
221 | #BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.2nb4 | | 221 | #BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.2nb4 |
222 | #.include "../../graphics/cairo/buildlink3.mk" | | 222 | #.include "../../graphics/cairo/buildlink3.mk" |
| | | 223 | BUILDLINK_API_DEPENDS.libwebp+= libwebp>=1.0.1 |
223 | .include "../../graphics/libwebp/buildlink3.mk" | | 224 | .include "../../graphics/libwebp/buildlink3.mk" |
224 | BUILDLINK_DEPMETHOD.clang= build | | 225 | BUILDLINK_DEPMETHOD.clang= build |
225 | BUILDLINK_API_DEPENDS.clang+= clang>=6.0.1nb1 | | 226 | BUILDLINK_API_DEPENDS.clang+= clang>=6.0.1nb1 |
226 | .include "../../lang/clang/buildlink3.mk" | | 227 | .include "../../lang/clang/buildlink3.mk" |
227 | BUILDLINK_DEPMETHOD.rust= build | | 228 | BUILDLINK_DEPMETHOD.rust= build |
228 | BUILDLINK_API_DEPENDS.rust+= rust>=1.24.0 | | 229 | BUILDLINK_API_DEPENDS.rust+= rust>=1.24.0 |
229 | .include "../../lang/rust/buildlink3.mk" | | 230 | .include "../../lang/rust/buildlink3.mk" |
230 | BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.3.0 | | 231 | BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.3.0 |
231 | .include "../../multimedia/libvpx/buildlink3.mk" | | 232 | .include "../../multimedia/libvpx/buildlink3.mk" |
232 | .include "../../net/libIDL/buildlink3.mk" | | 233 | .include "../../net/libIDL/buildlink3.mk" |
233 | # textproc/hunspell 1.3 is too old | | 234 | # textproc/hunspell 1.3 is too old |
234 | #.include "../../textproc/hunspell/buildlink3.mk" | | 235 | #.include "../../textproc/hunspell/buildlink3.mk" |
235 | .include "../../multimedia/ffmpeg4/buildlink3.mk" | | 236 | .include "../../multimedia/ffmpeg4/buildlink3.mk" |
236 | .include "../../x11/libXt/buildlink3.mk" | | 237 | .include "../../x11/libXt/buildlink3.mk" |
237 | BUILDLINK_API_DEPENDS.pixman+= pixman>=0.25.2 | | 238 | BUILDLINK_API_DEPENDS.pixman+= pixman>=0.25.2 |
238 | .include "../../x11/pixman/buildlink3.mk" | | 239 | .include "../../x11/pixman/buildlink3.mk" |
239 | .include "../../x11/gtk2/buildlink3.mk" | | 240 | .include "../../x11/gtk2/buildlink3.mk" |
240 | .include "../../x11/gtk3/buildlink3.mk" | | 241 | .include "../../x11/gtk3/buildlink3.mk" |
241 | .include "../../lang/python/pyversion.mk" | | 242 | .include "../../lang/python/pyversion.mk" |