head	1.9;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.2;
locks; strict;
comment	@# @;


1.9
date	2012.12.20.06.16.46;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2012.12.10.13.48.09;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.11.17.06.03.06;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.09.24.21.14.35;	author rakuco;	state Exp;
branches;
next	1.5;

1.5
date	2012.02.16.15.57.29;	author ashish;	state Exp;
branches;
next	1.4;

1.4
date	2012.01.14.22.27.02;	author netchild;	state Exp;
branches;
next	1.3;

1.3
date	2011.12.26.20.21.54;	author rm;	state Exp;
branches;
next	1.2;

1.2
date	2011.08.18.18.35.56;	author rene;	state Exp;
branches;
next	1.1;

1.1
date	2011.08.15.01.04.42;	author swills;	state Exp;
branches;
next	;


desc
@@


1.9
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309290
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309290 | jgh | 2012-12-20 05:48:05 +0000 (Thu, 20 Dec 2012) | 8 lines
## SVN ##
## SVN ## - drop tomcat55 as a dependency potential (approaching end of life shortly)
## SVN ## - move away from war installation, as this results in an unclean system on removal of software
## SVN ## - migrate to optionsNG (new options framework)
## SVN ##
## SVN ## PR:		174265
## SVN ## Submitted by:	jgh@@
## SVN ## Approved by:	maintainer timeout, root@@cooltrainer.org ( 14 days)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Nicole Reid <root@@cooltrainer.org>
# $FreeBSD: head/www/subsonic/Makefile 309290 2012-12-20 05:48:05Z jgh $

PORTNAME=	subsonic
PORTVERSION=	4.7
PORTREVISION=	1
CATEGORIES=	www java
MASTER_SITES=	SF
DISTNAME=	${PORTNAME}-${PORTVERSION}-war

MAINTAINER=	root@@cooltrainer.org
COMMENT=	Subsonic streaming media server

BUILD_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+=	${JAVAJARDIR}/servlet-api.jar:${PORTSDIR}/www/servlet-api

OPTIONS_DEFINE=	TRANSCODING 
TRANSCODING_DESC=	Transcoding with FFmpeg and LAME
OPTIONS_DEFAULT=	TRANSCODING

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MTRANSCODING}
RUN_DEPENDS+=	ffmpeg:${PORTSDIR}/multimedia/ffmpeg \
		lame:${PORTSDIR}/audio/lame
.endif

#Subsonic does not currently run on Tomcat 7
SUB_FILES=	pkg-message
WEBAPPDIR=	${PREFIX}/apache-tomcat-6.0/webapps
BUILD_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
SUB_LIST=	TOMCATOPTS="tomcat60_java_opts"

NO_BUILD=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.6+
USE_ZIP=	yes
USER=		www
GROUP=		www
SUBSONIC_HOME=	/var/subsonic
PLIST_SUB+=	SUBSONIC_HOME="${SUBSONIC_HOME}"

.if ${PORT_OPTIONS:MTRANSCODING}
PLIST_SUB+=	TRANSCODING=""
.else
PLIST_SUB+=	TRANSCODING="@@comment "
.endif

PLIST_SUB+=	WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||}

post-extract:
	@@${MKDIR} ${WRKDIR}/${PORTDIRNAME}
	@@${TAR} xf ${WRKDIR}/${PORTNAME}.war -C ${WRKDIR}/${PORTDIRNAME}

do-install:
	${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${WEBAPPDIR}/${PORTDIRNAME}
	@@cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${WEBAPPDIR}/${PORTDIRNAME}
	@@${MKDIR} ${SUBSONIC_HOME}
	@@${CHOWN} ${USER}:${GROUP} ${SUBSONIC_HOME}

post-install:
.if ${PORT_OPTIONS:MTRANSCODING}
	@@${MKDIR} ${SUBSONIC_HOME}/transcode
	@@${LN} -sf ${PREFIX}/bin/ffmpeg ${SUBSONIC_HOME}/transcode/ffmpeg
	@@${LN} -sf ${PREFIX}/bin/lame ${SUBSONIC_HOME}/transcode/lame
.endif
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.8
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308605
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308605 | bapt | 2012-12-10 13:43:43 +0000 (Mon, 10 Dec 2012) | 3 lines
## SVN ##
## SVN ## Decommissioning java 1.5 (EOLed since October 2009):
## SVN ## suppress any reference to JAVA_VERSION=	1.5+ (part3)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/www/subsonic/Makefile 308605 2012-12-10 13:43:43Z bapt $
d6 1
d17 3
a19 1
OPTIONS=	TRANSCODING "Enable transcoding with FFmpeg and LAME"	On
d23 1
a23 1
.if defined(WITH_TRANSCODING)
a29 1
.if exists(${LOCALBASE}/apache-tomcat-6.0/webapps)
a33 11
.elif exists(${LOCALBASE}/tomcat5.5/webapps)
WEBAPPDIR=	${PREFIX}/tomcat5.5/webapps
BUILD_DEPENDS+=	${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
RUN_DEPENDS+=	${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
SUB_LIST=	TOMCATOPTS="tomcat55_java_opts"
.else
WEBAPPDIR=	${PREFIX}/apache-tomcat-6.0/webapps
BUILD_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
SUB_LIST=	TOMCATOPTS="tomcat60_java_opts"
.endif
d44 1
a44 1
.if defined(WITH_TRANSCODING)
d52 4
d57 2
a58 1
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.war ${WEBAPPDIR}
d63 1
a63 1
.if defined(WITH_TRANSCODING)
@


1.7
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	subsonic
# Date created:		2011-02-01
# Whom:			Nicole Reid <root@@cooltrainer.org>
#
# $FreeBSD: head/www/subsonic/Makefile 304798 2012-09-24 21:14:35Z rakuco $
#
d46 1
a46 1
JAVA_VERSION=	1.5+
@


1.6
log
@SVN rev 304798 on 2012-09-24 21:14:35Z by rakuco

Update to 4.7.

PR:		ports/171925
Submitted by:	Nicole Reid <root@@cooltrainer.org> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.5
log
@- Bump PORTREVISION to chase the update of multimedia/libvpx
@
text
@d9 1
a9 2
PORTVERSION=	4.6
PORTREVISION?=	2
@


1.4
log
@Update lame to 3.99.3.
Bump portrevision of all ports which depend upon it.
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.3
log
@- update to 4.6
- add WWW

PR:             163631
Submitted by:   Nicole Reid <root at cooltrainer dot org> (maintainer)
Approved by:    novel (mentor, implicit)
@
text
@d10 1
@


1.2
log
@- Do not depend on deprecated www/tomcat41 and clean up other tomcat
  dependency detections [1]
- Uppdate to 4.5 [2]

PR:		ports/159776 [1]
PR:		ports/159781 [2]
Submitted by:	Jason Helfman [jhelfman experts-exchange.com] [1]
Submitted by:	maintainer [2]
Approved by:	maintainer [1]
@
text
@d9 1
a9 1
PORTVERSION=	4.5
@


1.1
log
@Subsonic is a free, web-based media streamer, providing ubiquitous
access to your music. Use it to share your music with friends,
or to listen to your own music while at work.
You can stream to multiple players simultaneously,
for instance to one player in your kitchen and another in your living
room.

PR:		ports/159367
Submitted by:	Nicole Reid <root@@cooltrainer.org>
@
text
@d9 1
a9 1
PORTVERSION=	4.4
d33 2
a34 2
BUILD_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
d38 2
a39 2
BUILD_DEPENDS+=	${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
RUN_DEPENDS+=	${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
a40 5
.elif exists(${LOCALBASE}/apache-tomcat4.1/webapps)
WEBAPPDIR=	${PREFIX}/apache-tomcat4.1/webapps
BUILD_DEPENDS+=	${LOCALBASE}/apache-tomcat4.1:${PORTSDIR}/www/tomcat41
RUN_DEPENDS+=	${LOCALBASE}/apache-tomcat4.1:${PORTSDIR}/www/tomcat41
SUB_LIST=	TOMCATOPTS="tomcat41_java_opts"
d43 2
a44 2
BUILD_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
@

