2004-02-11 08:16:17 +01:00
|
|
|
# New ports collection makefile for: phoenix
|
|
|
|
# Date created: 2002/10/21
|
|
|
|
# Whom: Alan Eldridge <alane@FreeBSD.org>
|
2002-10-21 10:54:27 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2007-01-18 23:37:11 +01:00
|
|
|
#
|
2002-10-21 10:54:27 +02:00
|
|
|
|
2004-02-11 08:16:17 +01:00
|
|
|
PORTNAME= firefox
|
2012-06-05 23:17:35 +02:00
|
|
|
DISTVERSION= 10.0.5
|
2004-10-28 23:37:53 +02:00
|
|
|
PORTEPOCH= 1
|
2006-12-22 03:04:05 +01:00
|
|
|
CATEGORIES= www ipv6
|
2010-02-07 22:48:44 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA}
|
2012-03-14 10:34:46 +01:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/releases/${DISTVERSION}esr/source
|
|
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}esr.source
|
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
|
|
|
|
2011-08-16 20:14:40 +02:00
|
|
|
BUILD_DEPENDS= nspr>=4.8.8:${PORTSDIR}/devel/nspr \
|
2011-11-08 18:25:16 +01:00
|
|
|
cairo>=1.10.2_1,1:${PORTSDIR}/graphics/cairo \
|
|
|
|
unzip:${PORTSDIR}/archivers/unzip
|
2011-06-21 23:12:31 +02:00
|
|
|
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo \
|
|
|
|
event-1.4:${PORTSDIR}/devel/libevent
|
2006-11-10 08:03:50 +01:00
|
|
|
|
2011-08-25 01:34:00 +02:00
|
|
|
CONFLICTS_BUILD= spidermonkey-*
|
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf213
|
2012-04-18 16:46:31 +02:00
|
|
|
LATEST_LINK= firefox-esr
|
2010-02-07 22:48:44 +01:00
|
|
|
USE_GECKO= gecko
|
2012-04-18 16:46:31 +02:00
|
|
|
CONFLICTS= firefox-1[1-9].*
|
2010-02-07 22:48:44 +01:00
|
|
|
MOZ_PKGCONFIG_FILES= # empty
|
2011-03-22 16:24:49 +01:00
|
|
|
USE_MOZILLA= -png -nss -dbm -jpeg -xft
|
2011-03-24 12:04:17 +01:00
|
|
|
MOZILLA_NAME= Firefox
|
2010-02-07 22:48:44 +01:00
|
|
|
MOZ_TOOLKIT= cairo-gtk2
|
|
|
|
|
|
|
|
MAKE_JOBS_SAFE= yes
|
- 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
|
|
|
WANT_GNOME= yes
|
2003-10-18 23:45:26 +02:00
|
|
|
ALL_TARGET= default
|
2004-06-16 02:10:12 +02:00
|
|
|
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
|
2006-11-10 08:03:50 +01:00
|
|
|
EXTRA_CFLAGS= -O2
|
2004-02-11 08:16:17 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_BZIP2= yes
|
2003-06-02 20:30:59 +02:00
|
|
|
USE_GMAKE= yes
|
2011-03-22 16:24:49 +01:00
|
|
|
USE_GL= gl
|
2010-02-07 22:48:44 +01:00
|
|
|
NO_MOZPKGINSTALL=yes
|
2005-12-04 23:05:43 +01:00
|
|
|
|
2010-02-07 22:48:44 +01:00
|
|
|
FIREFOX_ICON= ${MOZILLA}.png
|
|
|
|
FIREFOX_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/chrome/icons/default/default48.png
|
2008-02-28 05:39:23 +01:00
|
|
|
MOZ_OPTIONS= --program-transform-name='s/firefox/${MOZILLA}/' \
|
|
|
|
--with-default-mozilla-five-home=${PREFIX}/lib/${MOZILLA} \
|
2010-02-07 22:48:44 +01:00
|
|
|
--enable-svg --enable-svg-renderer=cairo \
|
2008-02-28 05:39:23 +01:00
|
|
|
--enable-application=browser \
|
2010-02-07 22:48:44 +01:00
|
|
|
--enable-official-branding --disable-updater \
|
2010-06-23 20:19:08 +02:00
|
|
|
--enable-canvas --enable-libxul --disable-necko-wifi \
|
2011-06-21 23:12:31 +02:00
|
|
|
--with-system-libevent=${LOCALBASE}
|
2004-02-11 08:31:45 +01:00
|
|
|
|
2010-02-07 22:48:44 +01:00
|
|
|
OPTIONS= DBUS "Enable D-BUS support" on \
|
2011-08-16 20:14:40 +02:00
|
|
|
PGO "Enable Profile-Guided Optimization" off
|
2002-10-21 20:37:12 +02:00
|
|
|
|
2002-10-21 10:54:27 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-12-18 06:02:34 +01:00
|
|
|
|
2012-03-14 10:34:46 +01:00
|
|
|
WRKSRC:= ${WRKDIR}/mozilla-esr10
|
2010-02-07 22:48:44 +01:00
|
|
|
|
2008-12-18 23:11:16 +01:00
|
|
|
.if ${HAVE_GNOME:Mlibgnomeui}!=""
|
|
|
|
USE_GNOME+= libgnomeui
|
|
|
|
MOZ_OPTIONS+= --enable-gnomeui
|
|
|
|
.else
|
|
|
|
MOZ_OPTIONS+= --disable-gnomeui
|
|
|
|
.endif
|
|
|
|
|
2010-02-07 22:48:44 +01:00
|
|
|
.if defined(WITHOUT_DBUS)
|
|
|
|
MOZ_OPTIONS+= --disable-dbus --disable-libnotify
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
|
2011-08-23 20:39:19 +02:00
|
|
|
notify.4:${PORTSDIR}/devel/libnotify
|
2007-01-18 22:39:39 +01:00
|
|
|
.endif
|
|
|
|
|
2011-03-22 16:24:49 +01:00
|
|
|
.if defined(WITH_PGO)
|
2012-04-30 11:18:05 +02:00
|
|
|
BROKEN= does not build with PGO option enabled
|
2011-03-22 16:24:49 +01:00
|
|
|
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
|
|
|
|
USE_PYTHON_BUILD= yes
|
|
|
|
USE_DISPLAY= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.python.mk"
|
|
|
|
|
|
|
|
MAKEFILE= client.mk
|
|
|
|
ALL_TARGET= profiledbuild
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == i386
|
|
|
|
BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-extract:
|
|
|
|
.if defined(WITH_PGO)
|
|
|
|
@${ECHO} "*****************************************************************"
|
|
|
|
@${ECHO} "**************************** attention **************************"
|
|
|
|
@${ECHO} "*****************************************************************"
|
|
|
|
@${ECHO} "To build Firefox with PGO support you need a running X server and"
|
|
|
|
@${ECHO} " build this port with an user who could access the X server! "
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "During the build a Firefox instance will start and run some test."
|
|
|
|
@${ECHO} " Do not interrupt or close Firefox during this tests! "
|
|
|
|
@${ECHO} "*****************************************************************"
|
|
|
|
@sleep 10
|
|
|
|
.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:
|
2011-06-21 23:12:31 +02:00
|
|
|
@${GREP} -Flr \"/proc ${WRKSRC}/ipc/chromium/src/base | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e 's|/proc/self/fd|/dev/fd|' \
|
|
|
|
-e 's|/proc["/]|/compat/linux&|'
|
2011-08-16 20:14:40 +02:00
|
|
|
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
|
2010-02-07 22:48:44 +01:00
|
|
|
${WRKSRC}/storage/build/Makefile.in \
|
2011-03-22 16:24:49 +01:00
|
|
|
${WRKSRC}/toolkit/library/Makefile.in \
|
2010-02-07 22:48:44 +01:00
|
|
|
${WRKSRC}/db/sqlite3/src/Makefile.in
|
2006-11-10 08:03:50 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
2010-02-07 22:48:44 +01:00
|
|
|
${WRKSRC}/security/manager/ssl/src/Makefile.in \
|
|
|
|
${WRKSRC}/js/src/config/mkdepend/Makefile.in \
|
2011-09-30 17:07:49 +02:00
|
|
|
${WRKSRC}/js/src/config/config.mk \
|
2011-12-22 10:50:00 +01:00
|
|
|
${WRKSRC}/config/mkdepend/Makefile.in \
|
|
|
|
${WRKSRC}/config/config.mk \
|
2011-09-30 17:07:49 +02:00
|
|
|
${WRKSRC}/xpcom/io/nsAppFileLocationProvider.cpp
|
2010-02-07 22:48:44 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g ; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g ; \
|
|
|
|
s|echo aout|echo elf|g ; \
|
|
|
|
s|/usr/X11R6|${LOCALBASE}|g' \
|
2011-06-21 23:12:31 +02:00
|
|
|
${WRKSRC}/js/src/configure.in
|
2010-02-07 22:48:44 +01:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
(cd ${WRKSRC} && ${AUTOCONF})
|
|
|
|
(cd ${WRKSRC}/js/src/ && ${AUTOCONF})
|
|
|
|
|
2011-03-22 16:24:49 +01:00
|
|
|
post-configure:
|
|
|
|
.if defined(WITH_PGO)
|
|
|
|
@${SED} -e 's|@PYTHON@|${PYTHON_CMD}|' \
|
|
|
|
<${FILESDIR}/mozconfig-profile_guided_optimization.in \
|
|
|
|
>> ${BUILD_WRKSRC}/.mozconfig
|
|
|
|
(cd ${WRKSRC} && ${GMAKE} distclean)
|
|
|
|
.endif
|
|
|
|
|
2010-02-07 22:48:44 +01:00
|
|
|
port-pre-install:
|
|
|
|
${ECHO_CMD} 'share/applications/${MOZILLA}.desktop' >> ${PLISTF}
|
2011-11-02 19:42:51 +01:00
|
|
|
${ECHO_CMD} "@exec mkdir -p %D/include/firefox/nss" >> ${PLISTD}
|
2010-02-07 22:48:44 +01:00
|
|
|
${ECHO_CMD} "@dirrmtry share/applications" >> ${PLISTD}
|
|
|
|
${ECHO_CMD} 'share/pixmaps/${FIREFOX_ICON}' >> ${PLISTF}
|
2004-02-11 08:16:17 +01:00
|
|
|
|
2004-02-08 20:37:12 +01:00
|
|
|
post-install:
|
- 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
|
|
|
${MKDIR} ${PREFIX}/share/applications ${PREFIX}/share/pixmaps
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${MOZILLA}.desktop ${PREFIX}/share/applications/
|
|
|
|
${MKDIR} ${PREFIX}/lib/${MOZILLA}/chrome/icons/default
|
|
|
|
${LN} -sf ${FIREFOX_ICON_SRC} ${PREFIX}/share/pixmaps/${FIREFOX_ICON}
|
2008-01-10 19:02:49 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-10-22 11:26:56 +02:00
|
|
|
|
2002-10-21 10:54:27 +02:00
|
|
|
.include <bsd.port.post.mk>
|