summaryrefslogtreecommitdiff
path: root/www/firefox/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox/Makefile')
-rw-r--r--www/firefox/Makefile43
1 files changed, 14 insertions, 29 deletions
diff --git a/www/firefox/Makefile b/www/firefox/Makefile
index fb8b6a4bdb0..db38151ad6c 100644
--- a/www/firefox/Makefile
+++ b/www/firefox/Makefile
@@ -1,10 +1,20 @@
-# $NetBSD: Makefile,v 1.124 2013/05/19 08:50:24 ryoon Exp $
+# $NetBSD: Makefile,v 1.125 2013/05/23 13:12:13 ryoon Exp $
-.include "../../devel/xulrunner/dist.mk"
+FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
+MOZ_BRANCH= 21.0
+MOZ_BRANCH_MINOR=
+
+DISTNAME= firefox-${FIREFOX_VER}.source
PKGNAME= firefox-${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
+PKGREVISION= 1
CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/} \
+ ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/}
+EXTRACT_SUFX= .tar.bz2
+
+WRKSRC= ${WRKDIR}/mozilla-release
-MAINTAINER= pkgsrc-users@NetBSD.org
+MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://www.mozilla.com/en-US/firefox/
COMMENT= Web browser with support for extensions
LICENSE= mpl-1.1
@@ -14,8 +24,6 @@ MOZILLA_DIR= # empty
# Note: when updating remember to conditionalise about-background.png in PLIST
# XXX Firefox 21.0's firefox/xulrunner separation is not working.
CONFIGURE_ARGS+= --enable-application=browser
-#CONFIGURE_ARGS+= --with-libxul-sdk=${PREFIX}/lib/xulrunner
-#CONFIGURE_ARGS+= --with-system-libxul
# workround for link of libxul.so etc.
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/firefox ${COMPILER_RPATH_FLAG}${PREFIX}/lib
@@ -27,7 +35,7 @@ LDFLAGS.DragonFly= -lplc4 -lnspr4
LDFLAGS.FreeBSD= -lplc4 -lnspr4
LDFLAGS.Linux= -lnspr4
-.include "../../devel/xulrunner/mozilla-common.mk"
+.include "../../www/firefox/mozilla-common.mk"
.include "options.mk"
MOZILLA=firefox
@@ -40,7 +48,6 @@ MOZILLA_NAME= Browser
pre-configure:
cd ${WRKSRC} && autoconf
-# XXX not built here, just to make check-portability.awk shut up.
cd ${WRKSRC}/js/src && autoconf
# XXX Makefile is broken? When libxul is provided from devel/xulrunner,
# XXX please remove this.
@@ -52,8 +59,6 @@ post-build:
-e 's|@FIREFOX_ICON@|${MOZILLA}.png|g' \
< ${FILESDIR}/desktop.in \
> ${WRKDIR}/desktop
-# ${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${FILESDIR}/firefox.sh.in \
-# > ${WRKDIR}/firefox
INSTALLATION_DIRS+= share/applications share/pixmaps
post-install:
@@ -61,26 +66,6 @@ post-install:
${DESTDIR}${PREFIX}/share/applications/${MOZILLA}.desktop
${INSTALL_DATA} ${MOZILLA_ICON} \
${DESTDIR}${PREFIX}/share/pixmaps/${MOZILLA}.png
-# rm -f ${DESTDIR}${PREFIX}/bin/firefox
-# ${INSTALL_SCRIPT} ${WRKDIR}/firefox ${DESTDIR}${PREFIX}/bin
-# XXX Firefox 21.0's firefox/xulrunner separation is not working.
-#BUILDLINK_API_DEPENDS.xulrunner+= xulrunner>=${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
-#BUILD_DEPENDS+= xulrunner-${MOZ_BRANCH}${MOZ_BRANCH_MINOR}{,nb*}:../../devel/xulrunner
-#.include "../../devel/xulrunner/buildlink3.mk"
-#PLIST_VARS+= gnome
-#.if !empty(PKG_BUILD_OPTIONS.xulrunner:Mgnome)
-#CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
-#PLIST.gnome= yes
-#.else
-#CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
-#.endif
-#.if !empty(PKG_BUILD_OPTIONS.xulrunner:Mdebug)
-#CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols
-#CONFIGURE_ARGS+= --disable-install-strip
-#.else
-#CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
-#CONFIGURE_ARGS+= --enable-install-strip
-#.endif
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"