2001-04-10 20:56:15 +00:00
|
|
|
# New ports collection makefile for: phpnuke
|
|
|
|
# Date created: 10 April 2001
|
|
|
|
# Whom: will
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= phpnuke
|
2002-10-20 19:06:48 +00:00
|
|
|
PORTVERSION= 6.0
|
2001-04-10 20:56:15 +00:00
|
|
|
CATEGORIES= www
|
2001-07-22 05:06:44 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2001-04-10 20:56:15 +00:00
|
|
|
DISTNAME= PHP-Nuke-${PORTVERSION}
|
|
|
|
|
2002-01-15 04:35:04 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:21:36 +00:00
|
|
|
COMMENT= An automated website package to distribute and manage content
|
2001-04-10 20:56:15 +00:00
|
|
|
|
2001-05-19 17:22:07 +00:00
|
|
|
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
2002-01-15 04:35:04 +00:00
|
|
|
.if defined(WITH_PHP3)
|
2001-05-21 12:00:07 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/www/mod_php3
|
2002-01-15 04:35:04 +00:00
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
|
2001-05-19 17:22:07 +00:00
|
|
|
.endif
|
|
|
|
|
2001-04-10 20:56:15 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
2001-11-17 18:41:06 +00:00
|
|
|
DOCS= ADDONS-MODULES BLOCKS CHANGES README TODO
|
2001-07-02 16:03:15 +00:00
|
|
|
|
2001-12-31 10:20:19 +00:00
|
|
|
pre-everything::
|
2002-01-15 04:35:04 +00:00
|
|
|
.if !defined(WITH_PHP3)
|
2001-07-02 16:03:15 +00:00
|
|
|
@${ECHO_MSG} ""
|
2002-01-15 04:35:04 +00:00
|
|
|
@${ECHO_MSG} "Press CTRL-C and define WITH_PHP3 if you want"
|
|
|
|
@${ECHO_MSG} "to use PHP Nuke with PHP3. PHP4 is used by default."
|
2001-07-02 16:03:15 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
2001-04-10 20:56:15 +00:00
|
|
|
|
|
|
|
do-install:
|
2001-07-22 05:06:44 +00:00
|
|
|
@${MKDIR} ${PREFIX}/www/phpnuke
|
|
|
|
@${MKDIR} ${PREFIX}/www/phpnuke/html
|
|
|
|
@${MKDIR} ${PREFIX}/www/phpnuke/sql
|
|
|
|
@${CP} -Rp ${WRKDIR}/html ${WRKDIR}/sql ${PREFIX}/www/phpnuke
|
2001-04-10 20:56:15 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for FILE in ${DOCS}
|
2001-07-22 05:06:44 +00:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${FILE} ${PREFIX}/www/phpnuke
|
2001-04-10 20:56:15 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|