aboutsummaryrefslogtreecommitdiffstats
path: root/www/frontpage-ar/Makefile
blob: 654e691c77f1f5ca773bccc51f1314c3cade9b41 (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
# New ports collection makefile for:    FrontPage Arabic Web Administration
# Date created:     Sat Oct 25 16:30:00 CDT 2001
# Whom:         hetzels@westbend.net
#
# $FreeBSD$
#

PORTNAME=   frontpage
PORTVERSION=    5.0.2.2623
CATEGORIES?=    www
MASTER_SITES=   http://download.microsoft.com/download/FrontPage2002/Utility/2002/UNIX/EN-US/ \
        ftp://ftp.microsoft.com/products/frontpage/FPSE02LangFiles/
PKGNAMEPREFIX?= ar-
DISTFILES=
EXTRACT_ONLY=

MAINTAINER?=    ports@FreeBSD.org
COMMENT?=   Microsoft Frontpage Arabic Web Administration

RUN_DEPENDS=    ${FPSETPERM}:${PORTSDIR}/www/frontpage

FP_LANG?=   ara
FP_LANGUAGE?=   Arabic
FP_LCID?=   1025

.for _FP_LANG in ${FP_LANG}
DISTFILES+= fp${PORTVERSION:S/.//:C/\..*//}_${_FP_LANG}.tar.Z
.endfor

.include <bsd.port.pre.mk>

USE_REINPLACE=  yes
ONLY_FOR_ARCHS= i386 alpha

NO_WRKSUBDIR=   yes
NO_BUILD=   yes

FP_VER=     5.0

FP_DIR=     ${PREFIX}/frontpage/version${FP_VER}
FPSETPERM=  ${FP_DIR}/set_default_perms.sh

PLIST_SUB=  FP_VER=${FP_VER}
.ifndef NO_FP_LCID_SUB
PLIST_SUB+= FP_LCID=${FP_LCID}
.endif

do-install:
    @${ECHO_MSG} "===> Untaring FrontPage ${FP_LANGUAGE} Language Extensions to ${PREFIX}"
.for DISTFILE in ${DISTFILES}
    @(cd ${PREFIX} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DISTFILE} ${EXTRACT_AFTER_ARGS})
.endfor
.for _FP_LCID in ${FP_LCID}
    @${REINPLACE_CMD} -e 's:IMAGESDIR:../images/:g' ${FP_DIR}/admin/${_FP_LCID}/webadmin.css
    @if [ -f ${FP_DIR}/admin/${_FP_LCID}/webadmin.css.bak ] ; then \
        ${RM} ${FP_DIR}/admin/${_FP_LCID}/webadmin.css.bak ; \
    fi
    @if [ ! -f ${FP_DIR}/help/${_FP_LCID}/wsgindex.htm ]; then \
        ${CP} ${FP_DIR}/help/${_FP_LCID}/wsgIndex.htm ${FP_DIR}/help/${_FP_LCID}/wsgindex.htm ; \
    fi
    @if [ ! -f ${FP_DIR}/help/${_FP_LCID}/wsgIndex.htm ]; then \
        ${CP} ${FP_DIR}/help/${_FP_LCID}/wsgindex.htm ${FP_DIR}/help/${_FP_LCID}/wsgIndex.htm ; \
    fi
.endfor
    @${FPSETPERM}

.include <bsd.port.post.mk>