head	1.9;
access;
symbols
	pkgsrc-2026Q2:1.8.0.2
	pkgsrc-2026Q2-base:1.8
	pkgsrc-2026Q1:1.7.0.2
	pkgsrc-2026Q1-base:1.7
	pkgsrc-2025Q4:1.5.0.2
	pkgsrc-2025Q4-base:1.5
	pkgsrc-2025Q3:1.3.0.2
	pkgsrc-2025Q3-base:1.3
	pkgsrc-2025Q2:1.1.0.2
	pkgsrc-2025Q2-base:1.1;
locks; strict;
comment	@# @;


1.9
date	2026.06.23.14.32.59;	author nia;	state Exp;
branches;
next	1.8;
commitid	If6HuAkuAcFSNVKG;

1.8
date	2026.06.11.07.17.46;	author wiz;	state Exp;
branches;
next	1.7;
commitid	bVZL3OdakDMSLlJG;

1.7
date	2026.01.27.08.40.48;	author wiz;	state Exp;
branches;
next	1.6;
commitid	f4MYtJVcsY7dz0sG;

1.6
date	2025.12.22.06.08.17;	author adam;	state Exp;
branches;
next	1.5;
commitid	YVGobEfcMaDpTmnG;

1.5
date	2025.12.20.19.45.27;	author nia;	state Exp;
branches;
next	1.4;
commitid	XxpHfNIV8AcitbnG;

1.4
date	2025.10.23.20.39.44;	author wiz;	state Exp;
branches;
next	1.3;
commitid	1V2hBZn9ypXaCJfG;

1.3
date	2025.08.30.22.46.30;	author wiz;	state Exp;
branches;
next	1.2;
commitid	2izPxU30rhec4O8G;

1.2
date	2025.08.09.16.24.42;	author nia;	state Exp;
branches;
next	1.1;
commitid	QH0DvdUIoLyQD46G;

1.1
date	2025.04.25.21.25.03;	author nia;	state Exp;
branches;
next	;
commitid	EQEh9Eznad4RHtSF;


desc
@@


1.9
log
@basilisk: Update to 2026.06.12

This brings the engine up to date with the most recent Pale Moon
releases, with associated security fixes and JavaScript improvements.
As such the diff has been reduced with the palemoon package.
@
text
@# $NetBSD: Makefile,v 1.1 2025/04/25 21:25:03 nia Exp $
# This package is mostly derived from www/palemoon since they use the
# same backend.  However, several key things are different.

PKGNAME=	basilisk-2026.06.12
CATEGORIES=	www

DIST_SUBDIR=	basilisk-${PKGVERSION_NOREV}
DISTFILES+=	basilisk.tar.gz
DISTFILES+=	uxp.tar.gz

# The default bundled copy of ICU does not contain big-endian
# data files, so this one is generated manually.
ICU_MAJOR=	78
DISTFILES+=	icudt${ICU_MAJOR}b.dat.gz

SITES.icudt${ICU_MAJOR}b.dat.gz= \
		${MASTER_SITE_LOCAL}

SITES.basilisk.tar.gz= \
	-https://repo.palemoon.org/Basilisk-Dev/Basilisk/archive/v${PKGVERSION_NOREV}.tar.gz

SITES.uxp.tar.gz= \
	-https://repo.palemoon.org/MoonchildProductions/UXP/archive/83826f1f34efa77ac20fc514fa2e3d14a941f115.tar.gz

MAINTAINER=	nia@@NetBSD.org
HOMEPAGE=	https://www.basilisk-browser.org/
COMMENT=	UXP-based web browser inspired by pre-Servo Firefox
LICENSE=	mpl-2.0

USE_TOOLS+=	perl pkg-config autoconf213
USE_TOOLS+=	zip unzip gmake

HAS_CONFIGURE=	yes
USE_LANGUAGES=	c c++

# "ERROR: Only GCC 9.1 or newer is supported"
# Use GCC 10 because 9 is untested.
GCC_REQD+=	10

WRKSRC=		${WRKDIR}/basilisk

LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib/basilisk-52.9.0

CONFIG_GUESS_OVERRIDE+=	platform/build/autoconf/config.guess
CONFIG_GUESS_OVERRIDE+=	platform/intl/icu/source/config.guess
CONFIG_GUESS_OVERRIDE+=	platform/ipc/chromium/src/third_party/libevent/config.guess
CONFIG_GUESS_OVERRIDE+=	platform/js/src/ctypes/libffi/config.guess
CONFIG_GUESS_OVERRIDE+=	platform/nsprpub/build/autoconf/config.guess

CONFIG_SUB_OVERRIDE+=	platform/build/autoconf/config.sub
CONFIG_SUB_OVERRIDE+=	platform/intl/icu/source/config.sub
CONFIG_SUB_OVERRIDE+=	platform/ipc/chromium/src/third_party/libevent/config.sub
CONFIG_SUB_OVERRIDE+=	platform/js/src/ctypes/libffi/config.sub
CONFIG_SUB_OVERRIDE+=	platform/nsprpub/build/autoconf/config.sub

CONFIGURE_DIRS=		${WRKDIR}/build
CONFIGURE_SCRIPT=	${WRKSRC}/configure

# see basilisk/mozconfigs/linux/x86_64/gtk3_unofficial_branding.mozconfig
CONFIGURE_ARGS+=	--enable-optimize=-O3
CONFIGURE_ARGS+=	--enable-application=basilisk
CONFIGURE_ARGS+=	--enable-devtools
CONFIGURE_ARGS+=	--enable-av1
CONFIGURE_ARGS+=	--enable-pie
CONFIGURE_ARGS+=	--enable-webrtc		# without seems broken
CONFIGURE_ARGS+=	--disable-tests
CONFIGURE_ARGS+=	--disable-gamepad	# non-default
CONFIGURE_ARGS+=	--disable-debug
CONFIGURE_ARGS+=	--disable-necko-wifi
CONFIGURE_ARGS+=	--disable-updater
CONFIGURE_ARGS+=	--with-pthreads
# unlike palemoon/firefox, basilisk *only* has "unofficial branding"
CONFIGURE_ARGS+=	--disable-official-branding

# non-default: causes build failures on NetBSD
CONFIGURE_ARGS+=	--disable-precompiled-startupcache

# non-default: do not override system memory allocator
CONFIGURE_ARGS+=	--disable-jemalloc

# non-default options to integrate better with pkgsrc
# do not use system cairo, causes segfaults
CONFIGURE_ARGS+=	--prefix=${PREFIX}
CONFIGURE_ARGS+=	--with-system-bz2=${BUILDLINK_PREFIX.bzip2}
CONFIGURE_ARGS+=	--with-system-zlib

.include "../../mk/bsd.prefs.mk"

# see notes on Dav1d here: https://www.palemoon.org/releasenotes.shtml
.if ${MACHINE_ARCH} != "x86_64"
CONFIGURE_ARGS+=	--enable-libaom
.endif

.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
TOOL_DEPENDS+=		nasm>=1.1:../../devel/nasm
TOOL_DEPENDS+=		yasm>=1.1:../../devel/yasm
.endif

.if ${MACHINE_PLATFORM:MNetBSD-*-earm*} || \
    ${MACHINE_PLATFORM:MNetBSD-*-alpha*} || \
    ${MACHINE_PLATFORM:MNetBSD-*-powerpc*} || \
    ${MACHINE_PLATFORM:MNetBSD-*-sparc64*}
LDFLAGS+=		-Wl,--no-keep-memory
.endif

PLIST_VARS+=		be le

PM_BIG_ENDIAN?=	no
.for plat in ${BIGENDIANPLATFORMS}
.  if !empty(MACHINE_PLATFORM:M${plat})
PM_BIG_ENDIAN=	yes
.  endif
.endfor

.if ${PM_BIG_ENDIAN:tl} != "no"
PLIST.be=	yes
.else
PLIST.le=	yes
.endif

SUBST_CLASSES+=		desktop
SUBST_STAGE.desktop=	pre-configure
SUBST_FILES.desktop=	platform/toolkit/mozapps/installer/linux/rpm/mozilla.desktop
SUBST_SED.desktop=	-e 's,@@MOZ_APP_DISPLAYNAME@@,Basilisk,g'
SUBST_SED.desktop+=	-e 's,@@MOZ_APP_NAME@@,basilisk,g'

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+=	platform/js/src/tests/*.sh
CHECK_PORTABILITY_SKIP+=	platform/memory/jemalloc/src/configure
CHECK_PORTABILITY_SKIP+=	platform/security/nss/tests/*/*.sh

PYTHON_FOR_BUILD_ONLY=		tool

BUILDLINK_TRANSFORM+=	rm:-Werror=format

pre-configure:
	${MKDIR} ${CONFIGURE_DIRS}
	cd ${WRKSRC} && autoconf-2.13
	cd ${WRKSRC}/basilisk && autoconf-2.13
	cd ${WRKSRC}/platform/js/src && autoconf-2.13

pre-patch:
	${MV} ${WRKDIR}/uxp/* ${WRKSRC}/platform/

pre-build:
	${TOUCH} ${WRKSRC}/platform/configure
	${TOUCH} ${WRKDIR}/build/config.status

post-install:
	${FIND} ${DESTDIR}${PREFIX} -name '*.a' -exec ${RM} '{}' ';'
	${RM} -rf ${DESTDIR}${PREFIX}/include
	${RM} -rf ${DESTDIR}${PREFIX}/share/idl
.if ${PM_BIG_ENDIAN:tl} != "no"
	${INSTALL_DATA} ${WRKDIR}/icudt${ICU_MAJOR}b.dat \
	    ${DESTDIR}${PREFIX}/lib/${PKGNAME_NOREV}/
.endif
	${RM} -rf ${DESTDIR}${PREFIX}/lib/*-devel*
	${RM} -rf ${DESTDIR}${PREFIX}/lib/basilisk-devel-${PKGVERSION_NOREV}
	${INSTALL_DATA} ${WRKSRC}/basilisk/branding/unofficial/default16.png \
	    ${DESTDIR}${PREFIX}/share/icons/hicolor/16x16/apps/basilisk.png
	${INSTALL_DATA} ${WRKSRC}/basilisk/branding/unofficial/default32.png \
	    ${DESTDIR}${PREFIX}/share/icons/hicolor/32x32/apps/basilisk.png
	${INSTALL_DATA} ${WRKSRC}/basilisk/branding/unofficial/default48.png \
	    ${DESTDIR}${PREFIX}/share/icons/hicolor/48x48/apps/basilisk.png
	${INSTALL_DATA} ${WRKSRC}/basilisk/branding/unofficial/mozicon128.png \
	    ${DESTDIR}${PREFIX}/share/icons/hicolor/128x128/apps/basilisk.png
	${INSTALL_DATA} ${WRKSRC}/platform/toolkit/mozapps/installer/linux/rpm/mozilla.desktop \
	    ${DESTDIR}${PREFIX}/share/applications/basilisk.desktop

.include "options.mk"
.include "../../archivers/bzip2/buildlink3.mk"
.if ${OPSYS} == "Linux"
.  include "../../audio/alsa-lib/buildlink3.mk"
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/libv4l/buildlink3.mk"
.include "../../lang/python/batteries-included.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/tool.mk"
.include "../../multimedia/ffmpeg7/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+=	--enable-default-toolkit=cairo-cocoa
.else
CONFIGURE_ARGS+=	--enable-default-toolkit=cairo-gtk3
.  include "../../x11/gtk2/buildlink3.mk"
.  include "../../x11/gtk3/buildlink3.mk"
.  include "../../x11/libXt/buildlink3.mk"
.endif
.include "../../mk/atomic64.mk"
.include "../../mk/bsd.pkg.mk"
@


1.8
log
@gtk3: bump PKGREVISION for wayland option default change

Recursive bump to hopefully fix bulk build fallout due to the
unversioned change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2026/01/27 08:40:48 wiz Exp $
d5 1
a5 2
PKGNAME=	basilisk-2025.10.10
PKGREVISION=	3
d11 8
a18 1
DISTFILES+=	psutil.tar.gz
d24 1
a24 4
	-https://repo.palemoon.org/MoonchildProductions/UXP/archive/545d52572d4fe410bd0a776b59c7c7da27e1d0a1.tar.gz

SITES.psutil.tar.gz= \
	-https://files.pythonhosted.org/packages/7b/58/2675697b6831e6ac4b7b7bc4e5dcdb24a2f39f8411186573eb0de16eb6d5/psutil-3.4.2.tar.gz
a64 1
CONFIGURE_ARGS+=	--enable-jxl
a72 1
CONFIGURE_ARGS+=	--disable-gconf
d90 4
a93 4
# The default bundled copy of ICU does not contain big-endian
# data files, so this one is generated manually.
DISTFILES+=		icudt63b.dat.gz
SITES.icudt63b.dat.gz=	${MASTER_SITE_LOCAL}
d96 1
d100 4
a103 1
.if ${MACHINE_PLATFORM:MNetBSD-*-earm*}
a137 1
PYTHON_VERSIONS_ACCEPTED=	27
a149 2
	${RM} -rf ${WRKSRC}/platform/python/psutil
	${MV} ${WRKDIR}/psutil-3.4.2 ${WRKSRC}/platform/python/psutil
d160 1
a160 1
	${INSTALL_DATA} ${WRKDIR}/icudt63b.dat \
@


1.7
log
@*: recursive bump for removal of cairo's xcb option
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2025/12/22 06:08:17 adam Exp $
d6 1
a6 1
PKGREVISION=	2
@


1.6
log
@revbump for x264
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2025/12/20 19:45:27 nia Exp $
d6 1
a6 1
PKGREVISION=	1
@


1.5
log
@basilisk: Update to 2025.10.10

This is a security update that brings basilisk to a more up-to-date
Pale Moon engine. Additionally the latest patches have been
copied from the palemoon package, and the build on netbsd-11 has been
fixed.

I tested the package build on CentOS 7 and NetBSD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2025/04/25 21:25:03 nia Exp $
d6 1
@


1.4
log
@*: recursive bump for pcre2

Running an old binary against the new pcre doesn't work:
/usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2025/08/30 22:46:30 wiz Exp $
d5 1
a5 2
PKGNAME=	basilisk-2025.07.04
PKGREVISION=	2
d17 1
a17 1
	-https://repo.palemoon.org/MoonchildProductions/UXP/archive/05bae9bb7231eb6fd851802d097400542bba50a1.tar.gz
a101 1
PLIST_VARS+=		ffvpx
a115 4
.if ${MACHINE_ARCH} == "x86_64"
PLIST.ffvpx=		yes	# see platform/old-configure.in
.endif

d135 2
d184 1
a184 1
.include "../../multimedia/ffmpeg6/buildlink3.mk"
@


1.3
log
@*: recursive bump for tiff growing lerc dependency
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2025/08/09 16:24:42 nia Exp $
d6 1
a6 1
PKGREVISION=	1
@


1.2
log
@basilisk: Update to 2025.07.04

Fix build by removing webrtc option, it needs to build with it enabled.

Brings it up  to a more recent version of the palemoon engine, with
associated security and web compat fixes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2025/04/25 21:25:03 nia Exp $
d6 1
@


1.1
log
@basilisk: Initial import of the Basilisk web browser

Basilisk is an UXP-based web browser inspired by pre-Servo
Firefox but using the Goanna engine from Pale Moon. It's essentially
Pale Moon with a user interface more like www/firefox52.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2025/02/07 16:18:26 nia Exp $
d5 1
a5 1
PKGNAME=	basilisk-2025.04.23
d17 1
a17 1
	-https://repo.palemoon.org/MoonchildProductions/UXP/archive/d892468fd052cb8961b7e36d5b087e53eb625f8e.tar.gz
d63 1
d88 5
d101 1
d104 13
d159 4
d183 1
@

