head	1.18;
access;
symbols
	pkgsrc-2013Q2:1.18.0.6
	pkgsrc-2013Q2-base:1.18
	pkgsrc-2012Q4:1.18.0.4
	pkgsrc-2012Q4-base:1.18
	pkgsrc-2011Q4:1.18.0.2
	pkgsrc-2011Q4-base:1.18
	pkgsrc-2011Q2:1.17.0.18
	pkgsrc-2011Q2-base:1.17
	pkgsrc-2011Q1:1.17.0.16
	pkgsrc-2011Q1-base:1.17
	pkgsrc-2010Q4:1.17.0.14
	pkgsrc-2010Q4-base:1.17
	pkgsrc-2010Q3:1.17.0.12
	pkgsrc-2010Q3-base:1.17
	pkgsrc-2010Q2:1.17.0.10
	pkgsrc-2010Q2-base:1.17
	pkgsrc-2010Q1:1.17.0.8
	pkgsrc-2010Q1-base:1.17
	pkgsrc-2009Q4:1.17.0.6
	pkgsrc-2009Q4-base:1.17
	pkgsrc-2009Q3:1.17.0.4
	pkgsrc-2009Q3-base:1.17
	pkgsrc-2009Q2:1.17.0.2
	pkgsrc-2009Q2-base:1.17
	pkgsrc-2009Q1:1.16.0.2
	pkgsrc-2009Q1-base:1.16
	pkgsrc-2008Q4:1.15.0.2
	pkgsrc-2008Q4-base:1.15
	pkgsrc-2008Q3:1.14.0.8
	pkgsrc-2008Q3-base:1.14
	cube-native-xorg:1.14.0.6
	cube-native-xorg-base:1.14
	pkgsrc-2008Q2:1.14.0.4
	pkgsrc-2008Q2-base:1.14
	cwrapper:1.14.0.2
	pkgsrc-2008Q1:1.13.0.2
	pkgsrc-2008Q1-base:1.13
	pkgsrc-2007Q4:1.11.0.2
	pkgsrc-2007Q4-base:1.11
	pkgsrc-2007Q3:1.8.0.2
	pkgsrc-2007Q3-base:1.8
	pkgsrc-2007Q2:1.3.0.6
	pkgsrc-2007Q2-base:1.3
	pkgsrc-2007Q1:1.3.0.4
	pkgsrc-2007Q1-base:1.3
	pkgsrc-2006Q4:1.3.0.2
	pkgsrc-2006Q4-base:1.3
	pkgsrc-2006Q3:1.1.0.2
	pkgsrc-2006Q3-base:1.1;
locks; strict;
comment	@# @;


1.18
date	2011.10.02.14.12.05;	author wiz;	state dead;
branches;
next	1.17;

1.17
date	2009.06.14.22.58.10;	author joerg;	state Exp;
branches;
next	1.16;

1.16
date	2009.01.04.18.48.47;	author shattered;	state Exp;
branches;
next	1.15;

1.15
date	2008.11.20.13.11.19;	author tron;	state Exp;
branches;
next	1.14;

1.14
date	2008.05.26.02.13.25;	author joerg;	state Exp;
branches;
next	1.13;

1.13
date	2008.03.07.05.06.16;	author jlam;	state Exp;
branches;
next	1.12;

1.12
date	2008.02.13.14.43.00;	author obache;	state Exp;
branches;
next	1.11;

1.11
date	2007.12.22.07.22.10;	author obache;	state Exp;
branches;
next	1.10;

1.10
date	2007.10.25.21.04.25;	author jlam;	state Exp;
branches;
next	1.9;

1.9
date	2007.10.19.10.53.00;	author ghen;	state Exp;
branches;
next	1.8;

1.8
date	2007.10.07.19.59.29;	author dmcmahill;	state Exp;
branches;
next	1.7;

1.7
date	2007.08.23.18.20.35;	author jlam;	state Exp;
branches;
next	1.6;

1.6
date	2007.08.23.13.43.57;	author jlam;	state Exp;
branches;
next	1.5;

1.5
date	2007.08.06.08.51.40;	author tron;	state Exp;
branches;
next	1.4;

1.4
date	2007.07.29.05.20.04;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2006.11.25.21.38.51;	author jdolecek;	state Exp;
branches;
next	1.2;

1.2
date	2006.11.25.20.28.49;	author jdolecek;	state Exp;
branches;
next	1.1;

1.1
date	2006.09.24.16.35.39;	author salo;	state Exp;
branches;
next	;


desc
@@


1.18
log
@Remove packages scheduled to be deleted according to the pkgsrc-2011Q2
release notes.
@
text
@# $NetBSD: Makefile.common,v 1.17 2009/06/14 22:58:10 joerg Exp $

DISTNAME=		${MOZILLA}${MOX_EXTRA}-bin	# overridden below
PKGNAME=		${MOZILLA}${MOZ_EXTRA}-bin-${MOZ_VER}
CATEGORIES=		www

MAINTAINER?=		pkgsrc-users@@NetBSD.org
HOMEPAGE?=		http://www.mozilla.org/

WRKSRC?=		${WRKDIR}/${MOZILLA}
BUILD_DIRS?=		# empty
USE_LANGUAGES=		# empty
USE_TOOLS+=		pax

FILESDIR=		${.CURDIR}/../../www/seamonkey-bin/files
MOZILLA_SCRIPT?=	${FILESDIR}/mozilla.sh

.include "../../mk/bsd.prefs.mk"

# Include Makefile.${EMUL_PLATFORM} to get definitions for DISTNAME,
# MOZ_PLATFORM and MOZ_GTK2.
#
.sinclude "${.CURDIR}/Makefile.${EMUL_PLATFORM}"

.if defined(MOZ_GTK2) && !empty(MOZ_GTK2:M[Yy][Ee][Ss])
EMUL_MODULES.linux=	compat gtk2 locale alsa resmgr
EMUL_REQD=		suse>=9.1
.else
EMUL_MODULES.linux=	compat gtk
EMUL_REQD=		suse>=7.3
.endif

.if defined(EMUL_IS_NATIVE)
.  if defined(MOZ_GTK2) && !empty(MOZ_GTK2:M[Yy][Ee][Ss])
DEPENDS+=		gtk2+>=2.2:../../x11/gtk2
.  else
DEPENDS+=		gtk+>=1.2:../../x11/gtk
.  endif
.endif

MOZILLA_SHORT=		${MOZILLA}
MOZ_DIR?=		${MOZ_VER}
MOZ_PLATFORM?=		${LOWER_OPSYS}

MASTER_SITES?=		${MASTER_SITE_MOZILLA:=${MOZILLA_SHORT}/releases/${MOZ_DIR}/}

MOZILLA_LIB=	${PREFIX}/lib/${MOZILLA}${MOZ_EXTRA}-${MOZ_PLATFORM}

FILES_SUBST+=	MOZILLA=${MOZILLA:Q}
FILES_SUBST+=	MOZ_EXTRA=${MOZ_EXTRA:Q}
FILES_SUBST+=	MOZ_PLATFORM=${MOZ_PLATFORM:Q}

INSTALLATION_DIRS=	bin

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	${WRKDIR}/${MOZILLA}.sh
SUBST_SED.paths+=	-e 's,@@PREFIX@@,${PREFIX},g'
SUBST_SED.paths+=	-e 's,@@SH@@,${SH},g'
SUBST_SED.paths+=	-e 's,@@MOZILLA@@,${MOZILLA},g'
SUBST_SED.paths+=	-e 's,@@MOZ_EXTRA@@,${MOZ_EXTRA},g'
SUBST_SED.paths+=	-e 's,@@MOZ_PLATFORM@@,${MOZ_PLATFORM},g'
SUBST_STAGE.paths=	post-patch

# we don't want libnullplugin.
post-extract:
	@@${RM} -f ${WRKSRC}/plugins/libnullplugin.so
	${CP} ${MOZILLA_SCRIPT} ${WRKDIR}/${MOZILLA}.sh

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${MOZILLA_LIB}
	cd ${WRKSRC} && pax -rw -pm . ${DESTDIR}${MOZILLA_LIB}
	${INSTALL_SCRIPT} ${WRKDIR}/${MOZILLA}.sh \
		${DESTDIR}${PREFIX}/bin/${MOZILLA}${MOZ_EXTRA}-${MOZ_PLATFORM}
	@@${FIND} ${DESTDIR}${MOZILLA_LIB} -type f -print \
		| ${XARGS} ${CHMOD} a+r
	@@${FIND} ${DESTDIR}${MOZILLA_LIB} \( -type f -o -perm -u+x \) -print \
		| ${XARGS} ${CHMOD} a+rx
	@@${FIND} ${DESTDIR}${MOZILLA_LIB} -type d -print \
		| ${XARGS} ${CHMOD} a+rx

# builds typically want exactly 'libgtk-1.2.so.0', etc. symlink them
# into the mozilla directory.
post-install:
.if defined(EMUL_IS_NATIVE)
.  if defined(MOZ_GTK2) && !empty(MOZ_GTK2:M[Yy][Ee][Ss])
	@@cd ${DESTDIR}${MOZILLA_LIB} &&					\
	${LN} -s ${PREFIX}/lib/libatk-1.0.*so* .;			\
	${LN} -s ${X11PREFIX}/lib/libgdk-x11-2.0.*so* .;		\
	${LN} -s ${PREFIX}/lib/libgdk_pixbuf-2.0.*so* .;		\
	${LN} -s ${PREFIX}/lib/libglib-2.0.*so* .;			\
	${LN} -s ${PREFIX}/lib/libgmodule-2.0.*so* .;			\
	${LN} -s ${PREFIX}/lib/libgobject-2.0.*so* .;			\
	${LN} -s ${X11PREFIX}/lib/libgtk-x11-2.0.*so* .;		\
	${LN} -s ${PREFIX}/lib/libpango-1.0.*so* .;			\
	${LN} -s ${PREFIX}/lib/libpangox-1.0.*so* .;			\
	${LN} -s ${PREFIX}/lib/libpangoxft-1.0.*so* .;			\
	\
	${LN} -s libatk-1.0.so libatk-1.0.so.0;				\
	${LN} -s libgdk-x11-2.0.so libgdk-x11-2.0.so.0;			\
	${LN} -s libgdk_pixbuf-2.0.so libgdk_pixbuf-2.0.so.0;		\
	${LN} -s libglib-2.0.so libglib-2.0.so.0;			\
	${LN} -s libgmodule-2.0.so libgmodule-2.0.so.0;			\
	${LN} -s libgobject-2.0.so libgobject-2.0.so.0;			\
	${LN} -s libgtk-x11-2.0.so libgtk-x11-2.0.so.0;			\
	${LN} -s libpango-1.0.so libpango-1.0.so.0;			\
	${LN} -s libpangox-1.0.so libpangox-1.0.so.0;			\
	${LN} -s libpangoxft-1.0.so libpangoxft-1.0.so.0
.  else
	@@cd ${DESTDIR}${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
.endif
	@@${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/mozilla-linux/plugins

GENERATE_PLIST+=							\
	${ECHO} bin/${MOZILLA}${MOZ_EXTRA}-${MOZ_PLATFORM};		\
	${FIND} ${DESTDIR}${MOZILLA_LIB} \( -type f -o -type l \) -print\
		| ${SORT} | ${SED} -e "s,${DESTDIR}${PREFIX}/,,g";	\
	${ECHO} "@@pkgdir lib/mozilla-linux/plugins";

.include "../../mk/bsd.pkg.mk"
@


1.17
log
@Remove @@dirrm related logic.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.16 2009/01/04 18:48:47 shattered Exp $
@


1.16
log
@Update versions of nightly binaries (older ones are unavailable on master site).
These binaries also depend on alsa and resmgr -- include those in EMUL_MODULES.

Partially fixes PR 40119 -- the binaries don't run yet.

OK by wiz@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.15 2008/11/20 13:11:19 tron Exp $
d126 1
a126 3
	${FIND} ${DESTDIR}${MOZILLA_LIB} -type d -print			\
		| ${SORT} -r | ${SED} -e "s,${DESTDIR}${PREFIX}/,@@dirrm ,g"; \
	${ECHO} "@@exec ${MKDIR} %D/lib/mozilla-linux/plugins";
@


1.15
log
@Set the default maintainer for Mozilla related binary packages to
<pkgsrc-users@@NetBSD.org> and only assign the "firefox-bin" package
to <grant@@NetBSD.org> because that is the package he really created.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.14 2008/05/26 02:13:25 joerg Exp $
d26 1
a26 1
EMUL_MODULES.linux=	compat gtk2 locale
@


1.14
log
@Second round of explicit pax dependencies. As reminded by tnn@@,
many packages used to use ${PAX}. Use the common way of directly calling
pax, it is created as tool after all.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.13 2008/03/07 05:06:16 jlam Exp $
d7 1
a7 1
MAINTAINER=		grant@@NetBSD.org
@


1.13
log
@Add support for user-destdir installation.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.12 2008/02/13 14:43:00 obache Exp $
d13 1
d71 1
a71 1
	cd ${WRKSRC} && ${PAX} -rw -pm . ${DESTDIR}${MOZILLA_LIB}
@


1.12
log
@Define MASTER_SITE simply.  Don't add "contrib" automatically.
No package using "contrib" sub directory now and it is redundant.
If such a package exists on a platform, should use MOZ_DIR individually instead.

This change also fixes fetch problem of www/firefox-bin when MASTER_SITE_MOZILLA
is not defined in /etc/mk.conf.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.11 2007/12/22 07:22:10 obache Exp $
d69 5
a73 4
	${INSTALL_DATA_DIR} ${MOZILLA_LIB}
	cd ${WRKSRC} && ${PAX} -rw -pm . ${MOZILLA_LIB}
	${INSTALL_SCRIPT} ${WRKDIR}/${MOZILLA}.sh ${PREFIX}/bin/${MOZILLA}${MOZ_EXTRA}-${MOZ_PLATFORM}
	@@${FIND} ${MOZILLA_LIB} -type f -print \
d75 1
a75 1
	@@${FIND} ${MOZILLA_LIB} \( -type f -o -perm -u+x \) -print \
d77 1
a77 1
	@@${FIND} ${MOZILLA_LIB} -type d -print \
d85 1
a85 1
	@@cd ${MOZILLA_LIB} && \
d108 1
a108 1
	@@cd ${MOZILLA_LIB} && \
d119 1
a119 1
	@@${INSTALL_DATA_DIR} ${PREFIX}/lib/mozilla-linux/plugins
d123 4
a126 4
	${FIND} ${MOZILLA_LIB} \( -type f -o -type l \) -print		\
		| ${SORT} | ${SED} -e "s,${PREFIX}/,,g";		\
	${FIND} ${MOZILLA_LIB} -type d -print				\
		| ${SORT} -r | ${SED} -e "s,${PREFIX}/,@@dirrm ,g";	\
@


1.11
log
@Change MOZILLA master sites difinitions, related to PR 37379.

There are three types Mozilla mirrors.
(http://www.mozilla.org/mirroring.html)
 * mozilla-current
        contains only the current version of Firefox and Thunderbird
 * mozilla-release
        contains Firefox, Thunderbird, and Sunbird releases
 * mozilla-all
        complete archive

Define following variables for mozilla master sites:
        MASTER_SITE_MOZILLA_ALL = mozilla-all
        MASTER_SITE_MOZILLA     = mozilla-release
and change some packages to use appropriate variable.

Update contents of MASTER_SITE_MOZILLA with master and primary mirrors
taken from http://www.mozilla.org/mirrors.html and add some sample definitions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.10 2007/10/25 21:04:25 jlam Exp $
d44 1
a44 7
.if !defined(MASTER_SITES)
_MASTER_SITES+=		${MASTER_SITE_MOZILLA:=${MOZILLA_SHORT}/releases/${MOZ_DIR}/}
.  for _site_ in ${_MASTER_SITES}
MASTER_SITES+=		${_site_}
MASTER_SITES+=		${_site_}contrib/
.  endfor
.endif
@


1.10
log
@Move code that generates a dynamic PLIST from the {pre,do,post}-install
targets and into a GENERATE_PLIST variable definition.  Remove some
unnecessary empty PLISTs as a result of properly setting GENERATE_PLIST.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.9 2007/10/19 10:53:00 ghen Exp $
d45 1
a45 8
_MASTER_SITES+=		http://ftp.mozilla.org/pub/mozilla.org/${MOZILLA_SHORT}/releases/${MOZ_DIR}/
_MASTER_SITES+=		ftp://ftp.mozilla.org/pub/mozilla.org/${MOZILLA_SHORT}/releases/${MOZ_DIR}/
_MASTER_SITES+=		http://public.planetmirror.com.au/pub/${MOZILLA_SHORT}/releases/${MOZ_DIR}/
_MASTER_SITES+=		ftp://public.planetmirror.com.au/pub/${MOZILLA_SHORT}/releases/${MOZ_DIR}/
_MASTER_SITES+=		ftp://ftp.tuwien.ac.at/infosys/browsers/${MOZILLA_SHORT}/releases/${MOZ_DIR}/
_MASTER_SITES+=		ftp://ftp.uni-erlangen.de/pub/mozilla.org/${MOZILLA_SHORT}/releases/${MOZ_DIR}/
_MASTER_SITES+=		ftp://ftp.fu-berlin.de/unix/network/www/${MOZILLA_SHORT}/releases/${MOZ_DIR}/
_MASTER_SITES+=		http://ftp.cvut.cz/mozilla/${MOZILLA_SHORT}/releases/${MOZ_DIR}/
@


1.9
log
@Remove MESSAGE concerning NetBSD 1.5 which has been deprecated.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.8 2007/10/07 19:59:29 dmcmahill Exp $
a63 1
PLIST_SRC=	${WRKDIR}/PLIST_DYNAMIC
d132 8
a139 9
	@@${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC}
	@@${ECHO} bin/${MOZILLA}${MOZ_EXTRA}-${MOZ_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}
	@@${ECHO} @@exec ${MKDIR} %D/lib/mozilla-linux/plugins >> ${PLIST_SRC}
@


1.8
log
@fix a broken depends line (gtk+ lives in x11/gtk2 not gtk2+)
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.7 2007/08/23 18:20:35 jlam Exp $
a63 1
MESSAGE_SUBST+=	PKGBASE=${PKGBASE}
a65 4
.if (${OPSYS} == "NetBSD") && (${EMUL_OPSYS} == "linux")
MESSAGE_SRC+=	${.CURDIR}/../../www/seamonkey-bin/MESSAGE.compat_linux
.endif

@


1.7
log
@Allow a nicer syntax for expressing needing at least a certain version
of an emulated operating system.  Instead of proliferating things like
SUSE_VERSION_REQD, NETBSD_VERSION_REQD, SOLARIS_VERSION_REQD, etc., a
package can say:

	EMUL_REQD=	suse>=9.1 netbsd>=2.0 solaris>=10

all in one, succinct line.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.6 2007/08/23 13:43:57 jlam Exp $
d36 1
a36 1
DEPENDS+=		gtk2+>=1.2:../../x11/gtk
@


1.6
log
@Define a variable EMUL_IS_NATIVE if the emulated operating system
matches the native operating system.  Use it in place of checking
whether EMUL_DISTRO matches "native-*" as EMUL_DISTRO is no longer
defined after bsd.prefs.mk is included.

This should fix PR pkg/36823 by Robert Elz.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.5 2007/08/06 08:51:40 tron Exp $
d26 1
a26 1
SUSE_VERSION_REQD=	9.1
d29 1
a29 1
SUSE_VERSION_REQD=	7.3
@


1.5
log
@Correct order of includes and checks. The "firefox-bin" package now gets
the necessary dependence on the "suse_gtk2" package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.4 2007/07/29 05:20:04 jlam Exp $
d32 1
a32 1
.if !empty(EMUL_DISTRO:Mnative-*)
d101 1
a101 1
.if !empty(EMUL_DISTRO:Mnative-*)
@


1.4
log
@* Add new emulator framework in pkgsrc/mk/emulator that handles all
  binary-only packages that require binary "emulation" on the native
  operating system.  Please see pkgsrc/mk/emulator/README for more
  details.

* Teach the plist framework to automatically use any existing
  PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition.

* Convert all of the binary-only packages in pkgsrc to use the
  emulator framework.  Most of them have been tested to install and
  deinstall correctly.  This involves the following cleanup actions:

    * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM}
      more consistently.

    * Simplify packages by using default INSTALL and DEINSTALL scripts
      instead of custom INSTALL/DEINSTALL code.

    * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc.
      Packages only need to state exactly which emulations they support,
      and the framework handles any i386-on-x86_64 or sparc-on-sparc64
      uses.

    * Remove "USE_NATIVE_LINUX" from pkgsrc.  The framework will
      automatically detect when the package is installing on Linux.

  Specific changes to packages include:

    * Bump the PKGREVISIONs for all of the suse100* and suse91* packages
      due to changes in the +INSTALL/+DEINSTALL scripts used in all
      of the packages.

    * Remove pkgsrc/emulators/suse_linux, which is unused by any
      packages.

    * cad/lc -- remove custom code to create the distinfo file for
	all supported platforms; just use "emul-fetch" and "emul-distinfo"
	instead.

    * lang/Cg-compiler -- install the shared libraries under ${EMULDIR}
	instead of ${PREFIX}/lib so that compiled programs will find
	the shared libraries.

    * mail/thunderbird-bin-nightly -- update to latest binary
	distributions for supported platforms.

    * multimedia/ns-flash -- update Linux version to 9.0.48 as the
	older version is no longer available for interactive fetch.

    * security/uvscan -- set LD_LIBRARY_PATH explicitly so that
	it's not necessary to install library symlinks into
	${EMULDIR}/usr/local/lib.

    * www/firefox-bin-flash -- update Linux version to 9.0.48 as the
	older version is no longer available for interactive fetch.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.3 2006/11/25 21:38:51 jdolecek Exp $
d17 7
a31 2
.include "../../mk/bsd.prefs.mk"

a39 5
# Include Makefile.${EMUL_PLATFORM} to get definitions for DISTNAME
# and MOZ_PLATFORM.
#
.sinclude "${.CURDIR}/Makefile.${EMUL_PLATFORM}"

@


1.3
log
@seamonkey-bin/Makefile.common - allow override of MOZ_DIR

update firefox-bin and firefox2-bin to override MOZ_DIR to point
to the binary Linux distribution; kill their own MASTER_SITES

now firefox-bin and firefox2-bin automaticaly pick up mirror
changes in the master script
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.2 2006/11/25 20:28:49 jdolecek Exp $
d3 1
a3 1
DISTNAME=		# see Makefile.${OPSYS}.${ARCH}
d11 1
a11 1
NO_CONFIGURE=		yes
d17 7
d27 7
a33 3
# everything specific to your OS/Arch goes into its own Makefile
# group together i386, i486, i586 and i686 (for Linux)
ARCH=${MACHINE_ARCH:C/i[3-6]86/i386/g}
d35 4
a38 3
.if exists(${.CURDIR}/Makefile.${OPSYS}.${ARCH})
.  include "${.CURDIR}/Makefile.${OPSYS}.${ARCH}"
.endif
d42 1
d67 1
a67 5
# protect against MOZ_PLATFORM being undefined so we don't bomb, but
# instead use the result of ONLY_FOR_PLATFORM.
.if defined(MOZ_PLATFORM)

.  if ${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "linux"
d69 1
a69 33
.  endif

# Linux builds on NetBSD
.  if ${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "linux"
.    include "../../emulators/suse_linux/Makefile.application"
.  elif ${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "netbsd"
# we need libstdc++.so.4 on -current.
.    if !exists(/usr/lib/libstdc++.so.4)
DEPENDS+=	compat16>=1.6.0:../../emulators/compat16
_COMPAT16_LIBSTDCXX=	YES
.    endif
.  endif

# GTK2 builds.
.  if defined(MOZ_GTK2) && !empty(MOZ_GTK2:M[Yy][Ee][Ss])
.    if ${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "netbsd"
DEPENDS+=	gtk2+>=2.4:../../x11/gtk2
.    elif ${OPSYS} == "NetBSD" && ${MOZ_PLATFORM} == "linux"
DEPENDS+=	suse_compat>=9.1:../../emulators/${SUSE_DIR_PREFIX}_compat
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"
DEPENDS+=	suse_compat>=7.3:../../emulators/${SUSE_DIR_PREFIX}_compat
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

.endif	# defined(MOZ_PLATFORM)
a86 2
do-build:

d101 2
a102 2
.if ${OPSYS} != "NetBSD"
.  if defined(MOZ_GTK2) && ${MOZ_GTK2} == "YES"
a136 4
.if defined(_COMPAT16_LIBSTDCXX) && ${_COMPAT16_LIBSTDCXX} == "YES"
	@@cd ${MOZILLA_LIB} && \
		${LN} -s ${PREFIX}/emul/netbsd16/usr/lib/libstdc++.so* .
.endif
@


1.2
log
@add ftp.uni-erlangen.de mirror, which appears to have faster foreign internet
connectivity then ftp.fu-berlin.de (at least into .CZ)
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.1 2006/09/24 16:35:39 salo Exp $
d29 1
a29 1
MOZ_DIR=		${MOZ_VER}
@


1.1
log
@Sync files with www/mozilla-bin, use various files from seamonkey-bin dir
instead of mozilla-bin.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.35 2006/05/03 19:48:10 jdolecek Exp $
d37 1
@

