aboutsummaryrefslogtreecommitdiffstats
path: root/www/mozex/Makefile.xpi
blob: 2ad122c92d2f7ec06e48801003f6e850960b48d7 (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
# Date created:           Sun Oct 26, 2003
# Whom:               Thierry Thomas (<thierry@pompo.net>)
#
# $FreeBSD$
#

USE_GECKO=  seamonkey mozilla
.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"

EXTRACT_SUFX=   .xpi

NO_BUILD=   yes
USE_ZIP=    yes

PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL=   ${PKGINSTALL}

MOZLDIR=    lib/${GECKO}
MOZDIR=     ${X11BASE}/${MOZLDIR}
PLIST_SUB=  MOZDIR=${MOZLDIR}

pre-configure:
    ${SED} -e 's|%%GECKO%%|${GECKO}|g'  \
        < ${.CURDIR}/../../www/mozex/pkg-install.xpi    \
        > ${PKGINSTALL}

pre-install:
.if ${PREFIX} != ${X11BASE}
    @${ECHO_MSG} ""
    @${ECHO_MSG} "${PREFIX} invalid - must be installed under ${X11BASE}."
    @${ECHO_MSG} ""
    @${FALSE}
.else
    @${CP} ${FILESDIR}/installed-chrome.txt ${MOZDIR}/${PORTNAME}-installed-chrome.txt
.endif

post-install:
    @${ECHO_CMD} ${MOZLDIR}/${PORTNAME}-installed-chrome.txt >> ${TMPPLIST}
    @${CAT} ${MOZDIR}/${PORTNAME}-installed-chrome.txt  \
        >> ${MOZDIR}/chrome/installed-chrome.txt
    @${ECHO_CMD} "@exec ${CAT} ${MOZDIR}/${PORTNAME}-installed-chrome.txt \
        >> ${MOZDIR}/chrome/installed-chrome.txt" >> ${TMPPLIST}
    @${SETENV} PKG_PREFIX=${PREFIX} \
    ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.if exists(${PKGMESSAGE})
    @${CAT} ${PKGMESSAGE}
.endif