mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
e62864a49b
PR: ports/91270
77 lines
2.3 KiB
Makefile
77 lines
2.3 KiB
Makefile
# New ports collection makefile for: campsite
|
|
# Date created: 5 August 2005
|
|
# Whom: Ondra Koutek <koutek@o-k.cz>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= campsite
|
|
PORTVERSION= 2.3.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= koutek@o-k.cz
|
|
COMMENT= The free and open multilingual web publishing tool for news sites
|
|
|
|
LIB_DEPENDS= Magick.9:${PORTSDIR}/graphics/ImageMagick \
|
|
idn.16:${PORTSDIR}/dns/libidn
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
|
gm4:${PORTSDIR}/devel/m4 \
|
|
pear:${PORTSDIR}/devel/pear
|
|
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
|
${LOCALBASE}/share/pear/HTTP/Client.php:${PORTSDIR}/www/pear-HTTP_Client \
|
|
${LOCALBASE}/share/pear/File.php:${PORTSDIR}/sysutils/pear-File \
|
|
${LOCALBASE}/share/pear/File/Find.php:${PORTSDIR}/sysutils/pear-File_Find \
|
|
${LOCALBASE}/share/pear/XML/Util.php:${PORTSDIR}/devel/pear-XML_Util \
|
|
${LOCALBASE}/share/pear/XML/Parser.php:${PORTSDIR}/devel/pear-XML_Parser
|
|
|
|
USE_RC_SUBR= zcampsite.sh
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_APACHE= YES
|
|
|
|
BROKEN_WITH_PHP= 5
|
|
USE_PHP= mysql curl pcre xml xmlrpc
|
|
WANT_PHP_CLI= YES
|
|
USE_PHP_BUILD= YES
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --apache_user www --apache_group www --prefix ${PREFIX}
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
SUB_FILES= pkg-message pkg-install pkg-deinstall crontab.in
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 500000
|
|
BROKEN= "does not compile"
|
|
.endif
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -type f -perm 755 \
|
|
-or -name create_instance \
|
|
-or -name global_functions \
|
|
-or -name check4_functions \
|
|
-or -name conf_functions | ${XARGS} \
|
|
${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|'
|
|
@${FIND} ${WRKSRC} -type f -name autopublish | ${XARGS} \
|
|
${REINPLACE_CMD} -e 's|php |${LOCALBASE}/bin/php |'
|
|
@${FIND} ${WRKSRC} -type f -name "*.php" | ${XARGS} \
|
|
${REINPLACE_CMD} -e 's|$cmd = "pushd |$cmd = "${LOCALBASE}/bin/bash -c \\\"pushd |'
|
|
@${FIND} ${WRKSRC} -type f -name "*.php" | ${XARGS} \
|
|
${REINPLACE_CMD} -e 's|popd > /dev/null";|popd > /dev/null\\\"";|'
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
|
|
|
post-install:
|
|
@${INSTALL_DATA} ${WRKDIR}/crontab.in ${PREFIX}/campsite/etc
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|