blob: e580beba8bf877af767ec45b7f641969069bc345 (
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: firefox-remote
# Date created: 13 May 2004
# Whom: Franz Klammer <klammer@webonaut.com>
#
# $FreeBSD$
#
PORTNAME= firefox
PORTVERSION= 20040803
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.webonaut.com/distfiles/${PORTNAME}${PKGNAMESUFFIX}/
PKGNAMESUFFIX= -remote
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
MAINTAINER= klammer@webonaut.com
COMMENT= Wrapper scripts for firefox web browser
USE_BZIP2= yes
UTF8_HACK= no
FIREFOX_REMOTE= ${PORTNAME}${PKGNAMESUFFIX}
THUNDERBIRD_REMOTE= thunderbird${PKGNAMESUFFIX}
OPTIONS=UTF8_LOCALE "Use UTF8 locale (read Makefile for details)" off \
MENU_FIREFOX "Add menu entry for firefox" off \
MENU_THUNDERBIRD "Add menu entry for thunderbird" off
.include <bsd.port.pre.mk>
# firefox/thunderbird can't display unicode filenames with special
# characters like umlaute in german correctly if a ISO-locale is set.
# when enabled the remote scripts try to switch to the UTF8-locale if
# available (e.g. de_DE.UTF8 instead of de_DE.ISO8859-xx)
.if defined(WITH_UTF8_LOCALE)
UTF8_HACK= yes
.endif
.if defined(WITH_MENU_FIREFOX)
PLIST_SUB+= MENU_FIREFOX=""
.else
PLIST_SUB+= MENU_FIREFOX="@comment "
.endif
.if defined(WITH_MENU_THUNDERBIRD)
PLIST_SUB+= MENU_THUNDERBIRD=""
.else
PLIST_SUB+= MENU_THUNDERBIRD="@comment "
.endif
do-build:
@${REINPLACE_CMD} -e 's|@X11BASE@|${PREFIX}|g' \
${WRKSRC}/${FIREFOX_REMOTE}
@${REINPLACE_CMD} -e 's|@UTF8@|${UTF8_HACK}|g' \
${WRKSRC}/${FIREFOX_REMOTE}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${FIREFOX_REMOTE} \
${PREFIX}/bin/${FIREFOX_REMOTE}
${RM} -f ${PREFIX}/bin/${THUNDERBIRD_REMOTE}
${LN} -s ${PREFIX}/bin/${FIREFOX_REMOTE} \
${PREFIX}/bin/${THUNDERBIRD_REMOTE}
.if defined (WITH_MENU_FIREFOX)
${INSTALL_DATA} ${WRKSRC}/mozilla_firefox.desktop \
${X11BASE}/share/applications/
${INSTALL_DATA} ${WRKSRC}/mozilla_firefox.png \
${X11BASE}/share/pixmaps/
.endif
.if defined (WITH_MENU_THUNDERBIRD)
${INSTALL_DATA} ${WRKSRC}/mozilla_thunderbird.desktop \
${X11BASE}/share/applications/
${INSTALL_DATA} ${WRKSRC}/mozilla_thunderbird.png \
${X11BASE}/share/pixmaps/
.endif
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|