mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
16510abbad
- Add regex in CONFLICTS* [1] Reported by: se [1] Approved by: portmgr (blanket infrastructure sweep) Sponsored by: Bounce Experts Differential Revision: https://reviews.freebsd.org/D33983 [1]
49 lines
1.5 KiB
Makefile
49 lines
1.5 KiB
Makefile
# Created by: Philippe Audeoud <jadawin@tuxaco.net>
|
|
|
|
PORTNAME= ampache
|
|
PORTVERSION= 5.0.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
|
|
|
|
LICENSE= AGPLv3+
|
|
|
|
USES= cpe zip gettext php:flavors mysql
|
|
USE_PHP= pdo pdo_mysql hash session json 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}
|
|
(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>
|