openbsd-ports/net/ices/Makefile

69 lines
1.5 KiB
Makefile
Raw Normal View History

2010-11-11 09:00:44 -05:00
# $OpenBSD: Makefile,v 1.19 2010/11/11 14:00:45 espie Exp $
COMMENT= icecast source for streaming MP3
DISTNAME= ices-0.4
REVISION= 6
CATEGORIES= net audio
HOMEPAGE= http://www.icecast.org/ices.php
MAINTAINER= Moritz Grimm <mdgrimm@gmx.net>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2010-11-11 09:00:44 -05:00
WANTLIB = c m ogg perl pthread theora util vorbis vorbisfile z
WANTLIB += ${MODPY_WANTLIB}
WANTLIB += mp3lame shout.>=3 speex.>=4 FLAC.>=5 xml2.>=7
MASTER_SITES= http://downloads.xiph.org/releases/ices/
AUTOCONF_VERSION=2.59
CONFIGURE_STYLE=gnu autoconf
CONFIGURE_ARGS= --with-docdir=${LOCALBASE}/share/doc/ices \
--with-moddir=${LOCALBASE}/share/ices \
--with-lame=${LOCALBASE} --with-vorbis=${LOCALBASE} \
--with-flac=${LOCALBASE}
MODULES= converters/libiconv
2010-11-11 09:00:44 -05:00
LIB_DEPENDS= ::audio/lame \
::net/libshout \
::audio/speex \
::audio/flac \
::textproc/libxml
FLAVORS= python mp4
FLAVOR?=
.if ${FLAVOR:L:Mpython}
MODULES+= lang/python
CONFIGURE_ARGS+=--with-python=${MODPY_BIN}
LIB_DEPENDS+= ${MODPY_LIB_DEPENDS}
.else
CONFIGURE_ARGS+=--without-python
.endif
.if ${FLAVOR:L:Mmp4}
CONFIGURE_ARGS+=--with-faad=${LOCALBASE}
2010-11-11 09:00:44 -05:00
LIB_DEPENDS+= ::audio/faad \
::multimedia/libmp4v2
WANTLIB += faad mp4v2
.else
CONFIGURE_ARGS+=--without-faad
.endif
SEPARATE_BUILD= simple
USE_LIBTOOL= Yes
2010-10-18 14:36:45 -04:00
USE_GROFF = Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ices/
${INSTALL_DATA} ${WRKINST}/${SYSCONFDIR}/ices.conf.dist \
${PREFIX}/share/examples/ices/
.include <bsd.port.mk>