Changeset View
Changeset View
Standalone View
Standalone View
www/subsonic-standalone/Makefile
# Created by: Jeremie Le Hen <jlh@FreeBSD.org> | # Created by: Jeremie Le Hen <jlh@FreeBSD.org> | ||||
# Based on www/subsonic from Nicole Reid <root@cooltrainer.org> | # Based on www/subsonic from Nicole Reid <root@cooltrainer.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= subsonic-standalone | PORTNAME= subsonic | ||||
PORTVERSION= 6.0 | DISTVERSIONPREFIX= v | ||||
DISTVERSION= 6.0 | |||||
PORTREVISION= 5 | PORTREVISION= 5 | ||||
CATEGORIES= www java | CATEGORIES= www java | ||||
MASTER_SITES= SF/subsonic/subsonic/${PORTVERSION} | MASTER_SITES= SF/subsonic/subsonic/${DISTVERSION} | ||||
DISTNAME= subsonic-${PORTVERSION}-standalone | DISTNAME= subsonic-${DISTVERSION}-standalone | ||||
PKGNAMESUFFIX= -standalone | |||||
MAINTAINER= jlh@FreeBSD.org | MAINTAINER= jlh@FreeBSD.org | ||||
COMMENT= Subsonic streaming media server, standalone version | COMMENT= Subsonic streaming media server, standalone version | ||||
USE_JAVA= yes | |||||
USE_RC_SUBR= subsonic | |||||
# Subsonic 6 onwards has become proprietary. License is unclear. | # Subsonic 6 onwards has become proprietary. License is unclear. | ||||
# http://forum.subsonic.org/forum/viewtopic.php?f=4&t=16604#p71128 | # http://forum.subsonic.org/forum/viewtopic.php?f=4&t=16604#p71128 | ||||
LICENSE= NONE | LICENSE= NONE | ||||
OPTIONS_GROUP= TRANSCODING | OPTIONS_GROUP= TRANSCODING | ||||
TRANSCODING_DESC= Transcoding support | TRANSCODING_DESC= Transcoding support | ||||
OPTIONS_GROUP_TRANSCODING= FFMPEG FLAC LAME VORBIS FAAC FAAD XMP MPC APE | OPTIONS_GROUP_TRANSCODING= FFMPEG FLAC LAME VORBIS FAAC FAAD XMP MPC APE | ||||
APE_DESC= Depend on mac for Monkey's Audio transcoding #' | |||||
FAAC_DESC= Depend on FAAD for AAC/M4A transcoding | |||||
FAAD_DESC= Depend on FAAC for AAC/M4A transcoding | |||||
FFMPEG_DESC= Depend on FFmpeg for audio and video transcoding | FFMPEG_DESC= Depend on FFmpeg for audio and video transcoding | ||||
FLAC_DESC= Depend on FLAC for transcoding | FLAC_DESC= Depend on FLAC for transcoding | ||||
LAME_DESC= Depend on LAME for MP3 transcoding | LAME_DESC= Depend on LAME for MP3 transcoding | ||||
MPC_DESC= Depend on mpcdec for MPC transcoding | |||||
VORBIS_DESC= Depend on oggenc/oggdec for Vorbis transcoding | VORBIS_DESC= Depend on oggenc/oggdec for Vorbis transcoding | ||||
FAAC_DESC= Depend on FAAD for AAC/M4A transcoding | |||||
FAAD_DESC= Depend on FAAC for AAC/M4A transcoding | |||||
XMP_DESC= Depend on XMP for module file transcoding | XMP_DESC= Depend on XMP for module file transcoding | ||||
MPC_DESC= Depend on mpcdec for MPC transcoding | |||||
APE_DESC= Depend on mac for Monkey's Audio transcoding #' | |||||
OPTIONS_DEFAULT= FFMPEG | OPTIONS_DEFAULT= FFMPEG | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
APE_RUN_DEPENDS= mac:audio/mac | |||||
FAAC_RUN_DEPENDS= faac:audio/faac | |||||
FAAD_RUN_DEPENDS= faad:audio/faad | |||||
FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg | FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg | ||||
FLAC_RUN_DEPENDS= flac:audio/flac | FLAC_RUN_DEPENDS= flac:audio/flac | ||||
LAME_RUN_DEPENDS= lame:audio/lame | LAME_RUN_DEPENDS= lame:audio/lame | ||||
MPC_RUN_DEPENDS= mpcdec:audio/musepack | |||||
VORBIS_RUN_DEPENDS= oggenc:audio/vorbis-tools | VORBIS_RUN_DEPENDS= oggenc:audio/vorbis-tools | ||||
FAAC_RUN_DEPENDS= faac:audio/faac | |||||
FAAD_RUN_DEPENDS= faad:audio/faad | |||||
XMP_RUN_DEPENDS= xmp:audio/xmp | XMP_RUN_DEPENDS= xmp:audio/xmp | ||||
MPC_RUN_DEPENDS= mpcdec:audio/musepack | |||||
APE_RUN_DEPENDS= mac:audio/mac | |||||
.include <bsd.port.options.mk> | |||||
NO_WRKSUBDIR= yes | NO_WRKSUBDIR= yes | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
USE_JAVA= yes | |||||
USE_RC_SUBR= subsonic | |||||
JAVA_VERSION= 1.6+ | JAVA_VERSION= 1.6+ | ||||
JAVA_RUN= yes | JAVA_RUN= yes | ||||
# This UID/GID is shared with Subsonic's forks ports (madsonic/libresonic/...) | |||||
USERS= subsonic | USERS= subsonic | ||||
GROUPS= subsonic | GROUPS= subsonic | ||||
SUBSONIC_HOME= /var/subsonic | SUBSONIC_HOME= /var/subsonic | ||||
PLIST_SUB+= SUBSONIC_HOME="${SUBSONIC_HOME}" \ | PLIST_SUB+= SUBSONIC_HOME="${SUBSONIC_HOME}" \ | ||||
USER="${USERS}" \ | USER="${USERS}" \ | ||||
GROUP="${GROUPS}" | GROUP="${GROUPS}" | ||||
SUB_FILES= pkg-message \ | SUB_FILES= pkg-message | ||||
message-transcoding | |||||
SUB_LIST= SUBSONIC_HOME="${SUBSONIC_HOME}" \ | SUB_LIST= SUBSONIC_HOME="${SUBSONIC_HOME}" \ | ||||
USER="${USERS}" \ | USER="${USERS}" \ | ||||
GROUP="${GROUPS}" \ | GROUP="${GROUPS}" \ | ||||
JAVA="${JAVA}" | JAVA="${JAVA}" | ||||
CONFLICTS_INSTALL= subsonic-jetty subsonic-resin3 subsonic-tomcat[678] | CONFLICTS_INSTALL= subsonic-jetty subsonic-resin3 subsonic-tomcat[678] | ||||
do-install: | do-install: | ||||
@${CAT} ${PKGDIR}/pkg-message-spacer >> ${PKGMESSAGE} | |||||
@${CAT} ${WRKDIR}/message-transcoding >> ${PKGMESSAGE} | |||||
@${CAT} ${PKGDIR}/pkg-message-spacer >> ${PKGMESSAGE} | |||||
${MKDIR} ${STAGEDIR}${DATADIR} | ${MKDIR} ${STAGEDIR}${DATADIR} | ||||
${INSTALL_MAN} ${WRKSRC}/README.TXT ${STAGEDIR}${DATADIR}/ | ${INSTALL_MAN} ${WRKSRC}/README.TXT ${STAGEDIR}${DATADIR}/ | ||||
${INSTALL_DATA} ${WRKSRC}/subsonic.war ${STAGEDIR}${DATADIR}/ | ${INSTALL_DATA} ${WRKSRC}/subsonic.war ${STAGEDIR}${DATADIR}/ | ||||
${INSTALL_DATA} ${WRKSRC}/subsonic-booter-jar-with-dependencies.jar ${STAGEDIR}${DATADIR}/ | ${INSTALL_DATA} ${WRKSRC}/subsonic-booter-jar-with-dependencies.jar ${STAGEDIR}${DATADIR}/ | ||||
post-install: | |||||
${MKDIR} ${STAGEDIR}${SUBSONIC_HOME}/transcode | ${MKDIR} ${STAGEDIR}${SUBSONIC_HOME}/transcode | ||||
post-install-FFMPEG-on: | do-install-FFMPEG-on: | ||||
${LN} -sf ${PREFIX}/bin/ffmpeg ${STAGEDIR}${SUBSONIC_HOME}/transcode/ffmpeg | ${RLN} ${PREFIX}/bin/ffmpeg ${STAGEDIR}${SUBSONIC_HOME}/transcode/ffmpeg | ||||
post-install-FLAC-on: | do-install-FLAC-on: | ||||
${LN} -sf ${PREFIX}/bin/flac ${STAGEDIR}${SUBSONIC_HOME}/transcode/flac | ${RLN} ${PREFIX}/bin/flac ${STAGEDIR}${SUBSONIC_HOME}/transcode/flac | ||||
post-install-LAME-on: | do-install-LAME-on: | ||||
${LN} -sf ${PREFIX}/bin/lame ${STAGEDIR}${SUBSONIC_HOME}/transcode/lame | ${RLN} ${PREFIX}/bin/lame ${STAGEDIR}${SUBSONIC_HOME}/transcode/lame | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |