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