Ticket #10831: Portfile

File Portfile, 955 bytes (added by bytestorm@…, 18 years ago)

Ices2.0.1 Portfile with -D_MACOSX_ and <sys/select.h> fixes.

Line 
1# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
2
3PortSystem 1.0
4name             ices2
5version          2.0.1
6categories       audio net
7maintainers      nomaintainer@macports.org
8description      Stream audio to an icecast server
9long_description \
10        source client for broadcasting in Ogg Vorbis format \
11        to an icecast2 server
12homepage         http://www.icecast.org/ices.php
13platforms        darwin
14
15master_sites     http://downloads.us.xiph.org/releases/ices/
16distname         ices-${version}
17checksums        sha1 045e8419c494d77162668e8362b3c9ddc4b4974c
18use_bzip2        yes
19
20depends_build    bin:pkg-config:pkgconfig
21depends_lib      lib:libshout:libshout2 port:libxml2
22
23post-configure {
24        reinplace "s|VORBIS_CFLAGS = -I/opt/local/include|VORBIS_CFLAGS = -I/opt/local/include -D_MACOSX_ |g" ${worksrcpath}/Makefile
25        reinplace "s|#include <unistd.h>|#include <sys/select.h>\\\n#include <unistd.h>|g" ${worksrcpath}/src/metadata.c
26}