mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
671d874212
ChangeLog: https://webtrees.net/blog/2024/04/08/new-webtrees-release-2-1-20.html PR: 278314 MFH: 2024Q2
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
PORTNAME= webtrees
|
|
PORTVERSION= 2.1.20
|
|
CATEGORIES= www
|
|
MASTER_SITES= https://github.com/fisharebest/${PORTNAME}/releases/download/${PORTVERSION}/
|
|
PKGNAMESUFFIX= 21
|
|
|
|
MAINTAINER= ports@bsdserwis.com
|
|
COMMENT= Online genealogy viewer (for PHP 7.4-8.2)
|
|
WWW= https://webtrees.net/
|
|
|
|
LICENSE= GPLv3+
|
|
|
|
USES= cpe php shebangfix zip
|
|
# php pcre extension is required but it's statically linked in default php
|
|
USE_PHP= calendar curl dom filter gd iconv pdo_mysql session xml
|
|
|
|
SHEBANG_FILES= webtrees/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php
|
|
|
|
WWWDIR= ${PREFIX}/www/webtrees${PKGNAMESUFFIX}
|
|
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES= pkg-message pkg-deinstall
|
|
SUB_LIST= VERSION_SUFFIX=${PKGNAMESUFFIX}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/webtrees21
|
|
PORTDOCS= CONTRIBUTING.md LICENSE.md README.md SECURITY.md
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-install:
|
|
-${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
@cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_BIN} . ${STAGEDIR}${WWWDIR} "! -name *\.md"
|
|
@(cd ${WRKSRC}/${PORTNAME}; ${FIND} . -not -type d) | ${SORT} | \
|
|
${SED} -ne 's,^${PORTNAME}/,${WWWDIR_REL}/,p' >> ${TMPPLIST}
|
|
@${ECHO_CMD} \
|
|
'@postexec ${CHOWN} -R ${WWWOWN}:${WWWGRP} %D/${WWWDIR_REL}/data' \
|
|
>> ${TMPPLIST}
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/${PORTNAME} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|