summaryrefslogtreecommitdiffstats
path: root/mail/moztraybiff/Makefile
blob: 058a5835500cac857a802f7dff419c89f660d48d (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
# New ports collection makefile for:    moztraybiff
# Date created:             19 March, 2005
# Whom:                 Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   moztraybiff
PORTVERSION=    1.2.2
PORTREVISION=   1
CATEGORIES= mail gnome
MASTER_SITES=   ${MASTER_SITE_MOZDEV}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   mozTrayBiff-${PORTVERSION}

MAINTAINER= adamw@FreeBSD.org
COMMENT=    New mail tray icon for Thunderbird

BROKEN=     fails to install

BUILD_DEPENDS=  ${LOCALBASE}/lib/thunderbird/components/libwidget_gtk2.so:${PORTSDIR}/mail/thunderbird \
        zip:${PORTSDIR}/archivers/zip
RUN_DEPENDS=    ${LOCALBASE}/lib/thunderbird/components/libwidget_gtk2.so:${PORTSDIR}/mail/thunderbird

.if !exists(../thunderbird/Makefile)
BROKEN=     ${PORTNAME} needs the Thunderbird port in order to build
.else
TBVER!=     cd ../thunderbird && ${MAKE} -V PORTVERSION
.endif

USE_XLIB=   yes
USE_GMAKE=  yes
USE_GNOME=  libgnome
MAKE_ARGS+= MOZILLA_PLATFORM=tbird TBVER=${TBVER} MOZ_TRUNK=0

FILENAME=   mozTrayBiff-${PORTVERSION}-tb${TBVER}.xpi
PLIST_FILES=    share/${PORTNAME}/${FILENAME}
PLIST_DIRS= share/${PORTNAME}

SUB_FILES=  pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message

.include <bsd.port.pre.mk>

post-patch:
.if ${OSVERSION} < 500000
    @${REINPLACE_CMD} -e "s|-fshort-wchar||" \
        ${WRKSRC}/components/Makefile
.endif
    @${REINPLACE_CMD} -e "s|^#!/bin/bash|#!/bin/sh|" \
        ${WRKSRC}/get-platform

do-install:
    @${MKDIR} ${DATADIR}
    @${INSTALL} -m 644 ${WRKSRC}/${FILENAME} ${DATADIR}

post-install:
    @${ECHO_MSG}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_MSG}

.include <bsd.port.post.mk>