91aaeb575c
the (only) master site, and there is little value in having the daily distfiles on ftp.NetBSD.org.
74 lines
2.2 KiB
Makefile
74 lines
2.2 KiB
Makefile
# $NetBSD: Makefile,v 1.6 2003/09/04 11:30:18 grant Exp $
|
|
#
|
|
|
|
DISTNAME= # see Makefile.${OPSYS}.${ARCH}
|
|
PKGNAME= mozilla-bin-${PKGVER}
|
|
WRKSRC= ${WRKDIR}/mozilla
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://ftp.mozilla.org/pub/mozilla/nightly/latest/
|
|
|
|
MAINTAINER= grant@NetBSD.org
|
|
HOMEPAGE= http://www.mozilla.org/
|
|
COMMENT= Full featured gecko-based browser (nightly binary pkg)
|
|
|
|
ONLY_FOR_PLATFORM= Linux-*-i[3-6]86 NetBSD-*-i386 SunOS-5.[789]*-sparc
|
|
|
|
PKGVER!= ${DATE} +%Y%m%d
|
|
DIST_SUBDIR= ${PKGNAME}
|
|
NO_CHECKSUM= # defined
|
|
NO_CONFIGURE= # defined
|
|
NO_SRC_ON_FTP= # 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}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/mozilla.sh ${PREFIX}/bin/mozilla-${PLATFORM}
|
|
@${FIND} ${MOZILLA_LIB} -type f -print \
|
|
| ${XARGS} ${CHMOD} a+r
|
|
@${FIND} ${MOZILLA_LIB} \( -type f -o -perm +x \) -print \
|
|
| ${XARGS} ${CHMOD} a+rx
|
|
@${FIND} ${MOZILLA_LIB} -type d -print \
|
|
| ${XARGS} ${CHMOD} a+rx
|
|
|
|
post-install:
|
|
# this build for Solaris wants exactly 'libgtk-1.2.so.0', etc.
|
|
.if ${OPSYS} == "SunOS"
|
|
@cd ${MOZILLA_LIB} && \
|
|
${LN} -s ${LOCALBASE}/lib/libglib.*so* .; \
|
|
${LN} -s ${LOCALBASE}/lib/libgmodule.*so* .; \
|
|
${LN} -s ${X11BASE}/lib/libgdk.*so* .; \
|
|
${LN} -s ${X11BASE}/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
|
|
.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}
|
|
|
|
# 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"
|