freebsd-ports/audio/ampache/Makefile

51 lines
1.6 KiB
Makefile
Raw Normal View History

PORTNAME= ampache
PORTVERSION= 5.6.0
DISTVERSIONSUFFIX= _all
CATEGORIES= audio www
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTVERSION}/
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= crees@FreeBSD.org
COMMENT= Web-based Audio file manager
WWW= https://ampache.org/
LICENSE= AGPLv3+
USES= cpe zip gettext php:flavors mysql
*/*: Remove merged or non-existent USE_PHP directives - Remove USE_PHP=hash which is available in default php installation of all versions of php * security/pear-Horde_Crypt_Blowfish: Remove OPTION MHASH - Remove USE_PHP=json which is available in default php installation of all versions of php * devel/pear-PHPTAL: Remove OPTION JSON * www/ilias: Remove OPTION SCORM2004 - Remove USE_PHP=mssql which is no longer available in php from php80 and later and has been replaced with sqlsrv module which is Windows only * www/codeigniter: Remove OPTION MSSQL * www/moodle311: Remove OPTION MSSQL * www/moodle39: Remove OPTION MSSQL * www/moodle40: Remove OPTION MSSQL * www/moodle41: Remove OPTION MSSQL - Remove USE_PHP=openssl which is available in default php installation of all versions of php * databases/phpmyadmin: Remove OPTION OPENSSL * databases/phpmyadmin5: Remove OPTION OPENSSL * security/pear-Horde_Crypt_Blowfish: Remove OPTION OPENSSL * www/nextcloud: Remove OPTION SSL * www/owncloud: Remove OPTION SSL - Remove USE_PHP=pcre which is available in default php installation of all versions of php * sysutils/racktables: Remove OPTION PCRE - Remove USE_PHP=postgresql which should be USE_PHP=pgsql and update following ports * www/typo3-11 * www/typo3-12 - Remove USE_PHP=pdf which is no longer available as php module * databases/phpmyadmin: Remove OPTION PDF - Remove USE_PHP=spl which is available in default php installation of all versions of php - Remove USE_PHP=sqlsrv which was never imported into FreeBSD as that is Windows only php module * www/typo3-11: Remove OPTION SQLSRV * www/typo3-12: Remove OPTION SQLSRV - Bump where DEFAULT OPTIONS are affected Sponsored by: Bounce Experts Approved by: portmgr(blanket)
2023-04-16 18:10:47 +02:00
USE_PHP= pdo pdo_mysql session intl simplexml curl dom xml
CONFLICTS_INSTALL= ampache-php* # etc/periodic/daily/500.ampache-cron man/man1/ampache.1.gz
NO_WRKSUBDIR= yes
NO_BUILD= yes
SUB_FILES= 500.ampache-cron
SUB_LIST= WWWOWN="${WWWOWN}"
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
OPTIONS_DEFINE= DOCS
post-patch:
.for h in channel play rest
${REINPLACE_CMD} 's,[[:space:]]*RewriteRule [^[:space:]]*[[:space:]],&/ampache,' \
${WRKSRC}/public/$h/.htaccess.dist
.endfor
${REINPLACE_CMD} 's,^;web_path = "",web_path = "/${PORTNAME}",' \
${WRKSRC}/config/ampache.cfg.php.dist
do-build:
${MKDIR} ${WRKSRC}/src
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
for f in $$(${FIND} ${WRKSRC} -name .htaccess); do \
${MV} $$f $$f.dist; \
done
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} '-not -regex ^./man.*')
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} '-not -regex ^./docs.* -a -not -name *.bak')
${INSTALL_MAN} ${WRKSRC}/docs/man/man1/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
${INSTALL_SCRIPT} ${WRKDIR}/500.ampache-cron ${STAGEDIR}${PREFIX}/etc/periodic/daily/
.include <bsd.port.mk>