aboutsummaryrefslogblamecommitdiff
path: root/www/suitecrm/Makefile
blob: 15b2e999c165d693eb70caa9c0c0278bbec2a5cc (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                    


                                                                                   























                                                                                             
PORTNAME=	suitecrm
PORTVERSION=	7.14.0
CATEGORIES=	www
MASTER_SITES=	https://suitecrm.com/download/141/suite84/562969/

MAINTAINER=	wen@FreeBSD.org
COMMENT=	Open source Customer Relationship Management (CRM) software solution
WWW=		http://www.suitercrm.com/

LICENSE=	AGPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

USES=		php zip
# php json/pcre/spl extension is required but it's statically linked in default php
USE_PHP=	curl ctype dom filter gd imap mysqli pdo posix \
		session tokenizer xml mbstring zip zlib
NO_BUILD=	yes

WRKSRC=		${WRKDIR}/SuiteCRM-${PORTVERSION}

PLIST=		${WRKDIR}/plist
CRMDIR=		www/suitecrm

SUB_FILES+=	pkg-message

pre-install:
	@${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST}
	@${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST}
	@${ECHO_CMD} "@mode 755" >> ${PLIST}
	@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${CRMDIR}?g" >>${PLIST}
	@${FIND} -s -d ${WRKSRC} -type d  | ${SED} "s?${WRKSRC}?@dir ${CRMDIR}?g" >> ${PLIST}
	@${ECHO_CMD} "@mode" >> ${PLIST}
	@${ECHO_CMD} "@group" >> ${PLIST}
	@${ECHO_CMD} "@owner" >> ${PLIST}

do-install:
	@${MKDIR} ${STAGEDIR}/${WWWDIR}
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}/

.include <bsd.port.mk>