blob: aeb3180d7eb72760df744b3f8e56812982cfbc1b (
plain) (
blame)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# New ports collection makefile for: sunbird
# Date created: 2005-02-26
# Whom: Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= lightning
DISTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= deskutils
MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED}
MASTER_SITE_SUBDIR= calendar/${PORTNAME}/releases/${DISTVERSION}b1/source
DISTNAME= ${PORTNAME}-sunbird-${DISTVERSION}b1.source
MAINTAINER= gecko@FreeBSD.org
COMMENT= An integrated calendar for Thunderbird and SeaMonkey
RUN_DEPENDS+= ${LOCALBASE}/lib/seamonkey/seamonkey-bin:${PORTSDIR}/www/seamonkey2
CONFLICTS_BUILD= spidermonkey-1.[0-7]*
USE_AUTOTOOLS= autoconf213 libtool
ALL_TARGET= default
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
MAKE_ENV= PTHREAD_LDFLAGS="${PTHREAD_LIBS}"
HAS_CONFIGURE= yes
USE_GMAKE= yes
USE_BZIP2= yes
USE_GECKO= gecko
MAKE_JOBS_SAFE= yes
WANT_GNOME= yes
WANT_PERL= yes
USE_MOZILLA= -png -dbm -jpeg -xft
MOZ_TOOLKIT= cairo-gtk2
LIBS= -Wl,-Bsymbolic -lc
MOZ_PKGCONFIG_FILES= ${PORTNAME}-js ${PORTNAME}-xpcom ${PORTNAME}-plugin
PKGCONFIG_FILES= ${MOZ_PKG_CONFIG_FILES}
MOZ_OPTIONS= --enable-application=calendar \
--enable-system-cairo \
--enable-canvas
MOZ_MK_OPTIONS= MOZ_CO_PROJECT=calendar
NOGECKO_PLIST= yes
NOGECKO_INSTALL= yes
LATEST_LINK= mozilla-lightning
.include <bsd.init.mk>
.include <bsd.libnames.mk>
.include <bsd.port.pre.mk>
XPI_FILE= ${DISTNAME:C/.source//:C/-sunbird//}-freebsd${OSVERSION:C/([0-9]).+/\1/}-${ARCH}.xpi
PLIST_FILES= %%DATADIR%%/${XPI_FILE}
PLIST_DIRS= %%DATADIR%%
WRKSRC= ${WRKDIR}/comm-1.9.1
MOZSRC:= ${WRKSRC}/mozilla
.if ${OSVERSION} < 700000
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
EXTRA_PATCHES= ${FILESDIR}/releng6_pulseaudio
.else
EXTRA_PATCHES= ${FILESDIR}/liboggplay_oss
.endif
.if defined(WITHOUT_DBUS)
MOZ_OPTIONS+= --disable-dbus
.else
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
.endif
post-patch:
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
${MOZSRC}/storage/build/Makefile.in \
${MOZSRC}/db/sqlite3/src/Makefile.in
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${MOZSRC}/security/manager/ssl/src/Makefile.in \
${MOZSRC}/js/src/config/mkdepend/Makefile.in \
${MOZSRC}/js/src/config/config.mk
@${REINPLACE_CMD} -e 's|%%LIB_BZ2%%|${LIBBZ2}|' \
${MOZSRC}/toolkit/mozapps/update/src/updater/Makefile.in
@${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g ; \
s|-lpthread|${PTHREAD_LIBS}|g ; \
s|echo aout|echo elf|g ; \
s|/usr/X11R6|${LOCALBASE}|g' \
${MOZSRC}/js/src/configure \
${MOZSRC}/configure
pre-configure:
(cd ${WRKSRC} && ${AUTOCONF})
(cd ${MOZSRC} && ${AUTOCONF})
(cd ${MOZSRC}/js/src/ && ${AUTOCONF})
# XXX: Workaround for bug 533070. Should be fixed in next release
${CP} ${WRKSRC}/calendar/sunbird/app/*.png ${WRKSRC}/calendar/sunbird/branding/nightly/
${CP} ${WRKSRC}/calendar/sunbird/app/*.xpm ${WRKSRC}/calendar/sunbird/branding/nightly/
${CP} ${WRKSRC}/calendar/sunbird/app/*.ico ${WRKSRC}/calendar/sunbird/branding/nightly/
${MKDIR} ${WRKSRC}/calendar/sunbird/branding/nightly/content/
${CP} ${WRKSRC}/calendar/sunbird/base/branding/*.png ${WRKSRC}/calendar/sunbird/branding/nightly/content/
${MKDIR} ${WRKSRC}/calendar/sunbird/branding/nightly/locales/en-US
${CP} ${WRKSRC}/calendar/locales/en-US/chrome/branding/brand.* ${WRKSRC}/calendar/sunbird/branding/nightly/locales/en-US/
post-build:
@(cd ${MOZSRC}/xpfe/components/autocomplete/src && ${GMAKE})
do-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${MOZSRC}/dist/xpi-stage/${PORTNAME}.xpi ${DATADIR}/${XPI_FILE}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|