aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/mozilla-jlp-devel/Makefile
blob: 9565b6d6c069279da50bbe543240454cbe1ade47 (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
# New ports collection makefile for:    ja-mozilla-jlp
# Date created:     02 Jul 2000
# Whom:         Yoichi ASAI <yatt@msc.biglobe.ne.jp>
#
# $FreeBSD$
#

PORTNAME=   mozilla
PORTVERSION=    0.9.8
PORTREVISION=   1
PORTEPOCH=  1
CATEGORIES= japanese www
MASTER_SITES=   http://www.ash.ne.jp/~mal/mozilla/ \
        http://dev.jp/ \
        http://www.mozilla.gr.jp/jlp/
PKGNAMESUFFIX=  -jlp
DISTNAME=   ${PORTNAME}${PORTVERSION}-jajppack-v1.0
EXTRACT_SUFX=   .xpi

MAINTAINER= yatt@msc.biglobe.ne.jp

BUILD_DEPENDS=  ${X11BASE}/lib/mozilla/regxpcom:${PORTSDIR}/www/mozilla
RUN_DEPENDS=    mozilla:${PORTSDIR}/www/mozilla \
        ${PKG_DBDIR}/ja-bdf-fonts-1.0:${PORTSDIR}/japanese/bdf-fonts

WRKSRC=     ${WRKDIR}/bin

USE_X_PREFIX=   yes
USE_ZIP=    yes
EXTRACT_BEFORE_ARGS=    -qo

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 400020
MOZILLA_SH= mozilla.noxpg4
.else
MOZILLA_SH= mozilla.xpg4
.endif

post-extract:
    ${MKDIR} ${WRKSRC}/defaults/pref
    ${CP} ${FILESDIR}/unix.js ${WRKSRC}/defaults/pref

do-build:
    ${SED} -e "s;@PREFIX@;${PREFIX};g" \
    ${FILESDIR}/${MOZILLA_SH} > ${WRKDIR}/mozilla

do-install:
    (cd ${PREFIX}/lib/mozilla/chrome; \
    ${MV} -f chrome.rdf chrome.rdf.orig; \
    ${MV} -f installed-chrome.txt installed-chrome.txt.orig)
    (cd ${PREFIX}/lib/mozilla/defaults/pref; \
    ${MV} -f unix.js unix.js.orig)
    (cd ${PREFIX}/lib/mozilla/searchplugins; \
    ${MV} -f google.gif google.gif.orig; \
    ${MV} -f google.src google.src.orig)
    ${MV} -f ${PREFIX}/bin/mozilla ${PREFIX}/bin/mozilla.orig
    ${INSTALL_SCRIPT} ${WRKDIR}/mozilla ${PREFIX}/bin
    (cd ${WRKDIR}/sp; ${TAR} -cf - *) | \
    ${TAR} -xf - -C ${PREFIX}/lib/mozilla/searchplugins
    (cd ${WRKDIR}/sp_nomac; ${TAR} -cf - *) | \
    ${TAR} -xf - -C ${PREFIX}/lib/mozilla/searchplugins
    (cd ${WRKSRC}; ${TAR} -cf - chrome defaults) | \
    ${TAR} -xf - -C ${PREFIX}/lib/mozilla
    (cd ${PREFIX}/lib/mozilla/chrome; \
    ${CP} installed-chrome.txt.orig installed-chrome.txt; \
    ${CAT} ${FILESDIR}/installed-chrome.txt >> installed-chrome.txt)
    (cd ${PREFIX}/lib/mozilla; \
    ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \
    ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome)
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>