Skip to content

Commit

Permalink
www/madsonic: update to 6.2.9092 and sort out Makefile
Browse files Browse the repository at this point in the history
* Update to 6.2.9092.
Changelog: https://www.madsonic.org/pages/changelog.jsp#6.2.9092
* Replace option TOMCAT7 (www/tomcat7 EOL) with TOMCAT85.
* Remove option RESIN3:
"www/resin3||2023-05-06|Deprecated version, unsupported by upstream for years".
* "Sort out" Makefile - portlint is happy.

Approved by:		arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D41017
MFH:			2023Q3
  • Loading branch information
VVD committed Jul 13, 2023
1 parent 95f2605 commit 3d6c1cd
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 76 deletions.
130 changes: 61 additions & 69 deletions www/madsonic/Makefile
Original file line number Diff line number Diff line change
@@ -1,101 +1,93 @@
PORTNAME= madsonic
PORTVERSION= 6.2.9040
PORTREVISION= 4
PORTVERSION= 6.2.9092
CATEGORIES= www java
MASTER_SITES= http://madsonic.org/download/6.2/
MASTER_SITES= https://madsonic.org/download/6.2/
DISTFILES= ${DISTDATE}_${DISTNAME}-war-tomcat.zip \
${DISTDATE}_${DISTNAME}-war-jspc.zip
${DISTDATE}_${DISTNAME}-war-jspc.zip

MAINTAINER= ports@FreeBSD.org
COMMENT= Madsonic streaming media server
WWW= https://www.madsonic.org

LICENSE= GPLv3

OPTIONS_SINGLE= APPSERVER
APPSERVER_DESC= Java Application Server
OPTIONS_SINGLE_APPSERVER= JETTY TOMCAT7 RESIN3
TOMCAT7_DESC= Use Tomcat 7.x
JETTY_DESC= Use Jetty
RESIN3_DESC= Use Resin 3

OPTIONS_GROUP= TRANSCODING
TRANSCODING_DESC= Transcoding support
OPTIONS_GROUP_TRANSCODING= FFMPEG FLAC LAME VORBIS FAAC FAAD XMP MPC APE
FFMPEG_DESC= Depend on FFmpeg for audio and video transcoding
FLAC_DESC= Depend on FLAC for transcoding
LAME_DESC= Depend on LAME for MP3 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
MPC_DESC= Depend on mpcdec for MPC transcoding
APE_DESC= Depend on mac for Monkey's Audio transcoding #'

OPTIONS_DEFAULT= FFMPEG JETTY
OPTIONS_SUB= yes

RUN_DEPENDS+= ${JAVALIBDIR}/servlet-api.jar:www/servlet-api \
${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins
TOMCAT7_BUILD_DEPENDS= ${LOCALBASE}/${SERVERDIR}/bin/bootstrap.jar:www/tomcat7
TOMCAT7_RUN_DEPENDS= ${LOCALBASE}/${SERVERDIR}/bin/bootstrap.jar:www/tomcat7
JETTY_BUILD_DEPENDS= ${LOCALBASE}/${SERVERDIR}/start.jar:www/jetty8
JETTY_RUN_DEPENDS= ${LOCALBASE}/${SERVERDIR}/start.jar:www/jetty8
RESIN3_BUILD_DEPENDS= ${LOCALBASE}/${SERVERDIR}/lib/resin.jar:www/resin3
RESIN3_RUN_DEPENDS= ${LOCALBASE}/${SERVERDIR}/lib/resin.jar:www/resin3
FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg
FLAC_RUN_DEPENDS= flac:audio/flac
LAME_RUN_DEPENDS= lame:audio/lame
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
MPC_RUN_DEPENDS= mpcdec:audio/musepack
APE_RUN_DEPENDS= mac:audio/mac
${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins

.include <bsd.port.options.mk>
USES= zip
USE_JAVA= yes
JAVA_VERSION= 8

WRKSRC= ${WRKDIR}/${PORTNAME}
NO_ARCH= yes
NO_BUILD= yes
DISTDATE= 20161208
USE_JAVA= yes
USES= zip
USER= www
GROUP= www
MADSONIC_HOME= /var/madsonic
WRKSRC= ${WRKDIR}/${PORTNAME}
WEBAPPDIR= ${PREFIX}/${SERVERDIR}/webapps
PLIST= ${WRKDIR}/plist
PKGMESSAGE= ${WRKDIR}/pkg-message
PLIST= ${WRKDIR}/plist
PLIST_SUB+= MADSONIC_HOME="${MADSONIC_HOME}" \
WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||}
SUB_FILES= message-common\
message-transcoding
WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||}
SUB_FILES= message-common message-transcoding
SUB_LIST= MADSONIC_HOME="${MADSONIC_HOME}"

.if ${PORT_OPTIONS:MTOMCAT7}
OPTIONS_SINGLE= APPSERVER
OPTIONS_SINGLE_APPSERVER= JETTY8 TOMCAT85
OPTIONS_GROUP= TRANSCODING
OPTIONS_GROUP_TRANSCODING= APE FAAC FAAD FFMPEG FLAC LAME MPC VORBIS XMP
OPTIONS_DEFAULT= FFMPEG JETTY8
OPTIONS_SUB= yes

APE_DESC= Depend on mac for Monkey's Audio transcoding #'
APPSERVER_DESC= Java Application Server
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
FLAC_DESC= Depend on FLAC for transcoding
JETTY8_DESC= Use Jetty 8.x
LAME_DESC= Depend on LAME for MP3 transcoding
MPC_DESC= Depend on mpcdec for MPC transcoding
TOMCAT85_DESC= Use Tomcat 8.5.x
TRANSCODING_DESC= Transcoding support
VORBIS_DESC= Depend on oggenc/oggdec for Vorbis transcoding
XMP_DESC= Depend on XMP for module file transcoding

APE_RUN_DEPENDS= mac:audio/mac
FAAC_RUN_DEPENDS= faac:audio/faac
FAAD_RUN_DEPENDS= faad:audio/faad
FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg
FLAC_RUN_DEPENDS= flac:audio/flac
JETTY8_BUILD_DEPENDS= ${LOCALBASE}/${SERVERDIR}/start.jar:www/jetty8
JETTY8_RUN_DEPENDS= ${LOCALBASE}/${SERVERDIR}/start.jar:www/jetty8
LAME_RUN_DEPENDS= lame:audio/lame
MPC_RUN_DEPENDS= mpcdec:audio/musepack
TOMCAT85_BUILD_DEPENDS= ${LOCALBASE}/${SERVERDIR}/bin/bootstrap.jar:www/tomcat85
TOMCAT85_RUN_DEPENDS= ${LOCALBASE}/${SERVERDIR}/bin/bootstrap.jar:www/tomcat85
VORBIS_RUN_DEPENDS= oggenc:audio/vorbis-tools
XMP_RUN_DEPENDS= xmp:audio/xmp

DISTDATE= 20220126
USER= www
GROUP= www
MADSONIC_HOME= /var/madsonic

.include <bsd.port.options.mk>

WEBAPPDIR= ${PREFIX}/${SERVERDIR}/webapps

.if ${PORT_OPTIONS:MTOMCAT85}
APPPKGMESSAGE= pkg-message-tomcat
DISTVER= tomcat
PKGNAMESUFFIX= -tomcat7
SERVERDIR= apache-tomcat-7.0
SUB_LIST+= CONTAINERFLAGS="tomcat7_java_opts"
PKGNAMESUFFIX= -tomcat85
SERVERDIR= apache-tomcat-8.5
SUB_LIST+= CONTAINERFLAGS="tomcat85_java_opts"
.endif

.if ${PORT_OPTIONS:MJETTY}
.if ${PORT_OPTIONS:MJETTY8}
APPPKGMESSAGE= pkg-message-jetty
DISTVER= jspc
PKGNAMESUFFIX= -jetty
SERVERDIR= jetty
SUB_LIST+= CONTAINERFLAGS="jetty_flags"
.endif

.if ${PORT_OPTIONS:MRESIN3}
APPPKGMESSAGE= pkg-message-resin3
DISTVER= tomcat
PKGNAMESUFFIX= -resin3
SERVERDIR= resin3
SUB_LIST+= CONTAINERFLAGS="resin3_flags"
.endif

do-extract:
${EXTRACT_CMD} -qo ${DISTDIR}/${DISTDATE}_${PORTNAME}-${PORTVERSION}-war-${DISTVER}.zip -d ${WRKDIR}

Expand Down
10 changes: 5 additions & 5 deletions www/madsonic/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TIMESTAMP = 1475617922
SHA256 (20161208_madsonic-6.2.9040-war-tomcat.zip) = 1309d147155e5d6966ef510a74861edc09d2fabc0ca066576d3c4dbc619d3024
SIZE (20161208_madsonic-6.2.9040-war-tomcat.zip) = 80707015
SHA256 (20161208_madsonic-6.2.9040-war-jspc.zip) = 55300906f036f24e21f6cd718219ff308d8c1f945a309df262248a03b72fcca9
SIZE (20161208_madsonic-6.2.9040-war-jspc.zip) = 80678832
TIMESTAMP = 1689251347
SHA256 (20220126_madsonic-6.2.9092-war-tomcat.zip) = c23d8fc9e80132811cf0fd1ab47e61a7a4f6ae653fb0cf16d9305ce38acf83fb
SIZE (20220126_madsonic-6.2.9092-war-tomcat.zip) = 79926349
SHA256 (20220126_madsonic-6.2.9092-war-jspc.zip) = b1e670910674ce481da578ea716b8dacd6032c168c7eb0e0764a747bb0240eeb
SIZE (20220126_madsonic-6.2.9092-war-jspc.zip) = 79929699
2 changes: 0 additions & 2 deletions www/madsonic/pkg-message-resin3

This file was deleted.

0 comments on commit 3d6c1cd

Please sign in to comment.