mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
5861f13283
Fix whitespace in Makefile Pacify portlint(1) PR: ports/159508 Submitted by: Christopher Key <cjk32@cam.ac.uk> (maintainer) Approved by: wxs (mentor)
93 lines
2.8 KiB
Makefile
93 lines
2.8 KiB
Makefile
# New ports collection makefile for: musicipserver
|
|
# Date created: 2009-03-24
|
|
# Whom: Christopher Key <cjk32@cam.ac.uk>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= musicipserver
|
|
PORTVERSION= 1.8
|
|
CATEGORIES= audio linux
|
|
MASTER_SITES= http://www.amplifindmusicservices.com/downloads/:musicip \
|
|
http://spicefly.com/images/stories/mip/:spicefly
|
|
PKGNAMEPREFIX= linux-
|
|
DISTNAME= MusicMixer_x86_${PORTVERSION}
|
|
DISTFILES= ${DISTNAME}.tgz:musicip
|
|
DIST_SUBDIR= musicip
|
|
EXTRACT_ONLY= ${DISTNAME}.tgz
|
|
|
|
MAINTAINER= cjk32@cam.ac.uk
|
|
COMMENT= Application for generating playlists based upon musical content
|
|
|
|
LICENSE= EULA
|
|
LICENSE_NAME= END-USER LICENSE AGREEMENT FOR MUSICIP MIXER
|
|
LICENSE_FILE= ${WRKSRC}/notes.txt
|
|
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
|
|
|
|
RUN_DEPENDS= empty:${PORTSDIR}/net/empty \
|
|
flog:${PORTSDIR}/sysutils/flog \
|
|
${LOCALBASE}/libexec/mipcore:${PORTSDIR}/audio/linux-genpuid
|
|
|
|
LICENSE_DISTFILES= ${DISTNAME}.tgz
|
|
|
|
OPTIONS= SPICEFLY_SKIN "Install Spicefly skin" on
|
|
|
|
WRKSRC= ${WRKDIR}/MusicIP/MusicMagicMixer/
|
|
|
|
USE_RC_SUBR= musicipserver
|
|
USE_LINUX= yes
|
|
NO_BUILD= yes
|
|
IA32_BINARY_PORT= yes
|
|
|
|
MUSICIPSERVERDBDIR?= /var/db/${PORTNAME}
|
|
MUSICIPSERVERLOGDIR?= /var/log/${PORTNAME}
|
|
MUSICIPSERVERRUNDIR?= /var/run/${PORTNAME}
|
|
|
|
MUSICIPSERVERUSER?= mipserv
|
|
MUSICIPSERVERGROUP?= ${MUSICIPSERVERUSER}
|
|
|
|
SUB_FILES= pkg-install pkg-deinstall
|
|
SUB_LIST= PORTNAME=${PORTNAME} \
|
|
MUSICIPSERVERDBDIR=${MUSICIPSERVERDBDIR} \
|
|
MUSICIPSERVERLOGDIR=${MUSICIPSERVERLOGDIR} \
|
|
MUSICIPSERVERRUNDIR=${MUSICIPSERVERRUNDIR} \
|
|
MUSICIPSERVERUSER=${MUSICIPSERVERUSER} \
|
|
MUSICIPSERVERGROUP=${MUSICIPSERVERGROUP}
|
|
PLIST_SUB= MUSICIPSERVERDBDIR=${MUSICIPSERVERDBDIR} \
|
|
MUSICIPSERVERLOGDIR=${MUSICIPSERVERLOGDIR} \
|
|
MUSICIPSERVERRUNDIR=${MUSICIPSERVERRUNDIR}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(WITH_SPICEFLY_SKIN) && !defined(WITHOUT_SPICEFLY_SKIN)
|
|
EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
|
|
DISTFILES+= index-1.1.zip:spicefly
|
|
.endif
|
|
|
|
.if defined(WITH_SPICEFLY_SKIN) && !defined(WITHOUT_SPICEFLY_SKIN)
|
|
post-extract:
|
|
@cd ${WRKDIR} && ${UNZIP_CMD} -qo ${_DISTDIR}/index-1.1.zip -d ${WRKDIR}/spicefly
|
|
.endif
|
|
|
|
pre-install:
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/MusicMagicServer ${PREFIX}/bin
|
|
@${MKDIR} ${DATADIR}
|
|
@${LN} -fhs ${LOCALBASE}/libexec/mipcore ${DATADIR}/mipcore
|
|
.if defined(WITH_SPICEFLY_SKIN) && !defined(WITHOUT_SPICEFLY_SKIN)
|
|
@${MKDIR} ${DATADIR}/server
|
|
@${INSTALL_DATA} ${WRKDIR}/spicefly/index.html ${DATADIR}/server
|
|
.else
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} server ${DATADIR}
|
|
.endif
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/mmm.ini ${EXAMPLESDIR}/mmm.ini.sample
|
|
@${INSTALL_DATA} ${FILESDIR}/recipes.xml.sample ${EXAMPLESDIR}/recipes.xml.sample
|
|
|
|
post-install:
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.mk>
|