openbsd-ports/www/seamonkey/Makefile
tb 7dbeabb708 seamonkey: apply kettenis's fft.asm fix. Also set USE_NOEXECONLY since
the embedded skia does some embedded assembly stuff that is not easy
neuter and makes seamonkey completely broken on PKU machines.
2023-01-28 09:41:49 +00:00

88 lines
2.4 KiB
Makefile

BROKEN-aarch64 = third_party/rust/libc/src/lib.rs: error[E0412]: cannot find type 'c_long' in this scope
USE_NOEXECONLY = Yes
COMMENT-main = Mozilla application suite
COMMENT-lightning = Mozilla Seamonkey calendar extension
ONLY_FOR_ARCHS = amd64 i386 aarch64
# version = (TB version - 3) / 100 + 2
MOZILLA_VERSION = 2.53.15
MOZILLA_PROJECT = seamonkey
MOZILLA_CODENAME = comm/suite
MULTI_PACKAGES = -main -lightning
PKGNAME-main = ${PKGNAME}
PKGNAME-lightning = lightning-seamonkey-5.8.15
EPOCH-lightning = 0
REVISION-main = 1
HOMEPAGE = https://www.seamonkey-project.org/
SO_VERSION = 47.0
# NOTE: Must bump minor version if any shlib's are removed from the
# components dir to avoid pkg_add -r issues.
MOZILLA_LIBS = ldap60 ldif60 mozavcodec mozavutil mozgtk mozsqlite3 prldap60 suite xul lgpllibs
CATEGORIES= www mail net news
# MPL
PERMIT_PACKAGE= Yes
MODULES = www/mozilla lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
MODPY_RUNDEP = No
COMPILER = base-clang ports-clang
MODCLANG_ARCHS = amd64 i386
CONFIGURE_ARGS += --disable-gconf
NO_TEST= Yes
CONFIGURE_STYLE = simple
CONFIGURE_ARGS += --prefix=${PREFIX}
LIB_DEPENDS += textproc/hunspell>=1.7
WANTLIB += hunspell-1.7
# option removed in 62, cf #1460600
CONFIGURE_ARGS += --with-system-hunspell
BUILD_DEPENDS += devel/cbindgen>=0.6.1
# lld blows when linking libxul; limit threads
.if ${MACHINE_ARCH:Mi386}
CONFIGURE_ENV += LDFLAGS="-Wl,--threads=2"
# make sure we dont look for libatomic from gcc-libs
CONFIGURE_ENV += ac_cv_needs_atomic=no
.endif
RUN_DEPENDS-lightning = STEM->=${MOZILLA_VERSION:S/b/beta/}:${BUILD_PKGPATH},-main
WANTLIB += Xt gthread-2.0 pangoft2-1.0
WANTLIB-lightning=
MAKE_ENV += RUSTC_BOOTSTRAP="packed_simd_2,encoding_rs"
# build lightning xpi
CONFIGURE_ARGS += --enable-calendar
# remove post 96
CONFIGURE_ARGS += --disable-necko-wifi
post-install:
${INSTALL_MAN} ${WRKBUILD}/dist/man/man1/seamonkey.1 ${PREFIX}/man/man1/
# install prefs
${SUBST_DATA} ${FILESDIR}/all-openbsd.js \
${PREFIX}/lib/${MOZILLA_PROJECT}/defaults/pref/all-openbsd.js
# install desktop file
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/ ; \
${SUBST_DATA} ${FILESDIR}/${MOZILLA_PROJECT}.desktop \
${PREFIX}/share/applications/${MOZILLA_PROJECT}.desktop ; \
# install icon for desktop file
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
${INSTALL_DATA} ${PREFIX}/lib/${MOZILLA_PROJECT}/chrome/icons/default/default128.png \
${PREFIX}/share/pixmaps/${MOZILLA_PROJECT}.png
.include <bsd.port.mk>