2012-11-21 00:01:15 +01:00
|
|
|
# Created by: Alan Eldridge <alane@FreeBSD.org>
|
2002-10-21 10:54:27 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-02-11 08:16:17 +01:00
|
|
|
PORTNAME= firefox
|
2015-09-19 09:20:54 +02:00
|
|
|
DISTVERSION= 38.3.0
|
2014-09-09 08:16:35 +02:00
|
|
|
DISTVERSIONSUFFIX=esr.source
|
2004-10-28 23:37:53 +02:00
|
|
|
PORTEPOCH= 1
|
2006-12-22 03:04:05 +01:00
|
|
|
CATEGORIES= www ipv6
|
2015-05-14 20:01:58 +02:00
|
|
|
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \
|
2015-08-07 14:02:41 +02:00
|
|
|
MOZILLA/${PORTNAME}/candidates/${DISTVERSION}esr-candidates/build2/source
|
2013-07-24 16:54:29 +02:00
|
|
|
PKGNAMESUFFIX= -esr
|
2002-10-21 10:54:27 +02:00
|
|
|
|
2009-05-04 21:23:44 +02:00
|
|
|
MAINTAINER= gecko@FreeBSD.org
|
2003-10-18 23:45:26 +02:00
|
|
|
COMMENT= Web browser based on the browser portion of Mozilla
|
2002-10-21 20:37:12 +02:00
|
|
|
|
2015-07-16 08:05:59 +02:00
|
|
|
BUILD_DEPENDS= nspr>=4.10.8:${PORTSDIR}/devel/nspr \
|
|
|
|
nss>=3.19.2:${PORTSDIR}/security/nss \
|
2014-09-25 13:08:06 +02:00
|
|
|
libevent2>=2.0.21_2:${PORTSDIR}/devel/libevent2 \
|
2014-09-09 08:16:35 +02:00
|
|
|
soundtouch>=1.8.0:${PORTSDIR}/audio/soundtouch \
|
2015-07-24 01:18:42 +02:00
|
|
|
harfbuzz>=0.9.34:${PORTSDIR}/print/harfbuzz \
|
2014-09-09 08:16:35 +02:00
|
|
|
graphite2>=1.2.4:${PORTSDIR}/graphics/graphite2 \
|
2015-07-24 01:18:42 +02:00
|
|
|
libvorbis>=1.3.5:${PORTSDIR}/audio/libvorbis \
|
2015-08-14 18:39:33 +02:00
|
|
|
libvpx>=1.3.0:${PORTSDIR}/multimedia/libvpx \
|
2015-07-16 08:05:59 +02:00
|
|
|
sqlite3>=3.8.9:${PORTSDIR}/databases/sqlite3 \
|
2014-09-09 08:16:35 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
|
2013-10-30 21:37:55 +01:00
|
|
|
v4l_compat>0:${PORTSDIR}/multimedia/v4l_compat \
|
2014-10-01 17:07:31 +02:00
|
|
|
autoconf-2.13:${PORTSDIR}/devel/autoconf213 \
|
2014-03-19 21:46:37 +01:00
|
|
|
zip:${PORTSDIR}/archivers/zip \
|
2011-11-08 18:25:16 +01:00
|
|
|
unzip:${PORTSDIR}/archivers/unzip
|
2015-07-16 08:05:59 +02:00
|
|
|
# opus>=1.1:${PORTSDIR}/audio/opus \
|
2014-09-09 08:16:35 +02:00
|
|
|
|
2013-10-30 21:37:55 +01:00
|
|
|
LIB_DEPENDS= libv4l2.so:${PORTSDIR}/multimedia/libv4l
|
2006-11-10 08:03:50 +01:00
|
|
|
|
2010-02-07 22:48:44 +01:00
|
|
|
USE_GECKO= gecko
|
2014-08-04 11:11:25 +02:00
|
|
|
CPE_PRODUCT= ${PORTNAME}_esr
|
2015-07-16 08:05:59 +02:00
|
|
|
CONFLICTS_INSTALL= firefox-4[0-4].* firefox-3[02-9].* firefox-2[0-35-9].*
|
2010-02-07 22:48:44 +01:00
|
|
|
MOZ_PKGCONFIG_FILES= # empty
|
2015-08-14 18:39:33 +02:00
|
|
|
USE_MOZILLA= -opus
|
2011-03-24 12:04:17 +01:00
|
|
|
MOZILLA_NAME= Firefox
|
2010-02-07 22:48:44 +01:00
|
|
|
|
2014-09-09 08:16:35 +02:00
|
|
|
USE_QT5= # empty
|
2012-07-26 23:49:58 +02:00
|
|
|
QT_NONSTANDARD= yes
|
2011-03-22 16:24:49 +01:00
|
|
|
USE_GL= gl
|
2014-06-11 05:42:55 +02:00
|
|
|
USES= dos2unix tar:bzip2
|
2014-02-05 06:23:30 +01:00
|
|
|
DOS2UNIX_FILES= media/webrtc/trunk/webrtc/system_wrappers/source/spreadsortlib/spreadsort.hpp
|
2005-12-04 23:05:43 +01:00
|
|
|
|
2010-02-07 22:48:44 +01:00
|
|
|
FIREFOX_ICON= ${MOZILLA}.png
|
2013-10-30 21:37:55 +01:00
|
|
|
FIREFOX_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/browser/chrome/icons/default/default48.png
|
2008-02-28 05:39:23 +01:00
|
|
|
MOZ_OPTIONS= --program-transform-name='s/firefox/${MOZILLA}/' \
|
|
|
|
--enable-application=browser \
|
2012-07-26 23:49:58 +02:00
|
|
|
--enable-official-branding
|
2004-02-11 08:31:45 +01:00
|
|
|
|
2015-07-16 08:05:59 +02:00
|
|
|
OPTIONS_DEFAULT= GTK2
|
|
|
|
|
|
|
|
OPTIONS_SINGLE+= TOOLKIT
|
|
|
|
OPTIONS_SINGLE_TOOLKIT= GTK2 GTK3
|
|
|
|
|
2012-07-26 23:49:58 +02:00
|
|
|
.include "${.CURDIR}/../../www/firefox/Makefile.options"
|
2002-10-21 10:54:27 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-12-18 06:02:34 +01:00
|
|
|
|
2015-07-16 08:05:59 +02:00
|
|
|
WRKSRC:= ${WRKDIR}/mozilla-esr38
|
2014-09-09 08:16:35 +02:00
|
|
|
|
2014-02-05 06:23:30 +01:00
|
|
|
.if ${PORT_OPTIONS:MALSA}
|
2014-08-04 11:11:25 +02:00
|
|
|
RUN_DEPENDS+= alsa-lib>=1.0.27.2_1:${PORTSDIR}/audio/alsa-lib
|
2014-02-05 06:23:30 +01:00
|
|
|
.endif
|
|
|
|
|
2015-08-09 18:30:43 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MBUNDLED_CAIRO}
|
|
|
|
BUILD_DEPENDS+= cairo>=1.12.16_1,2:${PORTSDIR}/graphics/cairo
|
|
|
|
.endif
|
|
|
|
|
2014-09-09 08:16:35 +02:00
|
|
|
.if ${PORT_OPTIONS:MGSTREAMER}
|
|
|
|
RUN_DEPENDS+= gstreamer1-libav>=1.2.4_1:${PORTSDIR}/multimedia/gstreamer1-libav
|
|
|
|
.endif
|
|
|
|
|
2015-07-16 08:05:59 +02:00
|
|
|
.if ${PORT_OPTIONS:MGTK3}
|
|
|
|
BUILD_DEPENDS+= gtk3>=3.14.6:${PORTSDIR}/x11-toolkits/gtk30
|
|
|
|
.endif
|
|
|
|
|
2011-08-16 20:14:40 +02:00
|
|
|
post-extract:
|
2006-11-10 08:03:50 +01:00
|
|
|
@${SED} -e 's|@FIREFOX_ICON@|${FIREFOX_ICON}|' -e 's|@MOZILLA@|${MOZILLA}|' \
|
|
|
|
-e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|' \
|
- Update firefox to 1.5
- Add Makefile.common
o A new build/install system for gecko ports, Makefile.common
includes many generic routines and common tasks.
o Fix ld-run-path in all gecko's by using -Wl,-rpath,${moz_libdir}
thus removing the need to have a startup script for ports that
depend on gecko. [2]
o Use system libm, nss, nspr in all gecko ports
- Add bsd.gecko.mk
o This is the predecessor to WITH_MOZILLA=[mozilla|firefox|...]
with a more robust way of detecting a gecko a end user wishs to
use.
o bsd.gecko.mk abstracts the selection of gecko-based backends. It
allows users and porters to support any available gecko backend
without needing to build many conditional tests. ${USE_GECKO} is the
list of backends that your port can handle, and ${GECKO} is set by
bsd.gecko.mk to be the chosen backend. Users set ${WITH_GECKO} to the
list of gecko backends they want on their system.
Port Makefile example:
USE_GECKO=firefox mozilla seamonkey thunderbird
.include <bsd.port.pre.mk>
.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"
End user example:
WITH_GECKO=seamonkey firefox
We highly recommend moving away from using WITH_MOZILLA and switching to
USE/WITH_GECKO.
PR: 89052 [2]
Submitted by: vs [2]
Obtained from: www/firefox
Thanks to: adamw, marcus, and mezz for ideas, bug squashing, and more
sajd from irc.freenode.org/#FreeBSD-Gnome for
pointing out many bugs
2005-11-29 22:12:28 +01:00
|
|
|
<${FILESDIR}/firefox.desktop.in >${WRKDIR}/${MOZILLA}.desktop
|
2002-10-21 20:37:12 +02:00
|
|
|
|
2003-06-02 20:30:59 +02:00
|
|
|
post-patch:
|
2013-10-30 21:37:55 +01:00
|
|
|
@${REINPLACE_CMD} -e '/MOZPNG/s/=[0-9]*/=10511/' \
|
|
|
|
${WRKSRC}/configure.in
|
2012-07-26 23:49:58 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/browser/app/nsBrowserApp.cpp
|
2010-02-07 22:48:44 +01:00
|
|
|
|
|
|
|
pre-configure:
|
2014-10-01 17:07:31 +02:00
|
|
|
(cd ${WRKSRC} && ${LOCALBASE}/bin/autoconf-2.13)
|
|
|
|
(cd ${WRKSRC}/js/src/ && ${LOCALBASE}/bin/autoconf-2.13)
|
2010-02-07 22:48:44 +01:00
|
|
|
|
2004-02-08 20:37:12 +01:00
|
|
|
post-install:
|
2014-06-11 05:42:55 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${MOZILLA}.desktop ${STAGEDIR}${PREFIX}/share/applications/
|
|
|
|
${LN} -sf ${FIREFOX_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${FIREFOX_ICON}
|
2002-10-22 11:26:56 +02:00
|
|
|
|
2002-10-21 10:54:27 +02:00
|
|
|
.include <bsd.port.post.mk>
|