aboutsummaryrefslogblamecommitdiff
path: root/devel/cdash/Makefile
blob: fb4a822cbeb9dbd9f38e892e1a606ccd8eb60024 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                  
           

                     
                     
                 



                                              
                                 
                                                 
 
                          
 

                                   
                     
 
                                   


                                                 
                           

                                             
                                  




                                  


                          


                     
                          
                     
                     


                     
           
                                               
                                              
                                                                           

                      
# Created by: gahr
# $FreeBSD$

PORTNAME=	cdash
PORTVERSION=	2.0.2
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	http://www.cdash.org/download/
DISTNAME=	CDash-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Web-based software testing server

LICENSE=	BSD3CLAUSE

OPTIONS_MULTI=	DB
OPTIONS_MULTI_DB=	MYSQL PGSQL
OPTIONS_DEFAULT=MYSQL

USES=		cmake:outsource zip
CMAKE_ARGS+=	-DCDASH_DB_NAME:STRING=cdash \
   		-DCDASH_DB_LOGIN:STRING=cdash \
   		-DCDASH_DB_TYPE:STRING=${DB_TYPE}
USE_PHP=	curl gd xsl

WRKSRC=		${WRKDIR}/${DISTNAME:S/./-/g}
PLIST_SUB=	WWWOWN="${WWWOWN}"
SUB_FILES=	pkg-message
SUB_LIST+=	DB_TYPE=${DB_TYPE}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL=	yes
USE_PHP+=	mysql
DB_TYPE=	mysql
.endif

.if ${PORT_OPTIONS:MPGSQL}
USES+=		pgsql
USE_PHP+=	pgsql
DB_TYPE=	pgsql
.endif

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/www/CDash
	${RM} -f ${WRKSRC}/CMakeLists.txt.orig
	cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/www/CDash

.include <bsd.port.mk>