- update firefox-esr, thunderbird-esr, linux-thunderbird and linux-firefox to 10.0.7 - update seamonkey and linux-seamonkey to 2.12 - update nss to 3.13.6 - update bsdipc code (posix_spawn, SysV shared memory) - rename patches to easily track those not (yet) submitted upstream - reduce package size, except for www/libxul[1] - restore default objdir to what it was in 13.0 - fix mail/enigmail after thunderbird build changes - don't accidentally pick up headers from installed ports[3] - add support for PREFIX != LOCALBASE to Makefile.webplugins [4] - document vulnerabilities in vuln.xml - *miscellaneous cleanups and fixups* Obtained from: OpenBSD ports[1] PR: ports/159831, ports/160933, ports/170467[3], ports/170236 [4] Submitted by: avilla [4] In collaboration with: Jan Beich <jbeich@tormail.net> Who did most of the hard work.
87 lines
2.9 KiB
Text
87 lines
2.9 KiB
Text
# New ports collection makefile for: mozilla linux binary ports
|
|
# Date created: 1 May 2006
|
|
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
CATEGORIES+= linux
|
|
.ifndef MASTER_SITES
|
|
MASTER_SITES= MOZILLA_EXTENDED
|
|
MASTER_SITE_SUBDIR?= ${PORTNAME}/releases/${DISTVERSION}
|
|
.endif
|
|
PKGNAMEPREFIX?= linux-
|
|
|
|
NO_BUILD= yes
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
APP_NAME= ${PKGBASE}
|
|
BIN_NAME?= ${PORTNAME}
|
|
USE_LINUX= yes
|
|
USE_LINUX_APPS+= atk fontconfig gtk2 hicontheme pango
|
|
WRKSRC?= ${WRKDIR}/${BIN_NAME}
|
|
FDIR= ${PREFIX}/lib/${APP_NAME}
|
|
COMMON_DIR= ${.CURDIR}/../../www/linux-seamonkey
|
|
|
|
PLIST_SUB+= APP_NAME=${APP_NAME}
|
|
SUB_LIST+= APP_NAME=${APP_NAME}
|
|
SUB_FILES= ${APP_NAME}.desktop
|
|
PREFS_FILE= ${WRKSRC}/defaults/pref/browser-prefs.js
|
|
.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX:M*devel*}
|
|
DESKTOP_SUFFIX?= (Linux, devel)
|
|
.endif
|
|
DESKTOP_SUFFIX?= (Linux)
|
|
|
|
_A= >> ${TMPPLIST}
|
|
_Q= 2>/dev/null || true
|
|
|
|
.if !target(post-extract)
|
|
post-extract:
|
|
@${RM} -rf ${WRKSRC}/updates
|
|
.endif
|
|
|
|
.if ${CATEGORIES:Mwww}
|
|
.if !target(post-patch)
|
|
post-patch:
|
|
@${ECHO} 'pref("general.useragent.vendor", "'${OPSYS}'");' >> ${PREFS_FILE}
|
|
@${ECHO} 'pref("general.useragent.vendorSub", "'${ARCH}'");' >> ${PREFS_FILE}
|
|
.endif
|
|
.endif
|
|
|
|
.if !target(do-install)
|
|
do-install:
|
|
@${INSTALL} -d ${FDIR} ${PREFIX}/share/applications
|
|
@${INSTALL_DATA} ${WRKDIR}/${APP_NAME}.desktop ${PREFIX}/share/applications/
|
|
@${CP} -pR ${WRKSRC}/ ${FDIR}/
|
|
@${CHOWN} -R ${BINOWN}:${BINGRP} ${FDIR}/
|
|
@${LN} -sf ${FDIR}/${BIN_NAME} ${PREFIX}/bin/${APP_NAME}
|
|
@${CP} -R ${LOCALBASE}/lib/npapi/symlinks/${APP_NAME}/ \
|
|
${FDIR}/plugins/ ${_Q}
|
|
@${CP} -R ${LOCALBASE}/lib/xpi/symlinks/${APP_NAME}/ \
|
|
${FDIR}/extensions/ ${_Q}
|
|
.endif
|
|
|
|
# Maintainer section
|
|
create-plist: build
|
|
${ECHO_CMD} bin/%%APP_NAME%% > ${PLIST}
|
|
${ECHO_CMD} share/applications/%%APP_NAME%%.desktop >> ${PLIST}
|
|
cd ${WRKSRC} && ${FIND} -s . -type f -or -type l | \
|
|
${SED} -e "s#^\.#lib/%%APP_NAME%%#" | ${SORT} >> ${PLIST}
|
|
${ECHO_CMD} '@exec ${CP} -R %%LOCALBASE%%/lib/npapi/symlinks/%%APP_NAME%%/ \
|
|
%D/lib/%%APP_NAME%%/plugins/ ${_Q}' >> ${PLIST}
|
|
${ECHO_CMD} '@exec ${CP} -R %%LOCALBASE%%/lib/xpi/symlinks/%%APP_NAME%%/ \
|
|
%D/lib/%%APP_NAME%%/extensions/ ${_Q}' >> ${PLIST}
|
|
${ECHO_CMD} '@unexec ${FIND} %D/lib/%%APP_NAME%%/plugins/ \
|
|
-depth 1 -type l -delete ${_Q}' >> ${PLIST}
|
|
${ECHO_CMD} '@unexec ${FIND} %D/lib/%%APP_NAME%%/extensions/ \
|
|
-depth 1 -type l -delete ${_Q}' >> ${PLIST}
|
|
cd ${WRKSRC} && ${FIND} -sd . -type d | \
|
|
${SED} -e "s#^\.#@dirrm lib/%%APP_NAME%%#" >> ${PLIST}
|
|
${ECHO_CMD} @dirrmtry share/applications >> ${PLIST}
|
|
|
|
snatch-desktop:
|
|
${SED} -E -e 's/${PORTNAME}/${APP_NAME}/' \
|
|
-e 's/^(Name.*=.+)$$/\1 ${DESKTOP_SUFFIX}/' \
|
|
-e 's/^(GenericName.*=.+)$$/\1 ${DESKTOP_SUFFIX}/' \
|
|
-e 's!^Icon=.*$$!Icon=%%PREFIX%%/lib/%%APP_NAME%%/chrome/icons/default/default.xpm!' \
|
|
${PORTSDIR}/${PKGCATEGORY}/${PORTNAME}/files/${PORTNAME}.desktop.in > \
|
|
${FILESDIR}/${APP_NAME}.desktop.in
|