summaryrefslogtreecommitdiffstats
path: root/www/linux-beonex/Makefile
blob: 6b21c90744c88758c24936451dc9df612f2d1b19 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# New ports collection makefile for:	linux-beonex
# Date created:				2002-10-10
# Whom:					trevor
#
# $FreeBSD$
#

PORTNAME=	beonex
PORTVERSION=	0.8.2
PORTREVISION=	1
CATEGORIES=	www linux
MASTER_SITES=	\
http://ftp.ibiblio.org/pub/packages/infosystems/WWW/clients/beonex/communicator/0.8/\
ftp://ftp.ibiblio.org/pub/packages/infosystems/WWW/clients/beonex/communicator/0.8/
PKGNAMEPREFIX=	linux-
DISTNAME=	beonex-comm-${PORTVERSION}-stable-1-linux-i686

PATCH_SITES=	${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR=trevor

MAINTAINER=	trevor@FreeBSD.org
COMMENT=Browser, HTML editor, mail and news client for use with Linux plugins

RUN_DEPENDS=	\
	${LINUXBASE}/usr/lib/libjpeg.so.62.0.0:${PORTSDIR}/graphics/linux-jpeg \
	${LINUXBASE}/usr/lib/libpng.so.2.1.0.16:${PORTSDIR}/graphics/linux-png10 \
	${LINUXBASE}/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk

NO_BUILD=	yes
NO_FILTER_SHLIBS=yes
ONLY_FOR_ARCHS=	i386
PATCHFILES=	linux-beonex-generated-files-${PORTVERSION}.tar.bz2
PKGMESSAGE=	${WRKDIR}/pkg-message
PLIST=		${WRKDIR}/pkg-plist
USE_BZIP2=	yes
USE_LINUX=	yes
PREFIX?=	${X11BASE}
WRKSRC=		${WRKDIR}/beonex-comm

post-extract:
	${RM}	${WRKSRC}/chrome/chatzilla.jar \
		${WRKSRC}/components/chatzilla-service.js

do-patch:
	${BZIP2_CMD} -dc ${DISTDIR}/${DIST_SUBDIR}/${PATCHFILES} | \
		${TAR} -C ${WRKSRC} -xf -
	${ECHO_CMD} "#!/bin/sh"			>${WRKDIR}/linkfarm
	${ECHO_CMD} "# Run this after installing Mozilla or Netscape plugins." \
		>>${WRKDIR}/linkfarm
	${ECHO_CMD} "cd ${PREFIX}/lib/linux-beonex/plugins" \
		>>${WRKDIR}/linkfarm
.for ii in netscape-linux/plugins flash linux-mozilla/plugins \
	linux-netscape*/plugins linux-flashplugin6
		${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-beonex > ${PLIST}
	${ECHO_CMD} "@unexec ${FIND} ${PREFIX}/lib/linux-beonex/plugins -type l\
		-exec ${RM} {} \;" >> ${PLIST}
	cd ${WRKSRC} && ${FIND} -s * -type f -o -type l | \
		${SED} -e 's:^:lib/linux-beonex/:' >> ${PLIST} \
		&& ${FIND} -d * -type d | \
		${SED} -e 's:^:@dirrm lib/linux-beonex/:' >> ${PLIST}
	${ECHO_CMD} lib/linux-beonex/linkfarm >> ${PLIST}
	${ECHO_CMD} @dirrm lib/linux-beonex >> ${PLIST}
	${ECHO_CMD} "@exec ${PREFIX}/lib/linux-beonex/linkfarm" >> ${PLIST}

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

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

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