blob: 1cb0ad8932c88c5026681c9b26f9b17444915966 (
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
|
# New ports collection makefile for: firetray
# Date created: 2010-08-27
# Whom: Andriy Gapon <avg@icyb.net.ua>
#
# $FreeBSD$
#
PORTNAME= firetray
DISTVERSION= 0.2.8
PORTREVISION= 1
CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= avg@icyb.net.ua
COMMENT= System tray add-on for firefox, thunderbird, seamonkey, etc
PATCH_DEPENDS= nspr>=4.8:${PORTSDIR}/devel/nspr \
pkg-config:${PORTSDIR}/devel/pkg-config
USE_ZIP= yes
USE_GECKO= libxul
USE_SCONS= yes
USE_GNOME= pkgconfig
WRKSRC= ${WRKDIR}/${PORTNAME}
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
GECKO_CONFIG= ${LOCALBASE}/bin/pkg-config ${GECKO}
BUILD_SH_FLAGS= --dynamic-linking \
--gecko-sdk-bin=`${DIRNAME} ${XPIDL}` \
--gecko-sdk-lib=`${GECKO_CONFIG} --variable=sdkdir`/lib \
--gecko-sdk-idl=`${GECKO_CONFIG} --variable=idldir` \
--gecko-sdk-include=`${GECKO_CONFIG} --variable=includedir`
NSPR_INCLUDE= `${LOCALBASE}/bin/pkg-config nspr --variable=includedir`
PLIST_DIRS= ${DATADIR:S,${PREFIX}/,,}
PLIST_FILES= ${DATADIR:S,${PREFIX}/,,}/${PORTNAME}.xpi
post-patch:
@${REINPLACE_CMD} s,/usr/include/nspr,${NSPR_INCLUDE}, \
${WRKSRC}/components/SConscript
do-build:
cd ${WRKSRC} && ./build.sh ${BUILD_SH_FLAGS}
do-install:
${MKDIR} ${DATADIR} && \
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.xpi ${DATADIR}
.include <bsd.port.mk>
|