summaryrefslogtreecommitdiffstats
path: root/www/linux-mozillafirebird/Makefile
blob: 2f72f221ed9f7ec4714af4dfc2e359fc49e1950d (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
# New ports collection makefile for:	linux-phoenix
# Date created:				2002-10-10
# Whom:					trevor
#
# $FreeBSD$
#

PORTNAME=	phoenix
PORTVERSION=	0.3
CATEGORIES=	www linux
MASTER_SITES=	${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR=	phoenix/releases/${PORTVERSION}
PKGNAMEPREFIX=	linux-
DISTNAME=	phoenix-${PORTVERSION}-i686-pc-linux-gnu

MAINTAINER=	voisine@bytemobile.com

RUN_DEPENDS=	\
	${LINUXBASE}/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk

NO_BUILD=	yes
NO_FILTER_SHLIBS=yes
ONLY_FOR_ARCHS=	i386
PKGMESSAGE=	${WRKDIR}/pkg-message
PLIST=		${WRKDIR}/pkg-plist
USE_LINUX=	yes
USE_XLIB=	yes
USE_X_PREFIX=	yes
WRKSRC=		${WRKDIR}/phoenix

do-patch:
	${ECHO_CMD} "#!/bin/sh"		> ${WRKDIR}/linkfarm
	${ECHO_CMD} \
	"# Run this after installing Beonex, Mozilla or Netscape plugins." \
		>>${WRKDIR}/linkfarm
	${ECHO_CMD} "cd ${PREFIX}/lib/linux-phoenix/plugins" \
		>>${WRKDIR}/linkfarm
.for ii in linux-beonex/plugins netscape-linux/plugins flash \
	linux-mozilla/plugins linux-netscape*/plugins
		${ECHO_CMD} -n "${FIND} ${LOCALBASE}/lib/${ii}/*" \
			>>${WRKDIR}/linkfarm
		${ECHO_CMD} " -maxdepth 1 -exec ${LN} -s {} \; 2>/dev/null" \
			>>${WRKDIR}/linkfarm
.endfor

pre-install:
	${ECHO_CMD} bin/linux-phoenix > ${PLIST}
	${ECHO_CMD} "@unexec ${FIND} ${PREFIX}/lib/linux-phoenix/plugins \
		-type l -exec ${RM} {} \;" >> ${PLIST}
	cd ${WRKSRC} && ${FIND} -s * -type f -o -type l | \
		${SED} -e 's:^:lib/linux-phoenix/:' >> ${PLIST} \
		&& ${FIND} -d * -type d | \
		${SED} -e 's:^:@dirrm lib/linux-phoenix/:' >> ${PLIST}
	${ECHO_CMD} lib/linux-phoenix/linkfarm >> ${PLIST}
	${ECHO_CMD} @dirrm lib/linux-phoenix >> ${PLIST}
	${ECHO_CMD} "@exec ${PREFIX}/lib/linux-phoenix/linkfarm" >> ${PLIST}

do-install:
	${MKDIR} ${PREFIX}/lib/linux-phoenix
	${CHMOD} 755 ${PREFIX}/lib/linux-phoenix
	cd ${WRKSRC} && ${FIND} * | \
		cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/linux-phoenix
	${LN} -s ${PREFIX}/lib/linux-phoenix/phoenix \
		${PREFIX}/bin/linux-phoenix
	${INSTALL_SCRIPT} ${WRKDIR}/linkfarm ${PREFIX}/lib/linux-phoenix

post-install:
	@${ECHO_CMD} \*\* After adding plugins to \(Linux\) Beonex,
	@${ECHO_CMD} \*\* Mozilla or Netscape, run\
		> ${PKGMESSAGE}
	@${ECHO_CMD} \*\* ${PREFIX}/lib/linux-beonex/linkfarm >> ${PKGMESSAGE}
	@${ECHO_CMD} \*\* as root to make them available to linux-phoenix. \
		>> ${PKGMESSAGE}
	@- ${SH} ${PREFIX}/lib/linux-phoenix/linkfarm || true
	@ ${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud