1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/audio/darkice/Makefile
Dmitry Marakasov b9398223bd Convert LICENSE= "GPLxx # or later" to "GPLxx+"
Approved by:	portmgr blanket
2016-01-12 16:20:31 +00:00

68 lines
2.4 KiB
Makefile

# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
PORTNAME= darkice
PORTVERSION= 1.2
PORTREVISION?= 3
CATEGORIES= audio net
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= IceCast, IceCast2, and ShoutCast live audio streamer
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= autoreconf
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_prog_acx_pthread_config=no
CONFIGURE_ARGS= --without-alsa
SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME}
OPTIONS_DEFINE= JACK PULSEAUDIO
OPTIONS_MULTI= CODEC
OPTIONS_MULTI_CODEC= AACPLUS FAAC LAME OPUS TWOLAME VORBIS
OPTIONS_DEFAULT= VORBIS
AACPLUS_DESC= AAC HEv2 and libsamplerate support
AACPLUS_LIB_DEPENDS= libaacplus.so:${PORTSDIR}/audio/libaacplus \
libsamplerate.so:${PORTSDIR}/audio/libsamplerate
AACPLUS_CONFIGURE_ON= --with-aacplus-prefix=${LOCALBASE} \
--with-samplerate-prefix=${LOCALBASE}
AACPLUS_CONFIGURE_OFF= --without-aacplus --without-samplerate
FAAC_LIB_DEPENDS= libfaac.so:${PORTSDIR}/audio/faac
FAAC_CONFIGURE_ON= --with-faac-prefix=${LOCALBASE}
FAAC_CONFIGURE_OFF= --without-faac
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
JACK_CONFIGURE_ON= --with-jack-prefix=${LOCALBASE}
JACK_CONFIGURE_OFF= --without-jack
LAME_LIB_DEPENDS= libmp3lame.so:${PORTSDIR}/audio/lame
LAME_CONFIGURE_ON= --with-lame-prefix=${LOCALBASE}
LAME_CONFIGURE_OFF= --without-lame
OPUS_LIB_DEPENDS= libopus.so:${PORTSDIR}/audio/opus
OPUS_CONFIGURE_ON= --with-opus-prefix=${LOCALBASE}
OPUS_CONFIGURE_OFF= --without-opus
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio
PULSEAUDIO_CONFIGURE_ON= --with-pulseaudio-prefix=${LOCALBASE}
PULSEAUDIO_CONFIGURE_OFF= --without-pulseaudio
TWOLAME_LIB_DEPENDS= libtwolame.so:${PORTSDIR}/audio/twolame
TWOLAME_CONFIGURE_ON= --with-twolame-prefix=${LOCALBASE}
TWOLAME_CONFIGURE_OFF= --without-twolame
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
VORBIS_CONFIGURE_ON= --with-vorbis-prefix=${LOCALBASE}
VORBIS_CONFIGURE_OFF= --without-vorbis
post-patch:
@${REINPLACE_CMD} -e 's|-O2 -pedantic||g' ${WRKSRC}/src/Makefile.am
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.sample
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.cfg.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
.include <bsd.port.mk>