freebsd-ports/www/joomla3/Makefile

50 lines
1.2 KiB
Makefile

# Created by: Francisco Cabrita <include@npf.pt.freebsd.org>
# $FreeBSD$
PORTNAME= joomla
DISTVERSION= 3-9-6
CATEGORIES= www
MASTER_SITES= https://downloads.joomla.org/cms/joomla3/${DISTVERSION}/
PKGNAMESUFFIX= 3
DISTNAME= Joomla_${DISTVERSION}-Stable-Full_Package.tar.bz2?format=bz2
MAINTAINER= ler@FreeBSD.org
COMMENT= Dynamic web content management system (CMS)
LICENSE= GPLv2
USES= php:web tar:bz2 shebangfix
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
OPTIONS_DEFINE= MYSQL PGSQL
OPTIONS_DEFAULT=MYSQL
OPTIONS_SUB= yes
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
SHEBANG_FILES= libraries/vendor/leafo/lessphp/lessify
SUB_FILES= pkg-message
USE_PHP= gd json mbstring pcre pdf session simplexml xml zip zlib
MYSQL_USE= PHP=mysqli
PGSQL_USE= PHP=pgsql
WWWDIR= ${PREFIX}/www/${PORTNAME}${PORTVERSION:R:R}
do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}
@(cd ${WRKSRC} && \
${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${WWWDIR}/{} \;)
@(cd ${WRKSRC} && \
${FIND} . \! -type d -and \! \( -name .gitignore -or -name .travis.yml \
-or -name travisci-phpunit.xml -or -name LICENSE.txt \
-or -name README.md \) \
-exec ${INSTALL_DATA} {} ${STAGEDIR}${WWWDIR}/{} \;)
.include <bsd.port.mk>