blob: 972604703adc711df4516a9cfac047982ce616ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# $NetBSD: Makefile,v 1.5 2011/09/16 05:46:22 obache Exp $
#
DISTNAME= ampache-3.5.3
PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://ampache.org/downloads/
MAINTAINER= abs@NetBSD.org
HOMEPAGE= http://ampache.org/
COMMENT= Web-based Audio file manager
DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.2:../../www/ap-php
DEPENDS+= ${PHP_PKG_PREFIX}-gettext>=0:../../devel/php-gettext
DEPENDS+= ${PHP_PKG_PREFIX}-iconv>=0:../../converters/php-iconv
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=0:../../converters/php-mbstring
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=0:../../databases/php-mysql
NO_BUILD= yes
USE_LANGUAGES= # none
USE_PKGLOCALEDIR= yes
USE_TOOLS+= pax
LICENSE= gnu-gpl-v2
INSTDIR= ${PREFIX}/share/ampache
EGDIR= ${PREFIX}/share/examples
MESSAGE_SUBST+= INSTDIR=${INSTDIR:Q}
FILES_SUBST+= INSTDIR=${INSTDIR:Q}
SUBST_CLASSES+= files
SUBST_STAGE.files= do-configure
SUBST_FILES.files= ampache.conf
SUBST_SED.files= -e "s|@INSTDIR@|${INSTDIR}|g"
SUBST_MESSAGE.files= Substituting paths into apache config fragment
CONF_FILES= ${EGDIR}/ampache.conf \
${PKG_SYSCONFDIR}/ampache.conf
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS+= ${EGDIR}
post-extract:
${CP} ${FILESDIR}/ampache.conf ${WRKSRC}/ampache.conf
do-install:
${CHMOD} -x ${WRKSRC}/docs/[A-Z]*
${INSTALL_DATA} ${WRKSRC}/ampache.conf ${DESTDIR}${EGDIR}/ampache.conf
set -e; cd ${WRKSRC} && pax -rw -pe . ${DESTDIR}${INSTDIR}
${RM} -f ${DESTDIR}${INSTDIR}/ampache.conf
${FIND} ${DESTDIR}${INSTDIR} -name '*.orig' | ${XARGS} ${RM}
.include "../../mk/apache.mk"
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"
|