diff options
Diffstat (limited to 'www/mozilla-bin/Makefile')
-rw-r--r-- | www/mozilla-bin/Makefile | 77 |
1 files changed, 6 insertions, 71 deletions
diff --git a/www/mozilla-bin/Makefile b/www/mozilla-bin/Makefile index ee3b79a4c2f..e849c877659 100644 --- a/www/mozilla-bin/Makefile +++ b/www/mozilla-bin/Makefile @@ -1,74 +1,9 @@ -# $NetBSD: Makefile,v 1.12 2003/12/23 03:50:51 grant Exp $ -# +# $NetBSD: Makefile,v 1.13 2004/01/04 05:01:02 grant Exp $ -DISTNAME= # see Makefile.${OPSYS}.${ARCH} -PKGNAME= mozilla-bin-1.5 -WRKSRC= ${WRKDIR}/mozilla -CATEGORIES= www +MOZILLA= mozilla +MOZ_VER= 1.5 -MAINTAINER= grant@NetBSD.org -HOMEPAGE= http://www.mozilla.org/ -COMMENT= Full featured gecko-based browser (binary pkg) +ONLY_FOR_PLATFORM+= Linux-*-i[3-6]86 NetBSD-*-i386 +ONLY_FOR_PLATFORM+= SunOS-5.[789]*-sparc SunOS-5.[89]*-i386 -ONLY_FOR_PLATFORM= Linux-*-i[3-6]86 NetBSD-*-i386 SunOS-5.[89]*-sparc - -CONFLICTS+= mozilla-linux-[0-9]* - -NO_CONFIGURE= # defined -USE_PKGINSTALL= YES - -.include "../../mk/bsd.prefs.mk" - -FILES_SUBST+= PLATFORM=${PLATFORM} -PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC - -do-build: - -post-build: - @${SED} ${FILES_SUBST_SED} ${FILESDIR}/mozilla.sh > \ - ${WRKDIR}/mozilla.sh - -do-install: - ${INSTALL_DATA_DIR} ${MOZILLA_LIB} - cd ${WRKSRC} && ${PAX} -rw -pm . ${MOZILLA_LIB} - @${FIND} ${MOZILLA_LIB} -type f -print \ - | ${XARGS} ${CHMOD} a+r - @${FIND} ${MOZILLA_LIB} \( -type f -o -perm -u+x \) -print \ - | ${XARGS} ${CHMOD} a+rx - @${FIND} ${MOZILLA_LIB} -type d -print \ - | ${XARGS} ${CHMOD} a+rx - ${INSTALL_SCRIPT} ${WRKDIR}/mozilla.sh ${PREFIX}/bin/mozilla-${PLATFORM} - -post-install: -# this build wants exactly 'libgtk-1.2.so.0', etc. -.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" - @cd ${MOZILLA_LIB} && \ - ${LN} -s ${PREFIX}/lib/libglib.*so* .; \ - ${LN} -s ${PREFIX}/lib/libgmodule.*so* .; \ - ${LN} -s ${X11PREFIX}/lib/libgdk.*so* .; \ - ${LN} -s ${X11PREFIX}/lib/libgtk.*so* .; \ - ${LN} -s libgtk.so libgtk-1.2.so.0; \ - ${LN} -s libgdk.so libgdk-1.2.so.0; \ - ${LN} -s libglib.so libglib-1.2.so.0; \ - ${LN} -s libgmodule.so libgmodule-1.2.so.0 -.endif - @${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC} - @${ECHO} bin/mozilla-${PLATFORM} >> ${PLIST_SRC} - @${FIND} ${MOZILLA_LIB} \( -type f -o -type l \) -print \ - | ${SORT} | ${SED} -e "s,${PREFIX}/,,g" \ - >> ${PLIST_SRC} - @${FIND} ${MOZILLA_LIB} -type d -print \ - | ${SORT} -r | ${SED} -e "s,${PREFIX}/,@dirrm ,g" \ - >> ${PLIST_SRC} - -.include "../../mk/bsd.prefs.mk" - -# everything specific to your OS/Arch goes into it's own Makefile -# group together i386, i486, i586 and i686 (for Linux) -ARCH=${MACHINE_ARCH:C/i[3-6]86/i386/g} - -.if exists(Makefile.${OPSYS}.${ARCH}) -. include "Makefile.${OPSYS}.${ARCH}" -.endif - -.include "../../mk/bsd.pkg.mk" +.include "../../www/mozilla-bin/Makefile.common" |