aboutsummaryrefslogtreecommitdiffstats
path: root/audio/libshout2/Makefile
blob: 1152aeed3e9cd9df79e8b7748bc9f0fedb4a4e0e (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
# New ports collection makefile for:    libshout
# Date created:             06 Jun 2000
# Whom:                 zach@pabst.bendnet.com
#
# $FreeBSD$
#

PORTNAME=   libshout2
PORTVERSION=    2.0
PORTREVISION=   4
PORTEPOCH=  1
CATEGORIES= audio net
MASTER_SITES=   http://www.icecast.org/files/libshout/
DISTNAME=   libshout-${PORTVERSION}

MAINTAINER= lofi@freebsd.org
COMMENT=    Routines for connecting and transmitting data to the icecast server

LIB_DEPENDS=    vorbis.3:${PORTSDIR}/audio/libvorbis

CONFIGURE_ENV=  CFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
USE_GMAKE=  yes
USE_GNOME+= pkgconfig
USE_LIBTOOL_VER=13
CONFLICTS=  libshout-1.0.7
USE_REINPLACE=  yes

.include <bsd.port.pre.mk>

## Megacrude hack to make the shared lib link against libc_r on -STABLE.
## If anybody finds a way to do it with -pthread, let me know.

.if ${OSVERSION} < 500016
CONFIGURE_ENV=  CFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="-lc_r -L${LOCALBASE}/lib"
.endif

pre-configure:
    @ ${REINPLACE_CMD} -e "s|-ffast-math||g" ${WRKSRC}/configure

post-configure:
    @ ${REINPLACE_CMD} -e "s|pkgconfigdir =.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g" \
        ${WRKSRC}/Makefile

.include <bsd.port.post.mk>