2011-09-16 07:13:37 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2011/09/16 11:13:38 espie Exp $
|
2003-07-26 07:40:45 -04:00
|
|
|
|
2007-07-21 04:09:31 -04:00
|
|
|
COMMENT= icecast source for streaming MP3
|
2003-07-26 07:40:45 -04:00
|
|
|
|
2005-05-21 09:46:44 -04:00
|
|
|
DISTNAME= ices-0.4
|
2011-09-16 07:13:37 -04:00
|
|
|
REVISION= 9
|
2003-07-26 07:40:45 -04:00
|
|
|
CATEGORIES= net audio
|
|
|
|
|
2007-07-21 04:09:31 -04:00
|
|
|
HOMEPAGE= http://www.icecast.org/ices.php
|
2003-07-26 07:40:45 -04:00
|
|
|
|
2011-01-16 14:53:17 -05:00
|
|
|
# GPLv2
|
2003-07-26 07:40:45 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-07-12 18:07:37 -04:00
|
|
|
|
2010-11-11 09:00:44 -05:00
|
|
|
WANTLIB = c m ogg perl pthread theora util vorbis vorbisfile z
|
|
|
|
WANTLIB += ${MODPY_WANTLIB}
|
2010-11-19 17:31:32 -05:00
|
|
|
WANTLIB += mp3lame shout>=3 speex>=4 FLAC>=5 xml2>=7
|
2003-07-26 07:40:45 -04:00
|
|
|
|
2005-05-21 09:46:44 -04:00
|
|
|
MASTER_SITES= http://downloads.xiph.org/releases/ices/
|
2003-07-26 07:40:45 -04:00
|
|
|
|
2005-05-21 09:46:44 -04:00
|
|
|
AUTOCONF_VERSION=2.59
|
|
|
|
CONFIGURE_STYLE=gnu autoconf
|
2003-07-26 07:40:45 -04:00
|
|
|
CONFIGURE_ARGS= --with-docdir=${LOCALBASE}/share/doc/ices \
|
2005-06-18 14:08:49 -04:00
|
|
|
--with-moddir=${LOCALBASE}/share/ices \
|
2005-05-21 09:46:44 -04:00
|
|
|
--with-lame=${LOCALBASE} --with-vorbis=${LOCALBASE} \
|
|
|
|
--with-flac=${LOCALBASE}
|
2003-07-26 07:40:45 -04:00
|
|
|
|
2005-05-21 09:46:44 -04:00
|
|
|
MODULES= converters/libiconv
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS= audio/lame \
|
|
|
|
net/libshout \
|
|
|
|
audio/speex \
|
|
|
|
audio/flac \
|
|
|
|
textproc/libxml
|
2003-07-26 07:40:45 -04:00
|
|
|
|
2005-05-21 09:46:44 -04:00
|
|
|
FLAVORS= python mp4
|
2003-07-26 07:40:45 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpython}
|
2007-10-22 10:47:58 -04:00
|
|
|
MODULES+= lang/python
|
|
|
|
CONFIGURE_ARGS+=--with-python=${MODPY_BIN}
|
|
|
|
LIB_DEPENDS+= ${MODPY_LIB_DEPENDS}
|
2003-07-26 07:40:45 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-python
|
|
|
|
.endif
|
|
|
|
|
2005-05-21 09:46:44 -04:00
|
|
|
.if ${FLAVOR:L:Mmp4}
|
|
|
|
CONFIGURE_ARGS+=--with-faad=${LOCALBASE}
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS+= audio/faad \
|
|
|
|
multimedia/libmp4v2
|
2010-11-11 09:00:44 -05:00
|
|
|
WANTLIB += faad mp4v2
|
2005-05-21 09:46:44 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-faad
|
|
|
|
.endif
|
|
|
|
|
2003-07-26 07:40:45 -04:00
|
|
|
SEPARATE_BUILD= simple
|
2006-03-14 15:00:20 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2010-10-18 14:36:45 -04:00
|
|
|
USE_GROFF = Yes
|
2003-07-26 07:40:45 -04:00
|
|
|
|
|
|
|
post-install:
|
2005-06-18 14:08:49 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ices/
|
2005-05-21 09:46:44 -04:00
|
|
|
${INSTALL_DATA} ${WRKINST}/${SYSCONFDIR}/ices.conf.dist \
|
|
|
|
${PREFIX}/share/examples/ices/
|
2003-07-26 07:40:45 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|