2003-09-04 13:26:06 +02:00
|
|
|
# $NetBSD: Makefile,v 1.9 2003/09/04 11:26:06 grant Exp $
|
2003-03-26 13:55:04 +01:00
|
|
|
#
|
|
|
|
|
2003-04-15 01:45:43 +02:00
|
|
|
DISTNAME= # see Makefile.${OPSYS}.${ARCH}
|
2003-04-14 22:11:46 +02:00
|
|
|
PKGNAME= phoenix-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-04-14 22:18:19 +02:00
|
|
|
CONFLICTS+= phoenix-linux-[0-9]*
|
2003-04-14 22:11:46 +02:00
|
|
|
|
2003-09-04 13:26:06 +02:00
|
|
|
PKGVER!= ${DATE} +%Y%m%d
|
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-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"
|
|
|
|
|
|
|
|
FILES_SUBST+= PLATFORM=${PLATFORM}
|
2003-03-26 13:55:04 +01:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
|
|
|
|
post-build:
|
2003-04-14 23:28:10 +02:00
|
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/phoenix.sh > ${WRKDIR}/phoenix.sh
|
2003-03-26 13:55:04 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PHOENIX_LIB}
|
2003-04-14 23:28:10 +02:00
|
|
|
cd ${WRKSRC} && ${PAX} -rw -pm . ${PHOENIX_LIB}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/phoenix.sh ${PREFIX}/bin/phoenix-${PLATFORM}
|
|
|
|
@${FIND} ${PHOENIX_LIB} -type f -print \
|
|
|
|
| ${XARGS} ${CHMOD} a+r
|
|
|
|
@${FIND} ${PHOENIX_LIB} \( -type f -o -perm +x \) -print \
|
|
|
|
| ${XARGS} ${CHMOD} a+rx
|
|
|
|
@${FIND} ${PHOENIX_LIB} -type d -print \
|
|
|
|
| ${XARGS} ${CHMOD} a+rx
|
2003-06-25 16:13:00 +02:00
|
|
|
@${RM} -f ${PHOENIX_LIB}/plugins/libnullplugin.so
|
2003-03-26 13:55:04 +01:00
|
|
|
|
|
|
|
post-install:
|
2003-07-18 09:31:13 +02:00
|
|
|
# this build for Solaris wants exactly 'libgtk-1.2.so.0', etc.
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
@cd ${PHOENIX_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
|
2003-03-26 13:55:04 +01:00
|
|
|
@${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC}
|
2003-04-14 23:28:10 +02:00
|
|
|
@${ECHO} bin/phoenix-${PLATFORM} >> ${PLIST_SRC}
|
2003-03-26 13:55:04 +01:00
|
|
|
@${FIND} ${PHOENIX_LIB} \( -type f -o -type l \) -print \
|
|
|
|
| ${SORT} | ${SED} -e "s,${PREFIX}/,,g" \
|
|
|
|
>> ${PLIST_SRC}
|
|
|
|
@${FIND} ${PHOENIX_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"
|