pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/mozilla-bin Rearrange the dependency handling a bi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/975c0b17e324
branches:  trunk
changeset: 480703:975c0b17e324
user:      erh <erh%pkgsrc.org@localhost>
date:      Mon Sep 20 15:45:32 2004 +0000

description:
Rearrange the dependency handling a bit so the right packages get installed
  when MOZ_GTK2 is set.
Add a way to specify a different mozilla.sh script.

diffstat:

 www/mozilla-bin/Makefile.common |  20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diffs (62 lines):

diff -r afc6bd8a13b5 -r 975c0b17e324 www/mozilla-bin/Makefile.common
--- a/www/mozilla-bin/Makefile.common   Mon Sep 20 14:50:46 2004 +0000
+++ b/www/mozilla-bin/Makefile.common   Mon Sep 20 15:45:32 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.22 2004/07/16 09:51:32 grant Exp $
+# $NetBSD: Makefile.common,v 1.23 2004/09/20 15:45:32 erh Exp $
 #
 
 DISTNAME=              # see Makefile.${OPSYS}.${ARCH}
@@ -13,6 +13,7 @@
 USE_LANGUAGES=         # empty
 
 FILESDIR=              ${.CURDIR}/../../www/mozilla-bin/files
+MOZILLA_SCRIPT?=       ${FILESDIR}/mozilla.sh
 
 USE_PKGINSTALL=                YES
 
@@ -72,10 +73,6 @@
 # Linux builds on NetBSD
 .  if ${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "linux"
 .    include "../../emulators/suse_linux/Makefile.application"
-DEPENDS+=      suse_compat>=7.3:../../emulators/${SUSE_DIR_PREFIX}_compat
-DEPENDS+=      suse_x11>=7.3:../../emulators/${SUSE_DIR_PREFIX}_x11
-DEPENDS+=      suse_gtk>=7.3:../../emulators/${SUSE_DIR_PREFIX}_gtk
-
 .  elif ${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "netbsd"
 # we need libstdc++.so.4 on -current.
 .    if !exists(/usr/lib/libstdc++.so.4)
@@ -83,14 +80,23 @@
 _COMPAT16_LIBSTDCXX=   YES
 .    endif
 .  endif
+
 # gtk2 builds.
 .  if defined(MOZ_GTK2) && ${MOZ_GTK2} == "YES"
 .    if ${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "netbsd"
 DEPENDS+=      gtk2+>=2.4:../../x11/gtk2
+.    elif ${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "linux"
+DEPENDS+=      suse_x11>=9.1:../../emulators/${SUSE_DIR_PREFIX}_x11
+DEPENDS+=      suse_gtk2>=9.1:../../emulators/${SUSE_DIR_PREFIX}_gtk2
+DEPENDS+=      suse_locale>=9.1:../../emulators/${SUSE_DIR_PREFIX}_locale
 .    else
 DEPENDS+=      gtk2+>=2.2:../../x11/gtk2
 .    endif
-.  elif (!(${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "linux"))
+.  elif ${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "linux"
+DEPENDS+=      suse_compat>=7.3:../../emulators/${SUSE_DIR_PREFIX}_compat
+DEPENDS+=      suse_x11>=7.3:../../emulators/${SUSE_DIR_PREFIX}_x11
+DEPENDS+=      suse_gtk>=7.3:../../emulators/${SUSE_DIR_PREFIX}_gtk
+.  else
 # default to at least gtk-1.2.
 DEPENDS+=      gtk+>=1.2:../../x11/gtk
 .  endif
@@ -104,7 +110,7 @@
 do-build:
 
 post-build:
-       @${SED} ${FILES_SUBST_SED} ${FILESDIR}/mozilla.sh > ${WRKDIR}/${MOZILLA}.sh
+       @${SED} ${FILES_SUBST_SED} ${MOZILLA_SCRIPT} > ${WRKDIR}/${MOZILLA}.sh
 
 do-install:
        ${INSTALL_DATA_DIR} ${MOZILLA_LIB}



Home | Main Index | Thread Index | Old Index