2008-03-25 13:29:57 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2008/03/25 17:29:57 fgsch 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
|
2008-03-25 13:29:57 -04:00
|
|
|
PKGNAME= ${DISTNAME}p5
|
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
|
|
|
|
2007-07-21 04:09:31 -04:00
|
|
|
MAINTAINER= Moritz Grimm <mdgrimm@gmx.net>
|
2003-07-26 07:40:45 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2006-03-14 15:00:20 -05:00
|
|
|
WANTLIB= c m ogg perl pthread theora util vorbis vorbisfile z
|
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
|
2008-03-25 13:29:57 -04:00
|
|
|
LIB_DEPENDS= mp3lame:lame-*:audio/lame \
|
2006-08-01 06:50:19 -04:00
|
|
|
shout.>=3::net/libshout \
|
|
|
|
speex.>=4::audio/speex \
|
|
|
|
FLAC.>=5::audio/flac \
|
|
|
|
xml2.>=7::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}
|
|
|
|
LIB_DEPENDS+= faad,mp4v2::audio/faad
|
|
|
|
.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
|
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>
|