2013-01-30 14:20:12 +00:00
|
|
|
# Created by: Wen Heping <wen@FreeBSD.org>
|
2010-11-23 06:54:34 +00:00
|
|
|
|
|
|
|
PORTNAME= prestashop
|
2021-06-23 07:43:27 +00:00
|
|
|
PORTVERSION= 1.7.7.5
|
2010-11-23 06:54:34 +00:00
|
|
|
CATEGORIES= finance www
|
2020-02-07 07:24:20 +00:00
|
|
|
MASTER_SITES= https://download.prestashop.com/download/releases/
|
2010-11-23 06:54:34 +00:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= wen@FreeBSD.org
|
|
|
|
COMMENT= Open-Source e-Commerce Software for Web 2.0
|
|
|
|
|
2019-11-08 14:47:00 +00:00
|
|
|
USES= cpe php shebangfix zip:infozip
|
2010-11-23 06:54:34 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
PRESTADIR= www/${PORTNAME}
|
|
|
|
PLIST= ${WRKDIR}/plist
|
2019-10-02 23:45:46 +00:00
|
|
|
USE_PHP= ctype curl dom filter gd hash intl json mcrypt \
|
|
|
|
mysqli pdo_mysql posix session simplexml soap
|
2010-11-23 06:54:34 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2016-11-28 07:19:54 +00:00
|
|
|
SHEBANG_FILES= vendor/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php \
|
|
|
|
vendor/doctrine/orm/docs/bin/generate-docs.sh \
|
|
|
|
vendor/doctrine/orm/docs/bin/install-dependencies.sh \
|
|
|
|
vendor/symfony/symfony/src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/Fixtures/build.sh \
|
|
|
|
vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@(cd ${WRKDIR} && ${UNZIP_CMD} -d prestashop ${WRKDIR}/prestashop.zip)
|
|
|
|
${REINPLACE_CMD} -e 's#@prefix@#${PREFIX}#g' \
|
|
|
|
${WRKSRC}/vendor/pear/archive_tar/scripts/phptar.in
|
|
|
|
${RM} ${WRKSRC}/vendor/pear/archive_tar/scripts/*.bak
|
2016-05-06 03:12:30 +00:00
|
|
|
|
2010-11-23 06:54:34 +00:00
|
|
|
pre-install:
|
2014-09-21 14:08:59 +00:00
|
|
|
@${ECHO_CMD} -e '@owner ${WWWOWN}\n@group ${WWWGRP}' > ${PLIST}
|
|
|
|
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${PRESTADIR}?g" >> ${PLIST}
|
2014-11-13 14:32:39 +00:00
|
|
|
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dir ${PRESTADIR}?g" >> ${PLIST}
|
2014-09-21 14:08:59 +00:00
|
|
|
@${ECHO_CMD} -e '@owner root\n@group wheel' >> ${PLIST}
|
2010-11-23 06:54:34 +00:00
|
|
|
|
|
|
|
do-install:
|
2014-05-31 05:25:50 +00:00
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
2010-11-23 06:54:34 +00:00
|
|
|
|
2014-09-21 14:08:59 +00:00
|
|
|
.include <bsd.port.mk>
|