blob: 47b2df99e33aeffc685123b53f8b9ea49ec35a6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# $NetBSD: Makefile,v 1.11 2003/09/05 05:59:49 wiz Exp $
#
DISTNAME= # see Makefile.${OPSYS}.${ARCH}
PKGNAME= phoenix-bin-${PKGVER}
WRKSRC= ${WRKDIR}/MozillaFirebird
CATEGORIES= www
MAINTAINER= grant@NetBSD.org
HOMEPAGE= http://www.mozilla.org/projects/firebird/
COMMENT= Lightweight gecko-based web browser (nightly binary pkg)
ONLY_FOR_PLATFORM= Linux-*-i[3-6]86 NetBSD-*-i386 SunOS-5.[789]*-sparc
CONFLICTS+= phoenix-linux-[0-9]*
DIST_SUBDIR= ${PKGNAME}
NO_CHECKSUM= # defined
NO_CONFIGURE= # defined
NO_SRC_ON_FTP= # defined
USE_PKGINSTALL= YES
.include "../../mk/bsd.prefs.mk"
PKGVER!= ${DATE} +%Y%m%d
FILES_SUBST+= PLATFORM=${PLATFORM}
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
do-build:
post-build:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/phoenix.sh > ${WRKDIR}/phoenix.sh
do-install:
${INSTALL_DATA_DIR} ${PHOENIX_LIB}
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
@${RM} -f ${PHOENIX_LIB}/plugins/libnullplugin.so
post-install:
# 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
@${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC}
@${ECHO} bin/phoenix-${PLATFORM} >> ${PLIST_SRC}
@${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"
|