1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/www/frontpage/Makefile
Sam Lawrance c046418346 Allow frontpage ports to build with Apache 2.2.
PR:		ports/91968
Submitted by:	Scot Hetzel <swhetzel@gmail.com> (maintainer)
2006-02-11 04:32:03 +00:00

98 lines
2.5 KiB
Makefile

# New ports collection makefile for: Microsoft FrontPage Extensions
# Date created: Sat Oct 24 16:30:00 CDT 2001
# Whom: hetzels@westbend.net
#
# $FreeBSD$
#
PORTNAME= frontpage
PORTVERSION= 5.0.2.2635
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= # Needs to be manually fetched from http://www.rtr.com
DISTFILES= ${FRONTPAGE}
DIST_SUBDIR= fp${PORTVERSION:S/.//g}
MAINTAINER= swhetzel@gmail.com
COMMENT= Microsoft Frontpage 2002 Extensions
ONLY_FOR_ARCHS= i386 ia64 amd64 alpha sparc
EXTRACT_ONLY=
NO_WRKSUBDIR= yes
NO_BUILD= yes
BATCH?= NO
USE_REINPLACE= yes
USE_PERL5_RUN= yes
USE_RC_SUBR= yes
RC_SCRIPTS= frontpage:0010
RC_SCRIPT_PREFIX= ${RC_SCRIPTS:S/${RC_SCRIPTS:C/:[^:]+$//}//:S/://}
RC_SCRIPT= ${RC_SCRIPTS:C/:[^:]+$//}.sh
SUB_FILES= ${RC_SCRIPT}
SUB_LIST+= RC_SUBR=${RC_SUBR} PERL5=${PERL} FP_VER=${FP_VER}
.include <bsd.port.pre.mk>
.include "${.CURDIR}/Makefile.fp.common"
FP_DIR= frontpage/version${FP_VER}
FP_INSTALL= ${FP_DIR}/fp_install.sh
FP_SETPERM= ${FP_DIR}/set_default_perms.sh
FP_DOCS= readme.htm readme_apache_dso.txt LICENSE.TXT
EXTRACT_FILES= ${FP_INSTALL} ${FP_SETPERM}
.if ${ARCH} == alpha
EXTRA_PATCHES= fp_install.alpha
.elif ${ARCH} == sparc64
EXTRA_PATCHES= fp_install.sparc
.elif defined(WANT_BSDI_EXTENSIONS)
EXTRA_PATCHES= fp_install.bsdi
.elif ${ARCH} == i386
.if ${OSVERSION} >= 500000
LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
.endif
.endif
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
@if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${_DISTDIR}/${FRONTPAGE} ${EXTRACT_AFTER_ARGS} ${EXTRACT_FILES}); \
then \
exit 1; \
fi
post-patch:
.if !defined(PATCH_DEBUG)
@${REINPLACE_CMD} -e 's:PREFIX:${PREFIX}:g' \
-e 's:DOCSDIR:${DOCSDIR}:g' ${WRKDIR}/${FP_INSTALL}
.endif
do-install:
@${ECHO_MSG} "===> Untaring FrontPage Extensions to ${PREFIX}"
@(cd ${PREFIX} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${_DISTDIR}/${FRONTPAGE} ${EXTRACT_AFTER_ARGS})
@${INSTALL_SCRIPT} ${WRKDIR}/${FP_INSTALL} ${PREFIX}/${FP_INSTALL}
@${INSTALL_SCRIPT} ${WRKDIR}/${FP_SETPERM} ${PREFIX}/${FP_SETPERM}
@${PREFIX}/${FP_SETPERM}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for DOC in ${FP_DOCS}
@${INSTALL_DATA} ${PREFIX}/${FP_DIR}/${DOC} ${DOCSDIR}
.endfor
.endif
.for RMFILE in ${FP_DOCS} apache-fp/httpd
@${RM} ${PREFIX}/${FP_DIR}/${RMFILE}
.endfor
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/${RC_SCRIPT} \
${PREFIX}/etc/rc.d/${RC_SCRIPT_PREFIX}.${RC_SCRIPT}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>