2020-08-25 16:35:24 +02:00
|
|
|
# $NetBSD: mozilla-common.mk,v 1.178 2020/08/25 14:35:24 ryoon Exp $
|
2013-05-23 15:12:13 +02:00
|
|
|
#
|
|
|
|
# common Makefile fragment for mozilla packages based on gecko 2.0.
|
|
|
|
#
|
|
|
|
# used by www/firefox/Makefile
|
|
|
|
|
2018-12-23 02:11:26 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2019-05-02 03:16:28 +02:00
|
|
|
# Python 2.7 and Python 3.6 or later are required simultaneously.
|
2018-06-29 14:51:55 +02:00
|
|
|
PYTHON_VERSIONS_ACCEPTED= 27
|
|
|
|
PYTHON_FOR_BUILD_ONLY= tool
|
2019-10-18 12:12:08 +02:00
|
|
|
.if !empty(PYTHON_VERSION_DEFAULT:M3[6789])
|
2019-11-04 23:09:50 +01:00
|
|
|
TOOL_DEPENDS+= python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT}
|
|
|
|
ALL_ENV+= PYTHON3=${LOCALBASE}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./}
|
2018-06-29 14:51:55 +02:00
|
|
|
.else
|
2019-11-04 23:09:50 +01:00
|
|
|
TOOL_DEPENDS+= python37-[0-9]*:../../lang/python37
|
|
|
|
ALL_ENV+= PYTHON3=${LOCALBASE}/bin/python3.7
|
2018-06-29 14:51:55 +02:00
|
|
|
.endif
|
|
|
|
|
2018-03-21 17:06:29 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
|
|
USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip
|
2020-03-30 21:46:01 +02:00
|
|
|
UNLIMIT_RESOURCES+= datasize virtualsize
|
2018-03-21 17:06:29 +01:00
|
|
|
|
2020-04-11 02:30:18 +02:00
|
|
|
# firefox needs a compiler that supports gnu++14 and gnu++17.
|
|
|
|
# However, passing --std=gnu++17 (from wrappers, as a result of
|
|
|
|
# USE_LANGUAGES), results in problems for some Rust modules (as of
|
|
|
|
# 74.0). Therefore, do not declare the languages that are actually
|
|
|
|
# needed.
|
|
|
|
# \todo In pkgsrc infrastructure, separate the concept of needing a
|
|
|
|
# compiler that can implement a standard, and the concept of forcibly
|
|
|
|
# adding a --std flag. (The build system of a package should be
|
|
|
|
# setting the --std flag that is needed, rather than relying on the
|
|
|
|
# defaults of a particular compiler version.)
|
|
|
|
# NB: Even when building firefox with PKGSRC_COMPILER=gcc, the package
|
|
|
|
# will depend on and use clang, doing so outside the normal compiler
|
|
|
|
# selection framework.
|
|
|
|
USE_LANGUAGES+= c99 c++
|
|
|
|
|
2020-07-31 03:26:43 +02:00
|
|
|
TOOL_DEPENDS+= cbindgen>=0.14.3:../../devel/cbindgen
|
2018-11-07 13:55:11 +01:00
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
|
|
|
CONFIGURE_ARGS+= --disable-nodejs
|
|
|
|
.else
|
2018-11-04 01:38:44 +01:00
|
|
|
TOOL_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs
|
2018-11-07 13:55:11 +01:00
|
|
|
.endif
|
2018-11-04 01:38:44 +01:00
|
|
|
|
2020-04-09 16:01:26 +02:00
|
|
|
# Depend on Python3 sqlite3 module.
|
|
|
|
.if !empty(PYTHON_VERSION_DEFAULT:M3[6789])
|
|
|
|
BUILD_DEPENDS+= py${PYTHON_VERSION_DEFAULT}-sqlite3-[0-9]*:../../databases/py-sqlite3
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= py37-sqlite3-[0-9]*:../../databases/py-sqlite3
|
|
|
|
.endif
|
2015-11-08 01:46:22 +01:00
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
2020-05-15 08:59:25 +02:00
|
|
|
TOOL_DEPENDS+= nasm>=2.14:../../devel/nasm
|
2020-05-07 12:14:16 +02:00
|
|
|
TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm
|
2015-11-08 01:46:22 +01:00
|
|
|
.endif
|
|
|
|
|
2018-01-24 17:52:08 +01:00
|
|
|
# For rustc/cargo detection
|
2020-03-12 20:34:56 +01:00
|
|
|
CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM}
|
|
|
|
CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM}
|
2013-05-23 15:12:13 +02:00
|
|
|
|
2017-09-30 07:34:11 +02:00
|
|
|
CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \
|
|
|
|
-isystem${X11BASE}/include/pixman-1"
|
|
|
|
|
2015-04-12 11:02:39 +02:00
|
|
|
test:
|
|
|
|
cd ${WRKSRC}/${OBJDIR}/dist/bin && \
|
|
|
|
./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey
|
|
|
|
|
2014-05-05 07:04:46 +02:00
|
|
|
# tar(1) of OpenBSD 5.5 has no --exclude command line option.
|
|
|
|
.if ${OPSYS} == "OpenBSD"
|
2015-11-25 13:54:07 +01:00
|
|
|
TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar}
|
2014-05-05 07:04:46 +02:00
|
|
|
USE_TOOLS+= bsdtar
|
|
|
|
.endif
|
2014-10-18 19:56:35 +02:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2013-08-25 03:41:08 +02:00
|
|
|
# Fix for PR pkg/48152.
|
2015-09-29 17:22:07 +02:00
|
|
|
CXXFLAGS+= -march=i586
|
2015-03-17 04:19:08 +01:00
|
|
|
# This is required for SSE2 code under i386.
|
2015-09-25 00:36:27 +02:00
|
|
|
CXXFLAGS+= -mstackrealign
|
2013-05-23 15:12:13 +02:00
|
|
|
.endif
|
|
|
|
|
2019-11-04 23:09:50 +01:00
|
|
|
CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh
|
|
|
|
CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh
|
|
|
|
CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}js/src/tests/update-test262.sh
|
|
|
|
CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}intl/icu/source/configure
|
|
|
|
CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh
|
|
|
|
CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh
|
|
|
|
#CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}modules/pdfium/update.sh
|
2013-05-23 15:12:13 +02:00
|
|
|
|
2017-12-10 01:45:09 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3
|
2018-11-04 01:38:44 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-release
|
2019-03-04 16:53:06 +01:00
|
|
|
# Disable Rust SIMD option to fix build with lang/rust-1.33.0
|
|
|
|
# This should be enabled later again.
|
|
|
|
#CONFIGURE_ARGS+= --enable-rust-simd
|
2013-08-07 14:17:54 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-tests
|
2018-03-17 01:59:02 +01:00
|
|
|
# Mozilla Bug 1432751
|
|
|
|
#CONFIGURE_ARGS+= --enable-system-cairo
|
2013-05-23 15:12:13 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-system-pixman
|
2019-03-15 13:52:42 +01:00
|
|
|
# webrtc option requires internal libvpx
|
|
|
|
#CONFIGURE_ARGS+= --with-system-libvpx
|
2013-05-23 15:12:13 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-system-ffi
|
2013-09-19 14:37:49 +02:00
|
|
|
CONFIGURE_ARGS+= --with-system-icu
|
2013-05-23 15:12:13 +02:00
|
|
|
CONFIGURE_ARGS+= --with-system-nss
|
|
|
|
CONFIGURE_ARGS+= --with-system-nspr
|
2018-11-04 01:38:44 +01:00
|
|
|
#CONFIGURE_ARGS+= --with-system-jpeg
|
2013-08-07 14:17:54 +02:00
|
|
|
CONFIGURE_ARGS+= --with-system-zlib
|
2013-05-23 15:12:13 +02:00
|
|
|
CONFIGURE_ARGS+= --with-system-libevent=${BUILDLINK_PREFIX.libevent}
|
|
|
|
CONFIGURE_ARGS+= --disable-crashreporter
|
|
|
|
CONFIGURE_ARGS+= --disable-necko-wifi
|
|
|
|
CONFIGURE_ARGS+= --enable-chrome-format=flat
|
2019-02-01 17:47:59 +01:00
|
|
|
CONFIGURE_ARGS+= --with-system-webp
|
2013-05-23 15:12:13 +02:00
|
|
|
|
2013-08-07 14:17:54 +02:00
|
|
|
#CONFIGURE_ARGS+= --enable-readline
|
2013-09-19 14:37:49 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-icf
|
2013-12-15 14:54:37 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-updater
|
2013-08-07 14:17:54 +02:00
|
|
|
|
Update to 69.0
* Use clang to compile all files. Mix of gcc and clang causes some errors in
Rust c++ command invocation (C++ header mismatches).
Changelog:
New
Enhanced Tracking Protection (ETP) rolls out stronger privacy protections:
The default standard setting for this feature now blocks third-party tracking cookies and cryptominers.
The optional strict setting blocks fingerprinters as well as the items blocked in the standard setting.
The Block Autoplay feature is enhanced to give users the option to block any video that automatically starts playing, not just those that automatically play with sound.
For our users in the US or using the en-US browser, we are shipping a new “New Tab” page experience that connects you to the best of Pocket’s content.
Support for the Web Authentication HmacSecret extension via Windows Hello now comes with this release, for versions of Windows 10 May 2019 or newer, enabling more passwordless experiences on the web.
Support for receiving multiple video codecs with this release makes it easier for WebRTC conferencing services to mix video from different clients.
For our users on Windows 10, you’ll see performance and UI improvements:
Firefox will give Windows hints to appropriately set content process priority levels, meaning more processor time spent on the tasks you're actively working on, and less processor time spent on things in the background (with the exception of video and audio playback).
For our existing Windows 10 users, you can easily find and launch Firefox from a shortcut on the Win10 taskbar.
For our users on macOS, battery life and download UI are both improved:
macOS users on dual-graphics-card machines (like MacBook Pro) will switch back to the low-power GPU more aggressively, saving battery life.
Finder on macOS now displays download progress for files being downloaded.
JIT support comes to ARM64 for improved performance of our JavaScript Optimizing JIT compiler.
Fixed
Various security fixes
Changed
As previously announced in the Plugin Roadmap for Firefox, the "Always Activate" option for Flash plugin content has been removed. Firefox will now always ask for user permission before activating Flash content on a website.
With the deprecation of Adobe Flash Player, there is no longer a need to identify users on 32-bit version of the Firefox browser on 64-bit version operating systems reducing user agent fingerprinting factors providing greater level of privacy to our users as well as improving the experience of downloading other apps.
Firefox no longer loads userChrome.css or userContent.css by default improving start-up performance. Users who wish to customize Firefox by using these files can set the toolkit.legacyUserProfileCustomizations.stylesheets preference to true to restore this ability.
Enterprise
For Enterprise system administrators that manage macOS computers, we begin shipping a Mozilla signed PKG installer to simplify your deployments.
Developer
For our mobile web developers, we have migrated remote debugging from the old WebIDE into a re-designed about:debugging, making debugging GeckoView on remote devices via USB rock solid.
The network panel will now show blocked resources to allow developers to best understand the impact of content blocking and ad blocking extensions given our ongoing expansion of Enhanced Tracking Protection to all users with this release.
The new event listener breakpoint feature allows developers to pause on a host of different event types, whether it be related to animations, DOM, media, mouse, touch, worker, and many other event types.
Firefox Developer Tools now offers an audit for the presence of text alternatives for non-text content, the a11y panel checks toolbar has been augmented to better help developers adhere to WCAG Guideline 1.1.
Security fixes:
#CVE-2019-11751: Malicious code execution through command line parameters
#CVE-2019-11746: Use-after-free while manipulating video
#CVE-2019-11744: XSS by breaking out of title and textarea elements using innerHTML
#CVE-2019-11742: Same-origin policy violation with SVG filters and canvas to steal cross-origin images
#CVE-2019-11736: File manipulation and privilege escalation in Mozilla Maintenance Service
#CVE-2019-11753: Privilege escalation with Mozilla Maintenance Service in custom Firefox installation location
#CVE-2019-11752: Use-after-free while extracting a key value in IndexedDB
#CVE-2019-9812: Sandbox escape through Firefox Sync
#CVE-2019-11741: Isolate addons.mozilla.org and accounts.firefox.com
#CVE-2019-11743: Cross-origin access to unload event attributes
#CVE-2019-11749: Camera information available without prompting using getUserMedia
#CVE-2019-5849: Out-of-bounds read in Skia
#CVE-2019-11750: Type confusion in Spidermonkey
#CVE-2019-11737: Content security policy directives ignore port and path if host is a wildcard
#CVE-2019-11738: Content security policy bypass through hash-based sources in directives
#CVE-2019-11747: 'Forget about this site' removes sites from pre-loaded HSTS list
#CVE-2019-11734: Memory safety bugs fixed in Firefox 69
#CVE-2019-11735: Memory safety bugs fixed in Firefox 69 and Firefox ESR 68.1
#CVE-2019-11740: Memory safety bugs fixed in Firefox 69, Firefox ESR 68.1, and Firefox ESR 60.9
2019-09-06 05:00:23 +02:00
|
|
|
#CONFIGURE_ARGS+= --with-libclang-path=${PREFIX}/lib
|
|
|
|
|
2013-05-23 15:12:13 +02:00
|
|
|
SUBST_CLASSES+= fix-paths
|
|
|
|
SUBST_STAGE.fix-paths= pre-configure
|
|
|
|
SUBST_MESSAGE.fix-paths= Fixing absolute paths.
|
|
|
|
SUBST_FILES.fix-paths+= ${MOZILLA_DIR}xpcom/io/nsAppFileLocationProvider.cpp
|
|
|
|
SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g'
|
|
|
|
|
|
|
|
CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess
|
|
|
|
CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess
|
|
|
|
CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess
|
|
|
|
CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess
|
|
|
|
CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub
|
|
|
|
CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub
|
|
|
|
CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub
|
|
|
|
CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub
|
|
|
|
|
2020-03-12 20:34:56 +01:00
|
|
|
CONFIGURE_ENV+= CPP=${CPP:Q}
|
2020-04-28 08:56:48 +02:00
|
|
|
ALL_ENV+= SHELL=${CONFIG_SHELL:Q}
|
2013-05-23 15:12:13 +02:00
|
|
|
|
2013-12-15 14:54:37 +01:00
|
|
|
# Build outside ${WRKSRC}
|
2014-06-22 10:56:08 +02:00
|
|
|
# Try to avoid conflict with config/makefiles/xpidl/Makefile.in
|
2013-12-15 14:54:37 +01:00
|
|
|
OBJDIR= ../build
|
|
|
|
CONFIGURE_DIRS= ${OBJDIR}
|
2013-12-26 14:12:05 +01:00
|
|
|
CONFIGURE_SCRIPT= ${WRKSRC}/configure
|
2013-12-15 14:54:37 +01:00
|
|
|
|
2019-02-26 13:14:12 +01:00
|
|
|
PLIST_VARS+= sps vorbis tremor glskia throwwrapper mozglue ffvpx
|
2013-08-29 16:14:34 +02:00
|
|
|
|
2013-09-21 22:35:46 +02:00
|
|
|
.include "../../mk/endian.mk"
|
2013-08-29 22:49:26 +02:00
|
|
|
.if ${MACHINE_ENDIAN} == "little"
|
2013-08-29 16:14:34 +02:00
|
|
|
PLIST.glskia= yes
|
|
|
|
.endif
|
2013-05-23 15:12:13 +02:00
|
|
|
|
2019-02-26 13:14:12 +01:00
|
|
|
.if ${MACHINE_ARCH} == "aarch64" || \
|
|
|
|
!empty(MACHINE_ARCH:M*arm*) || \
|
|
|
|
${MACHINE_ARCH} == "i386" || \
|
|
|
|
${MACHINE_ARCH} == "x86_64"
|
|
|
|
PLIST.ffvpx= yes # see media/ffvpx/ffvpxcommon.mozbuild
|
2016-12-06 09:14:22 +01:00
|
|
|
.endif
|
|
|
|
|
2013-08-29 20:48:25 +02:00
|
|
|
.if ${MACHINE_ARCH} != "sparc64"
|
|
|
|
# For some reasons the configure test for GCC bug 26905 still triggers on
|
|
|
|
# sparc64, which makes mozilla skip the installation of a few wrapper headers.
|
|
|
|
# Other archs end up with one additional file in the SDK headers
|
|
|
|
PLIST.throwwrapper= yes
|
|
|
|
.endif
|
|
|
|
|
2013-05-23 15:12:13 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:S/i386/x86/:MLinux-*-x86*)
|
|
|
|
PLIST.sps= yes
|
|
|
|
.endif
|
|
|
|
|
2014-05-05 22:47:14 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MLinux-*-arm*)
|
2013-05-23 15:12:13 +02:00
|
|
|
PLIST.tremor= yes
|
|
|
|
.else
|
|
|
|
PLIST.vorbis= yes
|
|
|
|
.endif
|
|
|
|
|
2014-05-28 05:33:19 +02:00
|
|
|
# See ${WRKSRC}/mozglue/build/moz.build: libmozglue is built and
|
|
|
|
# installed as a shared library on these platforms.
|
|
|
|
.if ${OPSYS} == "Cygwin" || ${OPSYS} == "Darwin" # or Android
|
|
|
|
PLIST.mozglue= yes
|
|
|
|
.endif
|
|
|
|
|
2015-01-30 08:32:24 +01:00
|
|
|
# See ${WRKSRC}/security/sandbox/mac/Sandbox.mm: On Darwin, sandboxing
|
|
|
|
# support is only available when the toolkit is cairo-cocoa.
|
2016-02-26 11:57:45 +01:00
|
|
|
CONFIGURE_ARGS.Darwin+= --disable-sandbox
|
2015-01-30 08:32:24 +01:00
|
|
|
|
|
|
|
# See ${WRKSRC}/configure.in: It tries to use MacOS X 10.6 SDK by
|
|
|
|
# default, which is not always possible.
|
|
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-8.*-*)
|
|
|
|
CONFIGURE_ARGS+= --enable-macos-target=10.4
|
|
|
|
.elif !empty(MACHINE_PLATFORM:MDarwin-9.*-*)
|
|
|
|
CONFIGURE_ARGS+= --enable-macos-target=10.5
|
|
|
|
.endif
|
|
|
|
|
2013-05-23 15:12:13 +02:00
|
|
|
# Makefiles sometimes call "rm -f" without more arguments. Kludge around ...
|
|
|
|
.PHONY: create-rm-wrapper
|
|
|
|
pre-configure: create-rm-wrapper
|
|
|
|
create-rm-wrapper:
|
|
|
|
printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \
|
|
|
|
${WRAPPER_DIR}/bin/rm
|
|
|
|
chmod +x ${WRAPPER_DIR}/bin/rm
|
|
|
|
|
|
|
|
# The configure test for __thread succeeds, but later we end up with:
|
|
|
|
# dist/bin/libxul.so: undefined reference to `__tls_get_addr'
|
2016-02-26 11:57:45 +01:00
|
|
|
CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no
|
2019-02-01 17:47:59 +01:00
|
|
|
# In unspecified case, clock_gettime(CLOCK_MONOTONIC, ...) fails.
|
|
|
|
CONFIGURE_ENV.NetBSD+= ac_cv_clock_monotonic=
|
2013-05-23 15:12:13 +02:00
|
|
|
|
2014-05-05 22:47:14 +02:00
|
|
|
.if ${OPSYS} == "OpenBSD"
|
|
|
|
PLIST_SUBST+= DLL_SUFFIX=".so.1.0"
|
|
|
|
.elif ${OPSYS} == "Darwin"
|
|
|
|
PLIST_SUBST+= DLL_SUFFIX=".dylib"
|
|
|
|
.else
|
|
|
|
PLIST_SUBST+= DLL_SUFFIX=".so"
|
|
|
|
.endif
|
|
|
|
|
2020-07-12 03:37:50 +02:00
|
|
|
# PR pkg/55456
|
|
|
|
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386"
|
|
|
|
.include "../../devel/libatomic/buildlink3.mk"
|
|
|
|
CONFIGURE_ENV.NetBSD+= ac_cv_needs_atomic=yes
|
|
|
|
.endif
|
2013-05-23 15:12:13 +02:00
|
|
|
BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1
|
|
|
|
.include "../../devel/libevent/buildlink3.mk"
|
|
|
|
.include "../../devel/libffi/buildlink3.mk"
|
2020-07-31 03:26:43 +02:00
|
|
|
BUILDLINK_API_DEPENDS.nspr+= nspr>=4.26
|
2013-05-23 15:12:13 +02:00
|
|
|
.include "../../devel/nspr/buildlink3.mk"
|
2013-09-19 14:37:49 +02:00
|
|
|
.include "../../textproc/icu/buildlink3.mk"
|
2020-08-25 16:35:24 +02:00
|
|
|
BUILDLINK_API_DEPENDS.nss+= nss>=3.55
|
2013-05-23 15:12:13 +02:00
|
|
|
.include "../../devel/nss/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2018-11-04 01:38:44 +01:00
|
|
|
#.include "../../mk/jpeg.buildlink3.mk"
|
2013-05-23 15:12:13 +02:00
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
2018-03-17 01:59:02 +01:00
|
|
|
#BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.2nb4
|
|
|
|
#.include "../../graphics/cairo/buildlink3.mk"
|
2019-03-20 15:38:17 +01:00
|
|
|
BUILDLINK_API_DEPENDS.libwebp+= libwebp>=1.0.2
|
2019-02-01 17:47:59 +01:00
|
|
|
.include "../../graphics/libwebp/buildlink3.mk"
|
2020-04-11 02:30:18 +02:00
|
|
|
# Force the use of clang from pkgsrc, regardless of the setting of
|
|
|
|
# PKGSRC_COMPILER.
|
|
|
|
# \todo This breaks the use of ccache, which should be fixed, probably
|
|
|
|
# by adding support for this kind of forcing to pkgsrc infrastructure.
|
2019-11-02 03:09:32 +01:00
|
|
|
PKG_CC= ${PREFIX}/bin/clang
|
|
|
|
PKG_CXX= ${PREFIX}/bin/clang++
|
2017-10-29 10:47:57 +01:00
|
|
|
BUILDLINK_DEPMETHOD.clang= build
|
2017-09-30 07:34:11 +02:00
|
|
|
.include "../../lang/clang/buildlink3.mk"
|
2020-05-17 13:20:57 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-8.*-*)
|
|
|
|
BUILDLINK_DEPMETHOD.gcc8= full
|
|
|
|
.include "../../lang/gcc8/buildlink3.mk"
|
|
|
|
CWRAPPERS_PREPEND.cxx+= \
|
|
|
|
-L${BUILDLINK_PREFIX.gcc8}/gcc8/lib \
|
|
|
|
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gcc8}/gcc8/lib \
|
|
|
|
-stdlib++-isystem \
|
|
|
|
${BUILDLINK_PREFIX.gcc8}/gcc8/include/c++ \
|
|
|
|
-stdlib++-isystem \
|
|
|
|
${BUILDLINK_PREFIX.gcc8}/gcc8/include/c++/${MACHINE_GNU_PLATFORM} \
|
|
|
|
-stdlib++-isystem \
|
|
|
|
${BUILDLINK_PREFIX.gcc8}/gcc8/include/c++/backward
|
|
|
|
.endif
|
2020-08-04 04:56:03 +02:00
|
|
|
RUST_REQ= 1.43.0
|
2020-06-14 17:33:27 +02:00
|
|
|
.include "../../lang/rust/rust.mk"
|
2019-03-15 13:52:42 +01:00
|
|
|
# webrtc option requires internal libvpx
|
|
|
|
#BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.3.0
|
|
|
|
#.include "../../multimedia/libvpx/buildlink3.mk"
|
2013-05-23 15:12:13 +02:00
|
|
|
.include "../../net/libIDL/buildlink3.mk"
|
2017-04-27 03:49:47 +02:00
|
|
|
# textproc/hunspell 1.3 is too old
|
|
|
|
#.include "../../textproc/hunspell/buildlink3.mk"
|
2018-07-16 04:03:15 +02:00
|
|
|
.include "../../multimedia/ffmpeg4/buildlink3.mk"
|
2013-05-23 15:12:13 +02:00
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
2014-05-05 02:52:10 +02:00
|
|
|
BUILDLINK_API_DEPENDS.pixman+= pixman>=0.25.2
|
|
|
|
.include "../../x11/pixman/buildlink3.mk"
|
2017-12-10 01:45:09 +01:00
|
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
|
|
.include "../../x11/gtk3/buildlink3.mk"
|
2020-06-29 13:53:09 +02:00
|
|
|
PLIST_VARS+= wayland
|
2020-06-29 13:59:41 +02:00
|
|
|
.if ${PKG_BUILD_OPTIONS.gtk3:Mwayland}
|
2020-06-29 13:53:09 +02:00
|
|
|
PLIST.wayland= yes
|
|
|
|
.endif
|
2018-06-29 14:51:55 +02:00
|
|
|
.include "../../lang/python/pyversion.mk"
|