Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --- pkgsrc/www/arcticfox/Makefile 2023/07/22 10:31:38 1.30 +++ pkgsrc/www/arcticfox/Makefile 2024/11/14 22:22:02 1.55 @@ -1,62 +1,68 @@ -# $NetBSD: Makefile,v 1.30 2023/07/22 10:31:38 nia Exp $ +# $NetBSD: Makefile,v 1.55 2024/11/14 22:22:02 wiz Exp $ -DISTNAME= arcticfox-41.0 -PKGREVISION= 2 +DISTNAME= arcticfox-45.1 +PKGREVISION= 4 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_GITHUB:=rmottola/} GITHUB_PROJECT= Arctic-Fox GITHUB_TAG= v${PKGVERSION_NOREV} -DIST_SUBDIR= arctic-fox MAINTAINER= nia@NetBSD.org -HOMEPAGE= https://github.com/wicknix/Arctic-Fox +HOMEPAGE= https://github.com/rmottola/Arctic-Fox COMMENT= Web browser for aging systems, forked from Firefox LICENSE= mpl-1.1 USE_TOOLS+= perl pkg-config autoconf213 USE_TOOLS+= zip unzip gmake -GNU_CONFIGURE= yes +HAS_CONFIGURE= yes USE_LANGUAGES= c c++ -OVERRIDE_GNU_CONFIG_SCRIPTS= # yes -OVERRIDE_DIRDEPTH= 5 +CONFIG_GUESS_OVERRIDE+= ./build/autoconf/config.guess +CONFIG_GUESS_OVERRIDE+= ./intl/icu/source/config.guess +CONFIG_GUESS_OVERRIDE+= ./ipc/chromium/src/third_party/libevent/config.guess +CONFIG_GUESS_OVERRIDE+= ./js/src/ctypes/libffi/config.guess +CONFIG_GUESS_OVERRIDE+= ./memory/jemalloc/src/config.guess +CONFIG_GUESS_OVERRIDE+= ./modules/freetype2/builds/unix/config.guess +CONFIG_GUESS_OVERRIDE+= ./nsprpub/build/autoconf/config.guess +CONFIG_GUESS_OVERRIDE+= ./toolkit/crashreporter/google-breakpad/autotools/config.guess + +CONFIG_SUB_OVERRIDE+= ./build/autoconf/config.sub +CONFIG_SUB_OVERRIDE+= ./intl/icu/source/config.sub +CONFIG_SUB_OVERRIDE+= ./ipc/chromium/src/third_party/libevent/config.sub +CONFIG_SUB_OVERRIDE+= ./js/src/ctypes/libffi/config.sub +CONFIG_SUB_OVERRIDE+= ./memory/jemalloc/src/config.sub +CONFIG_SUB_OVERRIDE+= ./modules/freetype2/builds/unix/config.sub +CONFIG_SUB_OVERRIDE+= ./nsprpub/build/autoconf/config.sub +CONFIG_SUB_OVERRIDE+= ./toolkit/crashreporter/google-breakpad/autotools/config.sub +CONFIGURE_ARGS+= --prefix=${PREFIX} CONFIGURE_ARGS+= --disable-crashreporter CONFIGURE_ARGS+= --disable-tests CONFIGURE_ARGS+= --disable-debug -CONFIGURE_ARGS+= --disable-gstreamer CONFIGURE_ARGS+= --disable-updater CONFIGURE_ARGS+= --disable-mozril-geoloc CONFIGURE_ARGS+= --disable-webrtc CONFIGURE_ARGS+= --disable-safe-browsing CONFIGURE_ARGS+= --disable-parental-controls -CONFIGURE_ARGS+= --enable-release +CONFIGURE_ARGS+= --disable-safe-browsing CONFIGURE_ARGS+= --disable-necko-wifi CONFIGURE_ARGS+= --disable-eme CONFIGURE_ARGS+= --disable-gamepad CONFIGURE_ARGS+= --disable-gio -CONFIGURE_ARGS+= --enable-strip CONFIGURE_ARGS+= --enable-install-strip +CONFIGURE_ARGS+= --enable-release +CONFIGURE_ARGS+= --enable-strip CONFIGURE_ARGS+= --enable-application=browser CONFIGURE_ARGS+= --with-branding=browser/branding/arcticfox +# gtk3 now supported and default, but gtk2 less buggy +CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk2 + # Necessary for PaX safety on NetBSD. CONFIGURE_ARGS+= --disable-precompiled-startupcache -CONFIGURE_ARGS+= --enable-system-cairo -CONFIGURE_ARGS+= --enable-system-pixman -CONFIGURE_ARGS+= --enable-system-hunspell -CONFIGURE_ARGS+= --enable-system-ffi CONFIGURE_ARGS+= --with-system-bz2 -# Needs libjpeg-turbo. -# CONFIGURE_ARGS+= --with-system-jpeg -# Causes build failures. :-/ -# CONFIGURE_ARGS+= --with-system-icu -CONFIGURE_ARGS+= --with-system-libevent=${BUILDLINK_PREFIX.libevent} -CONFIGURE_ARGS+= --with-system-libvpx -CONFIGURE_ARGS+= --with-system-nss -CONFIGURE_ARGS+= --with-system-nspr CONFIGURE_ARGS+= --with-system-zlib .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64" @@ -66,7 +72,8 @@ SSP_SUPPORTED= no .include "../../mk/bsd.prefs.mk" -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" +# it thinks yasm is required on arm +.if !${MACHINE_PLATFORM:MNetBSD-*-powerpc*} TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm .endif @@ -76,13 +83,21 @@ CONFIGURE_SCRIPT= ${WRKSRC}/configure LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/${PKGNAME_NOREV} LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib +.if ${MACHINE_PLATFORM:MNetBSD-*-earm*} +LDFLAGS+= -Wl,--no-keep-memory +.endif + +CWRAPPERS_APPEND.cc+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/${PKGNAME_NOREV} +CWRAPPERS_APPEND.cxx+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/${PKGNAME_NOREV} +CWRAPPERS_APPEND.ld+= ${LINKER_RPATH_FLAG}${PREFIX}/lib/${PKGNAME_NOREV} + INSTALLATION_DIRS+= share/applications INSTALLATION_DIRS+= share/icons/hicolor/16x16/apps INSTALLATION_DIRS+= share/icons/hicolor/32x32/apps INSTALLATION_DIRS+= share/icons/hicolor/48x48/apps INSTALLATION_DIRS+= share/icons/hicolor/128x128/apps -CHECK_PORTABILITY_SKIP+= intl/icu/source/configure +CHECK_PORTABILITY_SKIP+= browser/extensions/loop/*.sh CHECK_PORTABILITY_SKIP+= js/src/tests/*.sh CHECK_PORTABILITY_SKIP+= memory/jemalloc/src/configure CHECK_PORTABILITY_SKIP+= security/nss/tests/*/*.sh @@ -92,10 +107,6 @@ REPLACE_PYTHON+= xpcom/typelib/xpt/tool PYTHON_VERSIONS_ACCEPTED= 27 PYTHON_FOR_BUILD_ONLY= tool -TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat - -NOT_PAX_MPROTECT_SAFE+= lib/${PKGNAME_NOREV}/arcticfox -NOT_PAX_MPROTECT_SAFE+= lib/${PKGNAME_NOREV}/arcticfox-bin pre-configure: ${MKDIR} ${CONFIGURE_DIRS} @@ -123,25 +134,16 @@ post-install: .if ${OPSYS} == "Linux" . include "../../audio/alsa-lib/buildlink3.mk" .endif -.include "../../devel/nspr/buildlink3.mk" -.include "../../devel/nss/buildlink3.mk" -BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1 -.include "../../devel/libevent/buildlink3.mk" +.include "../../devel/GConf/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" -.include "../../databases/sqlite3/buildlink3.mk" -.include "../../graphics/cairo/buildlink3.mk" .include "../../graphics/hicolor-icon-theme/buildlink3.mk" .include "../../graphics/libwebp/buildlink3.mk" .include "../../graphics/png/buildlink3.mk" +.include "../../lang/python/batteries-included.mk" .include "../../lang/python/application.mk" .include "../../lang/python/tool.mk" -.include "../../multimedia/libvpx/buildlink3.mk" .include "../../sysutils/desktop-file-utils/desktopdb.mk" -.include "../../textproc/hunspell/buildlink3.mk" -#.include "../../textproc/icu/buildlink3.mk" .include "../../x11/gtk2/buildlink3.mk" .include "../../x11/libXt/buildlink3.mk" -.include "../../x11/pixman/buildlink3.mk" -#.include "../../mk/jpeg.buildlink3.mk" .include "../../mk/atomic64.mk" .include "../../mk/bsd.pkg.mk"