2003-12-17 03:57:10 +01:00
|
|
|
# $NetBSD: Makefile,v 1.4 2003/12/17 02:57:10 grant Exp $
|
2003-03-26 13:55:04 +01:00
|
|
|
#
|
|
|
|
|
2003-04-15 01:45:43 +02:00
|
|
|
DISTNAME= # see Makefile.${OPSYS}.${ARCH}
|
2003-09-27 16:13:07 +02:00
|
|
|
PKGNAME= MozillaFirebird-bin-${PKGVER}
|
2003-05-25 08:52:52 +02:00
|
|
|
WRKSRC= ${WRKDIR}/MozillaFirebird
|
2003-03-26 13:55:04 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
|
2003-05-25 08:52:52 +02:00
|
|
|
MAINTAINER= grant@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.mozilla.org/projects/firebird/
|
2003-03-26 13:55:04 +01:00
|
|
|
COMMENT= Lightweight gecko-based web browser (nightly binary pkg)
|
|
|
|
|
2003-04-14 23:28:10 +02:00
|
|
|
ONLY_FOR_PLATFORM= Linux-*-i[3-6]86 NetBSD-*-i386 SunOS-5.[789]*-sparc
|
2003-03-26 13:55:04 +01:00
|
|
|
|
2003-09-27 16:13:07 +02:00
|
|
|
# this package was formerly named "phoenix-linux", and
|
|
|
|
# "phoenix-bin".
|
2003-04-14 22:18:19 +02:00
|
|
|
CONFLICTS+= phoenix-linux-[0-9]*
|
2003-09-27 16:13:07 +02:00
|
|
|
CONFLICTS+= phoenix-bin-[0-9]*
|
2003-04-14 22:11:46 +02:00
|
|
|
|
2003-03-26 13:55:04 +01:00
|
|
|
DIST_SUBDIR= ${PKGNAME}
|
2003-09-04 13:26:06 +02:00
|
|
|
NO_CHECKSUM= # defined
|
|
|
|
NO_CONFIGURE= # defined
|
2003-09-04 13:30:18 +02:00
|
|
|
NO_SRC_ON_FTP= # defined
|
2003-09-04 13:26:06 +02:00
|
|
|
|
2003-04-14 23:28:10 +02:00
|
|
|
USE_PKGINSTALL= YES
|
2003-03-26 13:55:04 +01:00
|
|
|
|
2003-04-14 23:28:10 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-09-05 07:59:48 +02:00
|
|
|
PKGVER!= ${DATE} +%Y%m%d
|
|
|
|
|
2003-04-14 23:28:10 +02:00
|
|
|
FILES_SUBST+= PLATFORM=${PLATFORM}
|
2003-03-26 13:55:04 +01:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
|
|
|
|
|
2003-12-17 03:57:10 +01:00
|
|
|
# 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
|
|
|
|
|
2003-03-26 13:55:04 +01:00
|
|
|
do-build:
|
|
|
|
|
|
|
|
post-build:
|
2003-09-27 16:13:07 +02:00
|
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/MozillaFirebird.sh > \
|
|
|
|
${WRKDIR}/MozillaFirebird.sh
|
2003-03-26 13:55:04 +01:00
|
|
|
|
|
|
|
do-install:
|
2003-09-27 16:13:07 +02:00
|
|
|
${INSTALL_DATA_DIR} ${MOZILLA_LIB}
|
|
|
|
cd ${WRKSRC} && ${PAX} -rw -pm . ${MOZILLA_LIB}
|
2003-10-01 08:21:27 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/MozillaFirebird.sh \
|
2003-09-27 16:13:07 +02:00
|
|
|
${PREFIX}/bin/MozillaFirebird-${PLATFORM}
|
|
|
|
@${FIND} ${MOZILLA_LIB} -type f -print \
|
2003-04-14 23:28:10 +02:00
|
|
|
| ${XARGS} ${CHMOD} a+r
|
2003-09-27 16:13:07 +02:00
|
|
|
@${FIND} ${MOZILLA_LIB} \( -type f -o -perm +x \) -print \
|
2003-04-14 23:28:10 +02:00
|
|
|
| ${XARGS} ${CHMOD} a+rx
|
2003-09-27 16:13:07 +02:00
|
|
|
@${FIND} ${MOZILLA_LIB} -type d -print \
|
2003-04-14 23:28:10 +02:00
|
|
|
| ${XARGS} ${CHMOD} a+rx
|
2003-09-27 16:13:07 +02:00
|
|
|
@${RM} -f ${MOZILLA_LIB}/plugins/libnullplugin.so
|
2003-03-26 13:55:04 +01:00
|
|
|
|
|
|
|
post-install:
|
2003-10-19 10:35:09 +02:00
|
|
|
# this build wants exactly 'libgtk-1.2.so.0', etc.
|
|
|
|
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
|
2003-09-27 16:13:07 +02:00
|
|
|
@cd ${MOZILLA_LIB} && \
|
2003-10-19 10:35:09 +02:00
|
|
|
${LN} -s ${PREFIX}/lib/libglib.*so* .; \
|
|
|
|
${LN} -s ${PREFIX}/lib/libgmodule.*so* .; \
|
|
|
|
${LN} -s ${X11PREFIX}/lib/libgdk.*so* .; \
|
|
|
|
${LN} -s ${X11PREFIX}/lib/libgtk.*so* .; \
|
2003-07-18 09:31:13 +02:00
|
|
|
${LN} -s libgtk.so libgtk-1.2.so.0; \
|
|
|
|
${LN} -s libgdk.so libgdk-1.2.so.0; \
|
2003-10-19 10:35:09 +02:00
|
|
|
${LN} -s libglib.so libglib-1.2.so.0; \
|
|
|
|
${LN} -s libgmodule.so libgmodule-1.2.so.0
|
2003-12-17 03:57:10 +01:00
|
|
|
.endif
|
|
|
|
.if ${_COMPAT16_LIBSTDCXX} == "YES"
|
|
|
|
@cd ${MOZILLA_LIB} && \
|
|
|
|
${LN} -s ${PREFIX}/emul/netbsd16/usr/lib/libstdc++.so* .
|
2003-07-18 09:31:13 +02:00
|
|
|
.endif
|
2003-03-26 13:55:04 +01:00
|
|
|
@${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC}
|
2003-09-27 16:13:07 +02:00
|
|
|
@${ECHO} bin/MozillaFirebird-${PLATFORM} >> ${PLIST_SRC}
|
|
|
|
@${FIND} ${MOZILLA_LIB} \( -type f -o -type l \) -print \
|
2003-03-26 13:55:04 +01:00
|
|
|
| ${SORT} | ${SED} -e "s,${PREFIX}/,,g" \
|
|
|
|
>> ${PLIST_SRC}
|
2003-09-27 16:13:07 +02:00
|
|
|
@${FIND} ${MOZILLA_LIB} -type d -print \
|
2003-03-26 13:55:04 +01:00
|
|
|
| ${SORT} -r | ${SED} -e "s,${PREFIX}/,@dirrm ,g" \
|
|
|
|
>> ${PLIST_SRC}
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|