diff options
| author | Shokara Kou <kou@13f0.net> | 2022-06-28 01:55:19 -0400 |
|---|---|---|
| committer | Shokara Kou <kou@13f0.net> | 2022-06-28 01:55:19 -0400 |
| commit | 3c6e823a7f0a7c5ca20f49cd0591be9edfee2b97 (patch) | |
| tree | a5f9926cd406a507394fe6fbca2eebe22dfac169 | |
| parent | a0c108527676be8226cbc43e7e17f5bd2672a919 (diff) | |
start packaging palemoon unbranded
| -rw-r--r-- | www/palemoon/Makefile | 54 | ||||
| -rw-r--r-- | www/palemoon/files/.mozconfig | 53 |
2 files changed, 107 insertions, 0 deletions
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 @@ | |||
| 1 | # Use /usr/ports/infrastructure/bin/portcheck | ||
| 2 | COMMENT = the palemoon browser, without official branding | ||
| 3 | |||
| 4 | V = 29.4.6 | ||
| 5 | DISTNAME = palemoon-${V} | ||
| 6 | |||
| 7 | # for any port that creates shared libraries. | ||
| 8 | # both libtool and cmake automatically set filenames based on this variable. | ||
| 9 | # for libtool- or cmake-based ports, have a look at WRKBUILD/shared_libs.log | ||
| 10 | #SHARED_LIBS = ??? 0.0 | ||
| 11 | |||
| 12 | CATEGORIES = www | ||
| 13 | |||
| 14 | HOMEPAGE = https://www.palemoon.org/ URL | ||
| 15 | |||
| 16 | MAINTAINER = Shokara Kou <kou@13f0.net> | ||
| 17 | |||
| 18 | # MPL | ||
| 19 | PERMIT_PACKAGE = Yes | ||
| 20 | PERMIT_DISTFILES = Yes | ||
| 21 | |||
| 22 | # "make port-lib-depends-check" can help | ||
| 23 | #WANTLIB = ??? | ||
| 24 | |||
| 25 | MASTER_SITES = https://archive.palemoon.org/source/ | ||
| 26 | |||
| 27 | EXTRACT_SUFX = .source.tar.xz | ||
| 28 | |||
| 29 | COMPILER = base-clang ports-gcc | ||
| 30 | |||
| 31 | # Dependencies | ||
| 32 | BUILD_DEPENDS = python yasm autoconf-2.13p4 | ||
| 33 | #RUN_DEPENDS = ??? | ||
| 34 | #LIB_DEPENDS = gtk+2 | ||
| 35 | #TEST_DEPENDS = ??? | ||
| 36 | |||
| 37 | #MAKE_FLAGS = ??? | ||
| 38 | #MAKE_ENV = ??? | ||
| 39 | #FAKE_FLAGS = ??? | ||
| 40 | #TEST_FLAGS = ??? | ||
| 41 | |||
| 42 | # build/configuration variables | ||
| 43 | # | ||
| 44 | USE_GMAKE = Yes | ||
| 45 | CONFIGURE_STYLE = simple | ||
| 46 | |||
| 47 | do-configure: | ||
| 48 | cp ${WRKSRC}/mozconfig .mozconfig | ||
| 49 | ./mach configure | ||
| 50 | |||
| 51 | do-build: | ||
| 52 | ./mach build | ||
| 53 | |||
| 54 | .include <bsd.port.mk> | ||
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 @@ | |||
| 1 | # Clear this if not a 64bit build | ||
| 2 | _BUILD_64=1 | ||
| 3 | |||
| 4 | # Set GTK Version to 2 or 3 | ||
| 5 | _GTK_VERSION=2 | ||
| 6 | |||
| 7 | # Standard build options for Pale Moon | ||
| 8 | ac_add_options --enable-application=palemoon | ||
| 9 | ac_add_options --enable-optimize="-O2 -w -L/usr/local/lib" | ||
| 10 | ac_add_options --enable-default-toolkit=cairo-gtk$_GTK_VERSION | ||
| 11 | #ac_add_options --enable-jemalloc | ||
| 12 | #ac_add_options --enable-strip | ||
| 13 | ac_add_options --enable-devtools | ||
| 14 | ac_add_options --enable-av1 | ||
| 15 | #ac_add_options --enable-phoenix-extensions | ||
| 16 | ac_add_options --disable-eme | ||
| 17 | ac_add_options --disable-webrtc | ||
| 18 | ac_add_options --disable-gamepad | ||
| 19 | ac_add_options --disable-tests | ||
| 20 | ac_add_options --disable-debug | ||
| 21 | ac_add_options --disable-necko-wifi | ||
| 22 | ac_add_options --disable-updater | ||
| 23 | ac_add_options --with-pthreads | ||
| 24 | |||
| 25 | # Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding. | ||
| 26 | #ac_add_options --enable-official-branding | ||
| 27 | #export MOZILLA_OFFICIAL=1 | ||
| 28 | |||
| 29 | export MOZ_PKG_SPECIAL=gtk$_GTK_VERSION | ||
| 30 | |||
| 31 | #export MOZ_SYSTEM_LIBVPX=1 | ||
| 32 | #export VPX_USE_YASM= | ||
| 33 | #export VPX_X86_ASM= | ||
| 34 | |||
| 35 | ac_add_options --disable-pulseaudio | ||
| 36 | ac_add_options --disable-jack | ||
| 37 | ac_add_options --disable-alsa | ||
| 38 | ac_add_options --enable-sndio | ||
| 39 | |||
| 40 | ac_add_options --x-libraries=/usr/X11R6/lib | ||
| 41 | |||
| 42 | ac_add_options --with-system-jpeg=/usr/local | ||
| 43 | ac_add_options --with-system-zlib | ||
| 44 | ac_add_options --with-system-bz2=/usr/local | ||
| 45 | #ac_add_options --with-system-libevent | ||
| 46 | #ac_add_options --with-system-icu | ||
| 47 | #ac_add_options --with-system-webp=/usr/local | ||
| 48 | #ac_add_options --with-system-sqlite=/usr/local | ||
| 49 | ac_add_options --with-system-ffi | ||
| 50 | ac_add_options --with-system-pixman | ||
| 51 | #ac_add_options --with-system-libvpx | ||
| 52 | #ac_add_options --enable-system-nss | ||
| 53 | #ac_add_options --enable-system-nspr | ||
