pkgsrc/www/mozilla/Makefile.common

193 lines
5.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile.common,v 1.45 2004/10/25 13:02:15 sekiya Exp $
Update mozilla to 1.2.1 What's new from Release notes: (See release notes for detail - http://www.mozilla.org/releases/mozilla1.2.1/) Browser * Type Ahead Find is a new feature that allows quick navigation when you type a succession of characters in the browser, matching the text in one or more links on the page. * Building on Mozilla's customizability, you can now show toolbars as text/icons/both (in the default Classic theme). We also have a few other usability improvements like image selection visualization (image highlights with system selection color when selected) and the removal of the confusing toolbar grippies. * Improvements to native look and feel in both the browser interface and the browser content area. We now support most native GTK themes in Mozilla which means that your Mozilla toolbars and other widgets will pick up the GTK theme look and feel. We also support native look and feel for web content like form controls under windowsXP. * Making tabbed browsing even more useful, you can launch the browser with a group of bookmarks as your start page. This loads several pages into tabs at startup. * Keyboard access is greatly improved including additional accesskeys for menus, other ui elements and page elements. * We have a new features that utilizes browser idle time to download or prefetch documents that the user might visit in the near future. * XML prettyprinting, similar to IEs default-view for XML is now available in Mozilla. Mail * Mozilla Mail has a new "filter after the fact" capability so users can create a filter and then run that filter on already downloaded mail. Filter logging has also been implemented which allows power users to see a log of all of the filter actions. * In mail you can now select and copy text from message headers and you can now drag and drop from the message search results window.
2002-12-04 16:20:27 +01:00
MOZ_DIST_VER?= ${MOZ_VER}
DISTNAME?= mozilla-source-${MOZ_DIST_VER}
PKGNAME= ${MOZILLA}-${MOZ_VER}
Update mozilla to 1.2.1 What's new from Release notes: (See release notes for detail - http://www.mozilla.org/releases/mozilla1.2.1/) Browser * Type Ahead Find is a new feature that allows quick navigation when you type a succession of characters in the browser, matching the text in one or more links on the page. * Building on Mozilla's customizability, you can now show toolbars as text/icons/both (in the default Classic theme). We also have a few other usability improvements like image selection visualization (image highlights with system selection color when selected) and the removal of the confusing toolbar grippies. * Improvements to native look and feel in both the browser interface and the browser content area. We now support most native GTK themes in Mozilla which means that your Mozilla toolbars and other widgets will pick up the GTK theme look and feel. We also support native look and feel for web content like form controls under windowsXP. * Making tabbed browsing even more useful, you can launch the browser with a group of bookmarks as your start page. This loads several pages into tabs at startup. * Keyboard access is greatly improved including additional accesskeys for menus, other ui elements and page elements. * We have a new features that utilizes browser idle time to download or prefetch documents that the user might visit in the near future. * XML prettyprinting, similar to IEs default-view for XML is now available in Mozilla. Mail * Mozilla Mail has a new "filter after the fact" capability so users can create a filter and then run that filter on already downloaded mail. Filter logging has also been implemented which allows power users to see a log of all of the filter actions. * In mail you can now select and copy text from message headers and you can now drag and drop from the message search results window.
2002-12-04 16:20:27 +01:00
MASTER_SITES?= ${MASTER_SITE_MOZILLA:=mozilla${MOZ_DIST_VER}/src/}
CATEGORIES= www
2003-07-18 00:50:55 +02:00
MAINTAINER= taya@NetBSD.org
HOMEPAGE?= http://www.mozilla.org/
FILESDIR= "../../www/mozilla/files"
BUILD_DEPENDS+= zip>=2.3:../../archivers/zip
WRKSRC= ${WRKDIR}/mozilla
2004-02-19 14:24:23 +01:00
USE_BUILDLINK3= yes
2003-05-30 01:49:14 +02:00
USE_GCC_SHLIB= yes
2004-02-04 23:23:46 +01:00
USE_LANGUAGES= c c++
USE_PERL5= build
USE_GNU_TOOLS+= make
USE_X11= yes
GNU_CONFIGURE= yes
PKGCONFIG_OVERRIDE+= build/unix/mozilla-gtkmozembed.pc.in
PKGCONFIG_OVERRIDE+= build/unix/mozilla-js.pc.in
PKGCONFIG_OVERRIDE+= build/unix/mozilla-nspr.pc.in
PKGCONFIG_OVERRIDE+= build/unix/mozilla-nss.pc.in
PKGCONFIG_OVERRIDE+= build/unix/mozilla-plugin.pc.in
PKGCONFIG_OVERRIDE+= build/unix/mozilla-xpcom.pc.in
CONFIGURE_ARGS+= --disable-tests \
--disable-debug \
2003-07-29 17:09:09 +02:00
--disable-pedantic \
--with-system-jpeg=${BUILDLINK_PREFIX.jpeg} \
--with-system-png=${BUILDLINK_PREFIX.png} \
--enable-crypto
SHAREMODE?= 644
ALL_TARGET= # empty
AUTOCONF_REQD= 2.13
UNLIMIT_RESOURCES= datasize memorysize stacksize
2004-02-19 14:24:23 +01:00
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
Update mozilla to 1.6 - New features and Fixes from release notes: * One of the most requested Mozilla Mail features, an option to separate the Recipient and Sender columns in the thread pane, has been implemented. * Another frequently requested MailNews feature, a preference for placing the user's signature above the quoted text, has been added. * "Remove from server after x days" has been implemented for POP3 mail accounts. * vCard support has been added to Mozilla Mail. * Mozilla 1.6 includes a new cross-platform NTLM authentication mechanism. This feature brings NTLM authentication to the non-Windows Mozilla users for the first time and also delivers more robust and featureful NTLM support to users of older Windows versions. * Ask Jeeves searching has been added to Mozilla 1.6. * "Translate Page" functionality has returned to this release of Mozilla. * The View Source window now has reload functionality. * Several security-related bugs were fixed in 1.6 * Chatzilla 0.9.48 has been merged, which adds RPL_ISUPPORT support, halfop mode support, and properly masks key and password dialogs. * Many crash bugs have been fixed. * One step closer to the kitchen sink, about:about has been implemented. Typing about:about in the address field will give the user a nice list of available about:s. * The opacity implementation was completely revamped to properly change the opacity of all descendants as a group. * CSS inheritance has been updated to work per CSS2.1 (computed values are inherited). - pkgsrc specific changes * add option to build with gtk2 (not completed yet)(from Jeremy C. Reed) * make mathml optional (for MozillaThunderbird)
2004-01-17 01:04:49 +01:00
.ifdef MOZILLA_USE_GTK2
.include "../../devel/pkgconfig/buildlink3.mk"
2004-02-19 14:24:23 +01:00
.include "../../net/libIDL/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
Update mozilla to 1.6 - New features and Fixes from release notes: * One of the most requested Mozilla Mail features, an option to separate the Recipient and Sender columns in the thread pane, has been implemented. * Another frequently requested MailNews feature, a preference for placing the user's signature above the quoted text, has been added. * "Remove from server after x days" has been implemented for POP3 mail accounts. * vCard support has been added to Mozilla Mail. * Mozilla 1.6 includes a new cross-platform NTLM authentication mechanism. This feature brings NTLM authentication to the non-Windows Mozilla users for the first time and also delivers more robust and featureful NTLM support to users of older Windows versions. * Ask Jeeves searching has been added to Mozilla 1.6. * "Translate Page" functionality has returned to this release of Mozilla. * The View Source window now has reload functionality. * Several security-related bugs were fixed in 1.6 * Chatzilla 0.9.48 has been merged, which adds RPL_ISUPPORT support, halfop mode support, and properly masks key and password dialogs. * Many crash bugs have been fixed. * One step closer to the kitchen sink, about:about has been implemented. Typing about:about in the address field will give the user a nice list of available about:s. * The opacity implementation was completely revamped to properly change the opacity of all descendants as a group. * CSS inheritance has been updated to work per CSS2.1 (computed values are inherited). - pkgsrc specific changes * add option to build with gtk2 (not completed yet)(from Jeremy C. Reed) * make mathml optional (for MozillaThunderbird)
2004-01-17 01:04:49 +01:00
CONFIGURE_ARGS+= --enable-default-toolkit=gtk2
.else
2004-02-19 14:24:23 +01:00
.include "../../graphics/gdk-pixbuf/buildlink3.mk"
.include "../../net/ORBit/buildlink3.mk"
.include "../../x11/gtk/buildlink3.mk"
Update mozilla to 1.6 - New features and Fixes from release notes: * One of the most requested Mozilla Mail features, an option to separate the Recipient and Sender columns in the thread pane, has been implemented. * Another frequently requested MailNews feature, a preference for placing the user's signature above the quoted text, has been added. * "Remove from server after x days" has been implemented for POP3 mail accounts. * vCard support has been added to Mozilla Mail. * Mozilla 1.6 includes a new cross-platform NTLM authentication mechanism. This feature brings NTLM authentication to the non-Windows Mozilla users for the first time and also delivers more robust and featureful NTLM support to users of older Windows versions. * Ask Jeeves searching has been added to Mozilla 1.6. * "Translate Page" functionality has returned to this release of Mozilla. * The View Source window now has reload functionality. * Several security-related bugs were fixed in 1.6 * Chatzilla 0.9.48 has been merged, which adds RPL_ISUPPORT support, halfop mode support, and properly masks key and password dialogs. * Many crash bugs have been fixed. * One step closer to the kitchen sink, about:about has been implemented. Typing about:about in the address field will give the user a nice list of available about:s. * The opacity implementation was completely revamped to properly change the opacity of all descendants as a group. * CSS inheritance has been updated to work per CSS2.1 (computed values are inherited). - pkgsrc specific changes * add option to build with gtk2 (not completed yet)(from Jeremy C. Reed) * make mathml optional (for MozillaThunderbird)
2004-01-17 01:04:49 +01:00
CONFIGURE_ARGS+= --enable-default-toolkit=gtk
.endif
# NetBSD-*-m68k builds, but "regchrome" dumps core.
NOT_FOR_PLATFORM= NetBSD-1.4.*-* NetBSD-*-m68k
MAKE_ENV+= MOZILLA_PKG_NAME=${MOZILLA}
MOZ_LIBDIR= ${PREFIX}/lib/${MOZILLA}
MAKE_ENV+= LIBRUNPATH=${MOZ_LIBDIR}
CONFIGURE_ENV+= LIBRUNPATH=${MOZ_LIBDIR}
LDFLAGS+= ${COMPILER_RPATH_FLAG}${MOZ_LIBDIR}
.ifdef BUILD_SVG
MAKE_ENV+= MOZ_INTERNAL_LIBART_LGPL=1
CONFIGURE_ENV+= MOZ_INTERNAL_LIBART_LGPL=1
CONFIGURE_ARGS+= --enable-svg
CONFIGURE_ARGS+= --enable-svg-renderer-libart
.endif
.ifdef BUILD_CALENDAR
CONFIGURE_ARGS+= --enable-calendar
.endif
Update mozilla to 1.6 - New features and Fixes from release notes: * One of the most requested Mozilla Mail features, an option to separate the Recipient and Sender columns in the thread pane, has been implemented. * Another frequently requested MailNews feature, a preference for placing the user's signature above the quoted text, has been added. * "Remove from server after x days" has been implemented for POP3 mail accounts. * vCard support has been added to Mozilla Mail. * Mozilla 1.6 includes a new cross-platform NTLM authentication mechanism. This feature brings NTLM authentication to the non-Windows Mozilla users for the first time and also delivers more robust and featureful NTLM support to users of older Windows versions. * Ask Jeeves searching has been added to Mozilla 1.6. * "Translate Page" functionality has returned to this release of Mozilla. * The View Source window now has reload functionality. * Several security-related bugs were fixed in 1.6 * Chatzilla 0.9.48 has been merged, which adds RPL_ISUPPORT support, halfop mode support, and properly masks key and password dialogs. * Many crash bugs have been fixed. * One step closer to the kitchen sink, about:about has been implemented. Typing about:about in the address field will give the user a nice list of available about:s. * The opacity implementation was completely revamped to properly change the opacity of all descendants as a group. * CSS inheritance has been updated to work per CSS2.1 (computed values are inherited). - pkgsrc specific changes * add option to build with gtk2 (not completed yet)(from Jeremy C. Reed) * make mathml optional (for MozillaThunderbird)
2004-01-17 01:04:49 +01:00
.ifdef BUILD_MATHML
CONFIGURE_ARGS+= --enable-mathml
.endif
.if exists(${X11BASE}/include/X11/extensions/Xinerama.h) && \
exists(${X11BASE}/lib/libXinerama.so)
CONFIGURE_ARGS+= --enable-xinerama
.endif
# avoid creating a .mozilla directory in the users home
# directory
SCRIPTS_ENV+= HOME="${WRKDIR}"
PLIST_SUBST+= MOZILLA=${MOZILLA}
PLIST_SUBST+= MOZILLA_BIN=${MOZILLA_BIN}
.if ${OBJECT_FMT} == "ELF"
SO_SUFFIX= so
SCRIPTS_ENV+= MOZ_INSTALL_LIB="${INSTALL_PROGRAM}"
.elif ${OBJECT_FMT} == "Mach-O"
SO_SUFFIX= dylib
SCRIPTS_ENV+= MOZ_INSTALL_LIB="${INSTALL_LIB}"
.else
SO_SUFFIX= so.1.0
SCRIPTS_ENV+= MOZ_INSTALL_LIB="${INSTALL_PROGRAM}"
.endif
PLIST_SUBST+= SO_SUFFIX=${SO_SUFFIX}
.if (${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "sparc")
SUNOSLIB=
.else
SUNOSLIB= "@comment "
.endif
PLIST_SUBST+= SUNOSLIB=${SUNOSLIB}
SCRIPTS_ENV+= OBJECT_FMT=${OBJECT_FMT:Q}
SCRIPTS_ENV+= PLIST_SRC=${PLIST_SRC:Q}
SCRIPTS_ENV+= SED=${SED:Q}
SCRIPTS_ENV+= RM=${RM:Q}
SCRIPTS_ENV+= EGREP=${EGREP:Q}
SCRIPTS_ENV+= CHOWN=${CHOWN:Q}
SCRIPTS_ENV+= CHGRP=${CHGRP:Q}
SCRIPTS_ENV+= CHMOD=${CHMOD:Q}
SCRIPTS_ENV+= BINOWN=${BINOWN:Q}
SCRIPTS_ENV+= BINGRP=${BINGRP:Q}
SCRIPTS_ENV+= BINMODE=${BINMODE:Q}
SCRIPTS_ENV+= SETENV=${SETENV:Q}
SCRIPTS_ENV+= MOZILLA=${MOZILLA:Q}
SCRIPTS_ENV+= MOZILLA_BIN=${MOZILLA_BIN:Q}
SCRIPTS_ENV+= SO_SUFFIX=${SO_SUFFIX:Q}
SCRIPTS_ENV+= SUNOSLIB=${SUNOSLIB}
PTHREAD_OPTS+= native optional
.if (${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "x86_64")
GCC_REQD+= 3.4
.endif
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc*)
COPTS?= -O2
.endif
CONFIGURE_ARGS+= --enable-optimize=${COPTS:Q}
XPTCFILES+= xptcinvoke_asm_sparc64_netbsd.s xptcstubs_asm_sparc64_netbsd.s
XPTCFILES+= xptcinvoke_sparc64_netbsd.cpp xptcstubs_sparc64_netbsd.cpp
.if ${OPSYS} == "Darwin"
BUILDLINK_PASSTHRU_DIRS+=/Developer
.endif
post-extract:
.for F in ${XPTCFILES}
${CP} ${FILESDIR}/${F} ${WRKSRC}/xpcom/reflect/xptcall/src/md/unix/${F}
.endfor
pre-configure:
cd ${WRKSRC} && ${AUTOCONF}
cd ${WRKSRC}/nsprpub && ${AUTOCONF}
post-build:
${ECHO} skin,install,select,classic/1.0 >> \
${WRKSRC}/dist/bin/chrome/installed-chrome.txt
${ECHO} locale,install,select,en-US >> \
${WRKSRC}/dist/bin/chrome/installed-chrome.txt
do-install:
${SETENV} ${SCRIPTS_ENV} ${SH} ${FILESDIR}/moz-install
2004-02-19 14:24:23 +01:00
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
CONFIGURE_ARGS+= --without-pthreads
.else
CONFIGURE_ARGS+= --with-pthreads
.endif
.if ${MOZILLA_USE_XFT} == "YES" && exists(${X11BASE}/include/X11/Xdefs.h)
CONFIGURE_ARGS+= --enable-xft
# pkgconfig defaults to a "build" dependency, which is what we want.
2004-02-19 14:24:23 +01:00
.include "../../devel/pkgconfig/buildlink3.mk"
.include "../../fonts/Xft2/buildlink3.mk"
.endif
# Fix for firefox* packages.
SUBST_CLASSES= pc
SUBST_STAGE.pc= post-extract
SUBST_FILES.pc= build/unix/*.pc.in
SUBST_SED.pc= -e "s|%includedir%|${PREFIX}/include/${MOZILLA}|g" \
-e "s|%libdir%|${PREFIX}/lib/${MOZILLA}|g"
SUBST_MESSAGE.pc= "Fixing pkgconfig files."
.include "../../mk/autoconf.mk"
.include "../../mk/bsd.pkg.mk"