freebsd-ports/www/frontpage-ar/Makefile
Mario Sergio Fujikawa Ferreira 499f572d8c o Fix deinstall problem: do not use variables before defining them
o Correct RUN_DEPENDS: frontpage5 -> frontpage

PR:		33317
Submitted by:	maintainer
2001-12-30 22:08:03 +00:00

62 lines
1.7 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= hetzels@westbend.net
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>
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}
@${PERL} -pi -e 's:IMAGESDIR:../images/:g' ${FP_DIR}/admin/${_FP_LCID}/webadmin.css
@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>