| @@ -1,237 +1,236 @@ | | | @@ -1,237 +1,236 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.22 2023/12/29 17:24:13 he Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.23 2024/02/10 12:44:05 ryoon 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/seamonkey/Makefile | | 5 | # used by www/seamonkey/Makefile |
6 | | | 6 | |
7 | HAS_CONFIGURE= yes | | 7 | HAS_CONFIGURE= yes |
8 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 8 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
9 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip | | 9 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip |
10 | USE_LANGUAGES+= c99 c++ | | 10 | USE_LANGUAGES+= c99 c++ |
11 | UNLIMIT_RESOURCES+= datasize virtualsize | | 11 | UNLIMIT_RESOURCES+= datasize virtualsize |
12 | | | 12 | |
13 | GCC_REQD+= 4.9 | | 13 | GCC_REQD+= 4.9 |
14 | | | 14 | |
15 | .include "../../mk/bsd.prefs.mk" | | 15 | .include "../../mk/bsd.prefs.mk" |
16 | | | 16 | |
17 | # Python 2.7 and Python 3.8 or later are required simultaneously. | | 17 | # Python 2.7 and Python 3.8 or later are required simultaneously. |
18 | PYTHON_VERSIONS_ACCEPTED= 27 | | 18 | PYTHON_VERSIONS_ACCEPTED= 27 |
19 | PYTHON_FOR_BUILD_ONLY= tool | | 19 | PYTHON_FOR_BUILD_ONLY= tool |
20 | # Include pyversion.mk after setting PYTHON_* but before testing the default. | | 20 | # Include pyversion.mk after setting PYTHON_* but before testing the default. |
21 | .include "../../lang/python/batteries-included.mk" | | 21 | .include "../../lang/python/batteries-included.mk" |
22 | .include "../../lang/python/pyversion.mk" | | 22 | .include "../../lang/python/pyversion.mk" |
23 | # lang/python311 is not acceptable. | | 23 | # lang/python311 is not acceptable. |
24 | .if !empty(PYTHON_VERSION_DEFAULT:M3[89]) || !empty(PYTHON_VERSION_DEFAULT:M310) | | 24 | .if !empty(PYTHON_VERSION_DEFAULT:M3[89]) || !empty(PYTHON_VERSION_DEFAULT:M310) |
25 | TOOL_DEPENDS+= python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT} | | 25 | TOOL_DEPENDS+= python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT} |
26 | ALL_ENV+= PYTHON3=${PREFIX}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./} | | 26 | ALL_ENV+= PYTHON3=${PREFIX}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./} |
27 | .else | | 27 | .else |
28 | TOOL_DEPENDS+= python39-[0-9]*:../../lang/python39 | | 28 | TOOL_DEPENDS+= python39-[0-9]*:../../lang/python39 |
29 | ALL_ENV+= PYTHON3=${PREFIX}/bin/python3.9 | | 29 | ALL_ENV+= PYTHON3=${PREFIX}/bin/python3.9 |
30 | .endif | | 30 | .endif |
31 | | | 31 | |
32 | TOOL_DEPENDS+= cbindgen>=0.24.3:../../devel/cbindgen | | 32 | TOOL_DEPENDS+= cbindgen>=0.24.3:../../devel/cbindgen |
33 | | | 33 | |
34 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 34 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
35 | TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm | | 35 | TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm |
36 | | | 36 | |
37 | # Enable Google widevine CDM. This requires external libwidevinecdm.so. | | 37 | # Enable Google widevine CDM. This requires external libwidevinecdm.so. |
38 | #CONFIGURE_ARGS+= --enable-eme=widevine | | 38 | #CONFIGURE_ARGS+= --enable-eme=widevine |
39 | .endif | | 39 | .endif |
40 | | | 40 | |
41 | # This is to work around build failures where an upstream configuration script | | 41 | # This is to work around build failures where an upstream configuration script |
42 | # is confused by having more than one approximate match to MACHINE_GNU_PLATFORM | | 42 | # is confused by having more than one approximate match to MACHINE_GNU_PLATFORM |
43 | # "i486" when attempting to select the Rust compiler target. | | 43 | # "i486" when attempting to select the Rust compiler target. |
44 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) | | 44 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) |
45 | CONFIGURE_ARGS+= --target=i586-unknown-netbsd | | 45 | CONFIGURE_ARGS+= --target=i586-unknown-netbsd |
46 | CONFIGURE_ARGS+= --host=i586-unknown-netbsd | | 46 | CONFIGURE_ARGS+= --host=i586-unknown-netbsd |
47 | .else | | 47 | .else |
48 | CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM} | | 48 | CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM} |
49 | CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} | | 49 | CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} |
50 | .endif | | 50 | .endif |
51 | | | 51 | |
52 | CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ | | 52 | CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ |
53 | -isystem${X11BASE}/include/pixman-1" | | 53 | -isystem${X11BASE}/include/pixman-1" |
54 | # with files/*.rs for Rust 1.39.0 | | 54 | # with files/*.rs for Rust 1.39.0 |
55 | CONFIGURE_ARGS+= --disable-stylo-build-bindgen | | 55 | CONFIGURE_ARGS+= --disable-stylo-build-bindgen |
56 | | | 56 | |
57 | test: | | 57 | test: |
58 | cd ${WRKSRC}/${OBJDIR}/dist/bin && \ | | 58 | cd ${WRKSRC}/${OBJDIR}/dist/bin && \ |
59 | ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey | | 59 | ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey |
60 | | | 60 | |
61 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. | | 61 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. |
62 | .if ${OPSYS} == "OpenBSD" | | 62 | .if ${OPSYS} == "OpenBSD" |
63 | TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} | | 63 | TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} |
64 | USE_TOOLS+= bsdtar | | 64 | USE_TOOLS+= bsdtar |
65 | .endif | | 65 | .endif |
66 | .if ${MACHINE_ARCH} == "i386" | | 66 | .if ${MACHINE_ARCH} == "i386" |
67 | # This is required for SSE2 code under i386. | | 67 | # This is required for SSE2 code under i386. |
68 | CXXFLAGS+= -mstackrealign | | | |
69 | CFLAGS+= -mstackrealign | | 68 | CFLAGS+= -mstackrealign |
70 | .endif | | 69 | .endif |
71 | # As of 2.53.16, packed_simd_2 is for Rust nightly only. | | 70 | # As of 2.53.16, packed_simd_2 is for Rust nightly only. |
72 | CONFIGURE_ARGS+= --disable-rust-simd | | 71 | CONFIGURE_ARGS+= --disable-rust-simd |
73 | | | 72 | |
74 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh | | 73 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh |
75 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh | | 74 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh |
76 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}js/src/tests/update-test262.sh | | 75 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}js/src/tests/update-test262.sh |
77 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}intl/icu/source/configure | | 76 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}intl/icu/source/configure |
78 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh | | 77 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh |
79 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh | | 78 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh |
80 | | | 79 | |
81 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3 | | 80 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3 |
82 | .if ${OPSYS} != "SunOS" | | 81 | .if ${OPSYS} != "SunOS" |
83 | CONFIGURE_ARGS+= --enable-pie | | 82 | CONFIGURE_ARGS+= --enable-pie |
84 | .endif | | 83 | .endif |
85 | CONFIGURE_ARGS+= --disable-tests | | 84 | CONFIGURE_ARGS+= --disable-tests |
86 | # Mozilla Bug 1432751 | | 85 | # Mozilla Bug 1432751 |
87 | #CONFIGURE_ARGS+= --enable-system-cairo | | 86 | #CONFIGURE_ARGS+= --enable-system-cairo |
88 | CONFIGURE_ARGS+= --enable-system-pixman | | 87 | CONFIGURE_ARGS+= --enable-system-pixman |
89 | # too new to build with webrtc? | | 88 | # too new to build with webrtc? |
90 | #CONFIGURE_ARGS+= --with-system-libvpx | | 89 | #CONFIGURE_ARGS+= --with-system-libvpx |
91 | # textproc/hunspell 1.3 is too old | | 90 | # textproc/hunspell 1.3 is too old |
92 | #CONFIGURE_ARGS+= --enable-system-hunspell | | 91 | #CONFIGURE_ARGS+= --enable-system-hunspell |
93 | CONFIGURE_ARGS+= --enable-system-ffi | | 92 | CONFIGURE_ARGS+= --enable-system-ffi |
94 | CONFIGURE_ARGS+= --with-system-icu | | 93 | CONFIGURE_ARGS+= --with-system-icu |
95 | CONFIGURE_ARGS+= --with-system-nss | | 94 | CONFIGURE_ARGS+= --with-system-nss |
96 | CONFIGURE_ARGS+= --with-system-nspr | | 95 | CONFIGURE_ARGS+= --with-system-nspr |
97 | #CONFIGURE_ARGS+= --with-system-jpeg | | 96 | #CONFIGURE_ARGS+= --with-system-jpeg |
98 | CONFIGURE_ARGS+= --with-system-webp | | 97 | CONFIGURE_ARGS+= --with-system-webp |
99 | CONFIGURE_ARGS+= --with-system-zlib | | 98 | CONFIGURE_ARGS+= --with-system-zlib |
100 | CONFIGURE_ARGS+= --with-system-bz2 | | 99 | CONFIGURE_ARGS+= --with-system-bz2 |
101 | #CONFIGURE_ARGS+= --with-system-libevent=${BUILDLINK_PREFIX.libevent} | | 100 | #CONFIGURE_ARGS+= --with-system-libevent=${BUILDLINK_PREFIX.libevent} |
102 | CONFIGURE_ARGS+= --disable-crashreporter | | 101 | CONFIGURE_ARGS+= --disable-crashreporter |
103 | CONFIGURE_ARGS+= --disable-necko-wifi | | 102 | CONFIGURE_ARGS+= --disable-necko-wifi |
104 | CONFIGURE_ARGS+= --enable-chrome-format=omni | | 103 | CONFIGURE_ARGS+= --enable-chrome-format=omni |
105 | #CONFIGURE_ARGS+= --disable-libjpeg-turbo | | 104 | #CONFIGURE_ARGS+= --disable-libjpeg-turbo |
106 | | | 105 | |
107 | CONFIGURE_ARGS+= --disable-gconf | | 106 | CONFIGURE_ARGS+= --disable-gconf |
108 | #CONFIGURE_ARGS+= --enable-readline | | 107 | #CONFIGURE_ARGS+= --enable-readline |
109 | CONFIGURE_ARGS+= --disable-icf | | 108 | CONFIGURE_ARGS+= --disable-icf |
110 | CONFIGURE_ARGS+= --disable-updater | | 109 | CONFIGURE_ARGS+= --disable-updater |
111 | | | 110 | |
112 | SUBST_CLASSES+= prefix | | 111 | SUBST_CLASSES+= prefix |
113 | SUBST_STAGE.prefix= pre-configure | | 112 | SUBST_STAGE.prefix= pre-configure |
114 | SUBST_MESSAGE.prefix= Setting PREFIX | | 113 | SUBST_MESSAGE.prefix= Setting PREFIX |
115 | SUBST_FILES.prefix+= ${MOZILLA_DIR}xpcom/build/BinaryPath.h | | 114 | SUBST_FILES.prefix+= ${MOZILLA_DIR}xpcom/build/BinaryPath.h |
116 | SUBST_VARS.prefix+= PREFIX | | 115 | SUBST_VARS.prefix+= PREFIX |
117 | | | 116 | |
118 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess | | 117 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess |
119 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess | | 118 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess |
120 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess | | 119 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess |
121 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess | | 120 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess |
122 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub | | 121 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub |
123 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub | | 122 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub |
124 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub | | 123 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub |
125 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub | | 124 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub |
126 | | | 125 | |
127 | CONFIGURE_ENV+= CPP=${CPP:Q} | | 126 | CONFIGURE_ENV+= CPP=${CPP:Q} |
128 | ALL_ENV+= SHELL=${CONFIG_SHELL:Q} | | 127 | ALL_ENV+= SHELL=${CONFIG_SHELL:Q} |
129 | | | 128 | |
130 | # Build outside ${WRKSRC} | | 129 | # Build outside ${WRKSRC} |
131 | # Try to avoid conflict with config/makefiles/xpidl/Makefile.in | | 130 | # Try to avoid conflict with config/makefiles/xpidl/Makefile.in |
132 | OBJDIR= ${WRKDIR}/build | | 131 | OBJDIR= ${WRKDIR}/build |
133 | CONFIGURE_DIRS= ${OBJDIR} | | 132 | CONFIGURE_DIRS= ${OBJDIR} |
134 | CONFIGURE_SCRIPT= ${WRKSRC}/configure | | 133 | CONFIGURE_SCRIPT= ${WRKSRC}/configure |
135 | | | 134 | |
136 | PLIST_VARS+= sps vorbis tremor glskia throwwrapper mozglue avx86 | | 135 | PLIST_VARS+= sps vorbis tremor glskia throwwrapper mozglue avx86 |
137 | | | 136 | |
138 | .include "../../mk/endian.mk" | | 137 | .include "../../mk/endian.mk" |
139 | .if ${MACHINE_ENDIAN} == "little" | | 138 | .if ${MACHINE_ENDIAN} == "little" |
140 | PLIST.glskia= yes | | 139 | PLIST.glskia= yes |
141 | .endif | | 140 | .endif |
142 | | | 141 | |
143 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ | | 142 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ |
144 | ${MACHINE_ARCH} == "aarch64" | | 143 | ${MACHINE_ARCH} == "aarch64" |
145 | PLIST.avx86= yes # see media/libav/README_MOZILLA | | 144 | PLIST.avx86= yes # see media/libav/README_MOZILLA |
146 | .endif | | 145 | .endif |
147 | | | 146 | |
148 | .if ${MACHINE_ARCH} != "sparc64" | | 147 | .if ${MACHINE_ARCH} != "sparc64" |
149 | # 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 |
150 | # 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. |
151 | # 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 |
152 | PLIST.throwwrapper= yes | | 151 | PLIST.throwwrapper= yes |
153 | .endif | | 152 | .endif |
154 | | | 153 | |
155 | .if !empty(MACHINE_PLATFORM:S/i386/x86/:MLinux-*-x86*) | | 154 | .if !empty(MACHINE_PLATFORM:S/i386/x86/:MLinux-*-x86*) |
156 | PLIST.sps= yes | | 155 | PLIST.sps= yes |
157 | .endif | | 156 | .endif |
158 | | | 157 | |
159 | .if !empty(MACHINE_PLATFORM:MLinux-*-arm*) | | 158 | .if !empty(MACHINE_PLATFORM:MLinux-*-arm*) |
160 | PLIST.tremor= yes | | 159 | PLIST.tremor= yes |
161 | .else | | 160 | .else |
162 | PLIST.vorbis= yes | | 161 | PLIST.vorbis= yes |
163 | .endif | | 162 | .endif |
164 | | | 163 | |
165 | # See ${WRKSRC}/mozglue/build/moz.build: libmozglue is built and | | 164 | # See ${WRKSRC}/mozglue/build/moz.build: libmozglue is built and |
166 | # installed as a shared library on these platforms. | | 165 | # installed as a shared library on these platforms. |
167 | .if ${OPSYS} == "Cygwin" || ${OPSYS} == "Darwin" # or Android | | 166 | .if ${OPSYS} == "Cygwin" || ${OPSYS} == "Darwin" # or Android |
168 | PLIST.mozglue= yes | | 167 | PLIST.mozglue= yes |
169 | .endif | | 168 | .endif |
170 | | | 169 | |
171 | # See ${WRKSRC}/security/sandbox/mac/Sandbox.mm: On Darwin, sandboxing | | 170 | # See ${WRKSRC}/security/sandbox/mac/Sandbox.mm: On Darwin, sandboxing |
172 | # support is only available when the toolkit is cairo-cocoa. | | 171 | # support is only available when the toolkit is cairo-cocoa. |
173 | CONFIGURE_ARGS.Darwin+= --disable-sandbox | | 172 | CONFIGURE_ARGS.Darwin+= --disable-sandbox |
174 | | | 173 | |
175 | # 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 |
176 | # default, which is not always possible. | | 175 | # default, which is not always possible. |
177 | .if !empty(MACHINE_PLATFORM:MDarwin-8.*-*) | | 176 | .if !empty(MACHINE_PLATFORM:MDarwin-8.*-*) |
178 | CONFIGURE_ARGS+= --enable-macos-target=10.4 | | 177 | CONFIGURE_ARGS+= --enable-macos-target=10.4 |
179 | .elif !empty(MACHINE_PLATFORM:MDarwin-9.*-*) | | 178 | .elif !empty(MACHINE_PLATFORM:MDarwin-9.*-*) |
180 | CONFIGURE_ARGS+= --enable-macos-target=10.5 | | 179 | CONFIGURE_ARGS+= --enable-macos-target=10.5 |
181 | .endif | | 180 | .endif |
182 | | | 181 | |
183 | # Makefiles sometimes call "rm -f" without more arguments. Kludge around ... | | 182 | # Makefiles sometimes call "rm -f" without more arguments. Kludge around ... |
184 | .PHONY: create-rm-wrapper | | 183 | .PHONY: create-rm-wrapper |
185 | pre-configure: create-rm-wrapper | | 184 | pre-configure: create-rm-wrapper |
186 | create-rm-wrapper: | | 185 | create-rm-wrapper: |
187 | printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \ | | 186 | printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \ |
188 | ${WRAPPER_DIR}/bin/rm | | 187 | ${WRAPPER_DIR}/bin/rm |
189 | chmod +x ${WRAPPER_DIR}/bin/rm | | 188 | chmod +x ${WRAPPER_DIR}/bin/rm |
190 | | | 189 | |
191 | # 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: |
192 | # dist/bin/libxul.so: undefined reference to `__tls_get_addr' | | 191 | # dist/bin/libxul.so: undefined reference to `__tls_get_addr' |
193 | CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no | | 192 | CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no |
194 | | | 193 | |
195 | .if ${OPSYS} == "SunOS" | | 194 | .if ${OPSYS} == "SunOS" |
196 | # native libbz2.so hides BZ2_crc32Table | | 195 | # native libbz2.so hides BZ2_crc32Table |
197 | PREFER.bzip2?= pkgsrc | | 196 | PREFER.bzip2?= pkgsrc |
198 | .endif | | 197 | .endif |
199 | | | 198 | |
200 | .if ${OPSYS} == "OpenBSD" | | 199 | .if ${OPSYS} == "OpenBSD" |
201 | PLIST_SUBST+= DLL_SUFFIX=".so.1.0" | | 200 | PLIST_SUBST+= DLL_SUFFIX=".so.1.0" |
202 | .elif ${OPSYS} == "Darwin" | | 201 | .elif ${OPSYS} == "Darwin" |
203 | PLIST_SUBST+= DLL_SUFFIX=".dylib" | | 202 | PLIST_SUBST+= DLL_SUFFIX=".dylib" |
204 | .else | | 203 | .else |
205 | PLIST_SUBST+= DLL_SUFFIX=".so" | | 204 | PLIST_SUBST+= DLL_SUFFIX=".so" |
206 | .endif | | 205 | .endif |
207 | | | 206 | |
208 | .include "../../mk/atomic64.mk" | | 207 | .include "../../mk/atomic64.mk" |
209 | .include "../../archivers/bzip2/buildlink3.mk" | | 208 | .include "../../archivers/bzip2/buildlink3.mk" |
210 | BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1 | | 209 | BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1 |
211 | .include "../../devel/libevent/buildlink3.mk" | | 210 | .include "../../devel/libevent/buildlink3.mk" |
212 | .include "../../devel/libffi/buildlink3.mk" | | 211 | .include "../../devel/libffi/buildlink3.mk" |
213 | BUILDLINK_API_DEPENDS.nspr+= nspr>=4.18 | | 212 | BUILDLINK_API_DEPENDS.nspr+= nspr>=4.18 |
214 | .include "../../devel/nspr/buildlink3.mk" | | 213 | .include "../../devel/nspr/buildlink3.mk" |
215 | .include "../../textproc/icu/buildlink3.mk" | | 214 | .include "../../textproc/icu/buildlink3.mk" |
216 | BUILDLINK_API_DEPENDS.nss+= nss>=3.35 | | 215 | BUILDLINK_API_DEPENDS.nss+= nss>=3.35 |
217 | .include "../../devel/nss/buildlink3.mk" | | 216 | .include "../../devel/nss/buildlink3.mk" |
218 | .include "../../devel/zlib/buildlink3.mk" | | 217 | .include "../../devel/zlib/buildlink3.mk" |
219 | #.include "../../mk/jpeg.buildlink3.mk" | | 218 | #.include "../../mk/jpeg.buildlink3.mk" |
220 | .include "../../graphics/libwebp/buildlink3.mk" | | 219 | .include "../../graphics/libwebp/buildlink3.mk" |
221 | .include "../../graphics/MesaLib/buildlink3.mk" | | 220 | .include "../../graphics/MesaLib/buildlink3.mk" |
222 | #BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.2nb4 | | 221 | #BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.2nb4 |
223 | #.include "../../graphics/cairo/buildlink3.mk" | | 222 | #.include "../../graphics/cairo/buildlink3.mk" |
224 | BUILDLINK_DEPMETHOD.clang= build | | 223 | BUILDLINK_DEPMETHOD.clang= build |
225 | .include "../../lang/clang/buildlink3.mk" | | 224 | .include "../../lang/clang/buildlink3.mk" |
226 | RUST_REQ= 1.23.0 | | 225 | RUST_REQ= 1.23.0 |
227 | .include "../../lang/rust/rust.mk" | | 226 | .include "../../lang/rust/rust.mk" |
228 | #BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.3.0 | | 227 | #BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.3.0 |
229 | #.include "../../multimedia/libvpx/buildlink3.mk" | | 228 | #.include "../../multimedia/libvpx/buildlink3.mk" |
230 | .include "../../net/libIDL/buildlink3.mk" | | 229 | .include "../../net/libIDL/buildlink3.mk" |
231 | # textproc/hunspell 1.3 is too old | | 230 | # textproc/hunspell 1.3 is too old |
232 | #.include "../../textproc/hunspell/buildlink3.mk" | | 231 | #.include "../../textproc/hunspell/buildlink3.mk" |
233 | .include "../../multimedia/ffmpeg4/buildlink3.mk" | | 232 | .include "../../multimedia/ffmpeg4/buildlink3.mk" |
234 | .include "../../x11/libXt/buildlink3.mk" | | 233 | .include "../../x11/libXt/buildlink3.mk" |
235 | BUILDLINK_API_DEPENDS.pixman+= pixman>=0.25.2 | | 234 | BUILDLINK_API_DEPENDS.pixman+= pixman>=0.25.2 |
236 | .include "../../x11/pixman/buildlink3.mk" | | 235 | .include "../../x11/pixman/buildlink3.mk" |
237 | .include "../../x11/gtk3/buildlink3.mk" | | 236 | .include "../../x11/gtk3/buildlink3.mk" |