91005d0bd1
a stumbling block for audio/flac updates. Identical to what is currently in the upstream repository. Regen patches while here. ok naddy@
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.12 2007/09/08 16:25:06 mgrimm Exp $
|
|
|
|
COMMENT= icecast source for streaming MP3
|
|
|
|
DISTNAME= ices-0.4
|
|
PKGNAME= ${DISTNAME}p3
|
|
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
|
|
WANTLIB= c m ogg perl pthread theora util vorbis vorbisfile z
|
|
|
|
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
|
|
LIB_DEPENDS= mp3lame:lame-*:audio/lame,no_x11 \
|
|
shout.>=3::net/libshout \
|
|
speex.>=4::audio/speex \
|
|
FLAC.>=5::audio/flac \
|
|
xml2.>=7::textproc/libxml
|
|
|
|
FLAVORS= python mp4
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mpython}
|
|
PYTHON_VER= 2.4
|
|
CONFIGURE_ARGS+=--with-python=${LOCALBASE}/bin/python${PYTHON_VER}
|
|
LIB_DEPENDS+= python${PYTHON_VER}:python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
|
.else
|
|
CONFIGURE_ARGS+=--without-python
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mmp4}
|
|
CONFIGURE_ARGS+=--with-faad=${LOCALBASE}
|
|
LIB_DEPENDS+= faad,mp4v2::audio/faad
|
|
.else
|
|
CONFIGURE_ARGS+=--without-faad
|
|
.endif
|
|
|
|
SEPARATE_BUILD= simple
|
|
USE_LIBTOOL= 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>
|