freebsd-ports/www/suitecrm/Makefile
Muhammad Moinur Rahman 00b411fc8b */*: Cleanup php NOOP codes
There are some php modules which are by default installed and/or
statically linked in the default PHP installations and has no effect if
mentioned through USE_PHP. Remove those codes.

Also add comment for these cases like which extensions are required for
future references.

Approved by:	portmgr (blanket)
2023-11-12 20:23:01 +01:00

40 lines
1.2 KiB
Makefile

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>