2001-12-27 19:43:40 +01:00
|
|
|
PORTNAME= darkice
|
2020-07-09 17:41:24 +02:00
|
|
|
PORTVERSION= 1.4
|
2023-08-06 15:01:13 +02:00
|
|
|
PORTREVISION= 3
|
2001-12-27 19:43:40 +01:00
|
|
|
CATEGORIES= audio net
|
2020-07-09 17:41:24 +02:00
|
|
|
MASTER_SITES= https://github.com/rafael2k/darkice/releases/download/v${PORTVERSION}/
|
2001-12-27 19:43:40 +01:00
|
|
|
|
2022-03-01 09:01:11 +01:00
|
|
|
MAINTAINER= takefu@airport.fm
|
2013-02-26 15:40:41 +01:00
|
|
|
COMMENT= IceCast, IceCast2, and ShoutCast live audio streamer
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= http://darkice.org/
|
2001-12-27 19:43:40 +01:00
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv3+
|
2015-07-03 19:21:26 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2001-12-27 19:43:40 +01:00
|
|
|
|
2022-03-01 09:01:11 +01:00
|
|
|
USES= pkgconfig
|
2023-08-05 16:10:53 +02:00
|
|
|
USE_CXXSTD= c++14
|
2020-07-09 17:41:24 +02:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2014-12-28 20:07:21 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2010-09-23 06:09:39 +02:00
|
|
|
CONFIGURE_ARGS= --without-alsa
|
2020-07-09 17:41:24 +02:00
|
|
|
CONFIGURE_ENV= ac_cv_prog_acx_pthread_config=no
|
2010-09-23 06:09:39 +02:00
|
|
|
SUB_FILES= pkg-message
|
2001-12-27 19:43:40 +01:00
|
|
|
|
2015-07-03 19:21:26 +02:00
|
|
|
OPTIONS_DEFINE= JACK PULSEAUDIO
|
2020-07-09 17:41:24 +02:00
|
|
|
OPTIONS_DEFAULT= VORBIS
|
2015-07-03 19:21:26 +02:00
|
|
|
OPTIONS_MULTI= CODEC
|
2022-03-01 09:01:11 +01:00
|
|
|
OPTIONS_MULTI_CODEC= FAAC LAME OPUS TWOLAME VORBIS
|
2005-10-30 20:15:53 +01:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
FAAC_LIB_DEPENDS= libfaac.so:audio/faac
|
2015-07-03 19:21:26 +02:00
|
|
|
FAAC_CONFIGURE_ON= --with-faac-prefix=${LOCALBASE}
|
|
|
|
FAAC_CONFIGURE_OFF= --without-faac
|
2022-03-01 09:01:11 +01:00
|
|
|
JACK_LIB_DEPENDS= libjack.so:audio/jack\
|
|
|
|
libsamplerate.so:audio/libsamplerate
|
2016-09-28 05:07:23 +02:00
|
|
|
JACK_CONFIGURE_WITH= jack
|
2016-04-01 15:29:15 +02:00
|
|
|
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame
|
2015-07-03 19:21:26 +02:00
|
|
|
LAME_CONFIGURE_ON= --with-lame-prefix=${LOCALBASE}
|
|
|
|
LAME_CONFIGURE_OFF= --without-lame
|
2022-03-01 09:01:11 +01:00
|
|
|
OPUS_LIB_DEPENDS= libopus.so:audio/opus\
|
|
|
|
libogg.so:audio/libogg
|
2016-09-28 05:07:23 +02:00
|
|
|
OPUS_CONFIGURE_WITH= opus
|
2022-03-01 09:01:11 +01:00
|
|
|
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio\
|
|
|
|
libsamplerate.so:audio/libsamplerate
|
2016-09-28 05:07:23 +02:00
|
|
|
PULSEAUDIO_CONFIGURE_WITH= pulseaudio
|
2016-04-01 15:29:15 +02:00
|
|
|
TWOLAME_LIB_DEPENDS= libtwolame.so:audio/twolame
|
2016-09-28 05:07:23 +02:00
|
|
|
TWOLAME_CONFIGURE_WITH= twolame
|
2022-03-01 09:01:11 +01:00
|
|
|
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis\
|
|
|
|
libogg.so:audio/libogg
|
2016-09-28 05:07:23 +02:00
|
|
|
VORBIS_CONFIGURE_WITH= vorbis
|
2010-07-13 04:42:31 +02:00
|
|
|
|
2022-03-01 09:01:11 +01:00
|
|
|
SOURCE_URL= man/darkice.1 man/darkice.cfg.5 src/IceCast2.cpp src/main.cpp
|
|
|
|
|
2002-11-20 13:50:47 +01:00
|
|
|
post-patch:
|
2016-09-28 05:07:23 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-O2 -pedantic||g' ${WRKSRC}/src/Makefile.in
|
2022-03-01 09:01:11 +01:00
|
|
|
.for i in ${SOURCE_URL}
|
|
|
|
@${REINPLACE_CMD} -e 's|http://code.google.com/p/darkice/|http://darkice.org/|' ${WRKSRC}/${i}
|
|
|
|
.endfor
|
2002-11-20 13:50:47 +01:00
|
|
|
|
2010-09-23 06:09:39 +02:00
|
|
|
do-install:
|
2013-12-29 13:48:38 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
2013-02-26 15:40:41 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg \
|
2015-07-03 19:21:26 +02:00
|
|
|
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.sample
|
2020-01-16 10:34:42 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.cfg.5 ${STAGEDIR}${PREFIX}/share/man/man5
|
2011-11-04 19:29:43 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|