1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/www/phpwiki13/Makefile
Dirk Meyer 27997cf92d - add WITH_APACHE2
Submitted by:	takeda@takeda.tk
2003-12-16 07:54:07 +00:00

63 lines
1.6 KiB
Makefile

# New ports collection makefile for: phpwiki
# Date created: 09.Oct 2003
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#
PORTNAME= phpwiki
PORTVERSION= 1.2.2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= phpwiki
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A PHP WikiWikiWeb
.if defined(WITH_APACHE2)
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/${PHP4_PORT}
.else
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/${PHP4_PORT}
.endif
NO_BUILD= YES
PHP4_PORT?= www/mod_php4
PHPWIKI?= www/data-dist/phpwiki
PLIST_SUB+= PHPWIKI=${PHPWIKI}
USERFILES= admin.php lib/config.php
ROOTFILES= admin.php-dist index.php
ROOTDIRS= admin images lib locale pgsrc schemas templates
DOCFILES= CREDITS ChangeLog DBLIB.txt HISTORY INSTALL \
INSTALL.flatfile INSTALL.mSQL INSTALL.mssql \
INSTALL.mysql INSTALL.pgsql LICENSE README \
UPGRADING.readme
do-configure:
.for i in ${USERFILES}
${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}-dist
.endfor
do-install:
-${MKDIR} ${PREFIX}/${PHPWIKI}/lib
-${MKDIR} ${PREFIX}/${PHPWIKI}/pages
@${CHOWN} www:www ${PREFIX}/${PHPWIKI}/pages
@${CHMOD} 755 ${PREFIX}/${PHPWIKI}/pages
@(cd ${WRKSRC} && ${CP} ${ROOTFILES} ${PREFIX}/${PHPWIKI}/ )
.for i in ${ROOTDIRS}
@(cd ${WRKSRC} && ${CP} -R ${i} ${PREFIX}/${PHPWIKI}/ )
.endfor
.for i in ${USERFILES}
@if test ! -f ${PREFIX}/${PHPWIKI}/${i} ; then \
${CP} ${PREFIX}/${PHPWIKI}/${i}-dist \
${PREFIX}/${PHPWIKI}/${i}; \
fi
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${DOCFILES}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
.endif
.include <bsd.port.mk>