pkgsrc/audio/ampache/Makefile
abs aac70fc328 Added audio/ampache version 3.4.3
Ampache is a Web-based Audio file manager. It is implemented with
MySQL, and PHP. It allows you to view, edit, and play your audio
files via the web. It has support for playlists, artist and album
views, album art, random play, playback via Http/On the Fly
Transcoding and Downsampling, Vote based playback, Mpd and Icecast,
Integrated Flash Player, as well as per user themes and song play
tracking. You can also Link multiple Ampache servers togeather
using XML-RPC. Ampache supports GETTEXT translations and has a full
translation of many languages
2008-09-14 09:06:54 +00:00

51 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2008/09/14 09:06:54 abs Exp $
#
DISTNAME= ampache-3.4.3
CATEGORIES= audio
MASTER_SITES= http://ampache.org/downloads/
MAINTAINER= abs@NetBSD.org
HOMEPAGE= http://ampache.org/downloads/
COMMENT= Web-based Audio file manager
DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=0:../../www/ap-php
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=0:../../databases/php-mysql
DEPENDS+= ${PHP_PKG_PREFIX}-iconv>=0:../../converters/php-iconv
NO_BUILD= yes
USE_LANGUAGES= # none
USE_PKGLOCALEDIR= yes
USE_TOOLS+= pax
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
post-extract:
${CP} ${FILESDIR}/ampache.conf ${WRKSRC}/ampache.conf
do-install:
${CHMOD} -x ${WRKSRC}/docs/*
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${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"