mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
68 lines
1.9 KiB
Makefile
68 lines
1.9 KiB
Makefile
# 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= ftp://ftp.microsoft.com/products/frontpage/FPSE02LangFiles/ \
|
|
ftp://www.westbend.net/Mirrors/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>
|