aboutsummaryrefslogtreecommitdiffstats
path: root/audio/ices/Makefile
blob: 719fc488b40c03ad9790fdb3b0674a2f4338c85c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for: ices
# Date created:         11 Nov 2002
# Whom:                 Michael Nottebrock <michaelnottebrock@gmx.net>
#
# $FreeBSD$
#

PORTNAME=   ices
PORTVERSION=    20021112
CATEGORIES= audio net
MASTER_SITES=   http://tigress.com/lofi/ \
        http://lofi.dyndns.org/
DISTNAME=   ${PORTNAME}-devel-${PORTVERSION}

MAINTAINER= michaelnottebrock@gmx.net
COMMENT=    A streaming source client for icecast 2

LIB_DEPENDS=    ogg.4:${PORTSDIR}/audio/libogg \
        shout.3:${PORTSDIR}/audio/libshout2 \
        vorbis.2:${PORTSDIR}/audio/libvorbis \
        xml2.5:${PORTSDIR}/textproc/libxml2

AUTOMAKE_ARGS=  --add-missing
AUTOMAKE_ENV=   CFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-oggtest --disable-vorbistest --disable-shouttest
CONFIGURE_ENV=  CFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
USE_AUTOMAKE_VER=15
USE_GMAKE=  yes
USE_LIBTOOL=    yes
USE_REINPLACE=  yes
USE_BZIP2=  yes

WRKSRC=     ${WRKDIR}/ices

post-configure:
    @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/src/Makefile
    @${REINPLACE_CMD} -e 's|-O20|${CFLAGS}|g' ${WRKSRC}/conf/Makefile \
                        ${WRKSRC}/src/avl/Makefile \
                        ${WRKSRC}/src/log/Makefile \
                        ${WRKSRC}/src/net/Makefile \
                        ${WRKSRC}/src/thread/Makefile \
                        ${WRKSRC}/src/timing/Makefile \
                        ${WRKSRC}/src/Makefile \
                        ${WRKSRC}/Makefile

post-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/contrib/run_ices ${LOCALBASE}/bin

.include <bsd.port.mk>