From 3c6e823a7f0a7c5ca20f49cd0591be9edfee2b97 Mon Sep 17 00:00:00 2001 From: Shokara Kou Date: Tue, 28 Jun 2022 01:55:19 -0400 Subject: start packaging palemoon unbranded --- www/palemoon/Makefile | 54 +++++++++++++++++++++++++++++++++++++++++++ www/palemoon/files/.mozconfig | 53 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 www/palemoon/Makefile create mode 100644 www/palemoon/files/.mozconfig diff --git a/www/palemoon/Makefile b/www/palemoon/Makefile new file mode 100644 index 0000000..25abb36 --- /dev/null +++ b/www/palemoon/Makefile @@ -0,0 +1,54 @@ +# Use /usr/ports/infrastructure/bin/portcheck +COMMENT = the palemoon browser, without official branding + +V = 29.4.6 +DISTNAME = palemoon-${V} + +# for any port that creates shared libraries. +# both libtool and cmake automatically set filenames based on this variable. +# for libtool- or cmake-based ports, have a look at WRKBUILD/shared_libs.log +#SHARED_LIBS = ??? 0.0 + +CATEGORIES = www + +HOMEPAGE = https://www.palemoon.org/ URL + +MAINTAINER = Shokara Kou + +# MPL +PERMIT_PACKAGE = Yes +PERMIT_DISTFILES = Yes + +# "make port-lib-depends-check" can help +#WANTLIB = ??? + +MASTER_SITES = https://archive.palemoon.org/source/ + +EXTRACT_SUFX = .source.tar.xz + +COMPILER = base-clang ports-gcc + +# Dependencies +BUILD_DEPENDS = python yasm autoconf-2.13p4 +#RUN_DEPENDS = ??? +#LIB_DEPENDS = gtk+2 +#TEST_DEPENDS = ??? + +#MAKE_FLAGS = ??? +#MAKE_ENV = ??? +#FAKE_FLAGS = ??? +#TEST_FLAGS = ??? + +# build/configuration variables +# +USE_GMAKE = Yes +CONFIGURE_STYLE = simple + +do-configure: + cp ${WRKSRC}/mozconfig .mozconfig + ./mach configure + +do-build: + ./mach build + +.include diff --git a/www/palemoon/files/.mozconfig b/www/palemoon/files/.mozconfig new file mode 100644 index 0000000..05c20b6 --- /dev/null +++ b/www/palemoon/files/.mozconfig @@ -0,0 +1,53 @@ +# Clear this if not a 64bit build +_BUILD_64=1 + +# Set GTK Version to 2 or 3 +_GTK_VERSION=2 + +# Standard build options for Pale Moon +ac_add_options --enable-application=palemoon +ac_add_options --enable-optimize="-O2 -w -L/usr/local/lib" +ac_add_options --enable-default-toolkit=cairo-gtk$_GTK_VERSION +#ac_add_options --enable-jemalloc +#ac_add_options --enable-strip +ac_add_options --enable-devtools +ac_add_options --enable-av1 +#ac_add_options --enable-phoenix-extensions +ac_add_options --disable-eme +ac_add_options --disable-webrtc +ac_add_options --disable-gamepad +ac_add_options --disable-tests +ac_add_options --disable-debug +ac_add_options --disable-necko-wifi +ac_add_options --disable-updater +ac_add_options --with-pthreads + +# Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding. +#ac_add_options --enable-official-branding +#export MOZILLA_OFFICIAL=1 + +export MOZ_PKG_SPECIAL=gtk$_GTK_VERSION + +#export MOZ_SYSTEM_LIBVPX=1 +#export VPX_USE_YASM= +#export VPX_X86_ASM= + +ac_add_options --disable-pulseaudio +ac_add_options --disable-jack +ac_add_options --disable-alsa +ac_add_options --enable-sndio + +ac_add_options --x-libraries=/usr/X11R6/lib + +ac_add_options --with-system-jpeg=/usr/local +ac_add_options --with-system-zlib +ac_add_options --with-system-bz2=/usr/local +#ac_add_options --with-system-libevent +#ac_add_options --with-system-icu +#ac_add_options --with-system-webp=/usr/local +#ac_add_options --with-system-sqlite=/usr/local +ac_add_options --with-system-ffi +ac_add_options --with-system-pixman +#ac_add_options --with-system-libvpx +#ac_add_options --enable-system-nss +#ac_add_options --enable-system-nspr -- cgit v1.2.3