1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/devel/cdash/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

51 lines
1.2 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= cdash
PORTVERSION= 2.2.3
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.cdash.org/wp-content/uploads/2014/11/
DISTNAME= CDash-2-2-3
MAINTAINER= ports@FreeBSD.org
COMMENT= Web-based software testing server
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/License.txt
USES= dos2unix cmake zip
DOS2UNIX_GLOB= *.php *.xml *.xsl *.txt
CMAKE_ARGS= -DCDASH_DB_NAME:STRING=cdash \
-DCDASH_DB_LOGIN:STRING=cdash \
-DCDASH_DB_TYPE:STRING=${DB_TYPE}
USE_PHP= curl gd pdo session xsl zlib
NO_ARCH= yes
WRKSRC= ${WRKDIR}/${DISTNAME:S/./-/g}
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
SUB_FILES= pkg-message
SUB_LIST= DB_TYPE=${DB_TYPE}
OPTIONS_SINGLE= DB
OPTIONS_SINGLE_DB= MYSQL PGSQL
OPTIONS_DEFAULT=MYSQL
MYSQL_USES= mysql
MYSQL_USE= PHP=pdo_mysql
MYSQL_VARS= DB_TYPE=mysql
PGSQL_USES= pgsql
PGSQL_USE= PHP=pgsql,pdo_pgsql
PGSQL_VARS= DB_TYPE=pgsql
do-install:
@${MKDIR} ${WRKSRC}/rss
${CP} ${WRKSRC}/backup/.htaccess ${WRKSRC}/rss/.htaccess
@${MKDIR} ${STAGEDIR}${PREFIX}/www/CDash
${FIND} ${WRKSRC} -name "*.orig" -delete
${MV} ${WRKSRC}/cdash/config.local.php ${WRKSRC}/cdash/config.local.sample.php
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/www/CDash
.include <bsd.port.mk>