blob: e75ba364ba97adacd6e401fb84a587807ad215f0 (
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
|
# New ports collection makefile for: thunderbird-lightning
# Date created: 2006-10-13
# Whom: Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
# $MCom: ports/deskutils/lightning-xpi/Makefile,v 1.3 2006/10/13 21:06:25 ahze Exp $
PORTNAME= lightning
PORTVERSION= 0.3
PORTREVISION= 2
CATEGORIES= deskutils
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ahze
PKGNAMESUFFIX= -xpi
DISTNAME= ${PORTNAME}-${PORTVERSION}-tb-FreeBSD-${ARCH}
EXTRACT_SUFX= .xpi
MAINTAINER= gnome@FreeBSD.org
COMMENT= An integrated calendar for Thunderbird
RUN_DEPENDS= thunderbird:${PORTSDIR}/mail/thunderbird
ONLY_FOR_ARCHS= i386 sparc64
NO_BUILD= yes
USE_ZIP= yes
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
PLIST?= ${WRKDIR}/plist
LIGHTNING_DIR= lib/thunderbird/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600000
IGNORE= precompiled binaries for 6.x
.endif
pre-install:
${RM} -f ${PLIST}
cd ${WRKSRC} && ${FIND} -s * -type f -o -type l | \
${SED} -e 's|^|${LIGHTNING_DIR}/|' >> ${PLIST} && \
${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${LIGHTNING_DIR}/|' >> ${PLIST}
${ECHO} "@dirrm ${LIGHTNING_DIR}" >> ${PLIST}
do-install:
${MKDIR} ${PREFIX}/${LIGHTNING_DIR}
${CHMOD} 0755 ${PREFIX}/${LIGHTNING_DIR}
@(cd ${WRKSRC} && ${PAX} -U ${LIBOWN} -G ${LIBGRP} -vrw . ${PREFIX}/${LIGHTNING_DIR})
.if defined(MAKESUM)
.undef DISTNAME
.for arch in ${ONLY_FOR_ARCHS}
DISTFILES+= ${PORTNAME}-${PORTVERSION}-tb-FreeBSD-${arch}${EXTRACT_SUFX}
.endfor
.endif
.include <bsd.port.post.mk>
|