summaryrefslogtreecommitdiffstats
path: root/audio/osalp/Makefile
blob: 601045859ce58a2805633cc2050f6cf03b370fd6 (plain)
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
# Created by: ijliao
# $FreeBSD$

PORTNAME=	osalp
PORTVERSION=	0.7.5
PORTREVISION=	6
CATEGORIES=	audio
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}-beta

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Open Source Audio Library Project

RUN_DEPENDS=	mpg123:${PORTSDIR}/audio/mpg123
LIB_DEPENDS=	libmp3lame.so:${PORTSDIR}/audio/lame \
    		libvorbis.so:${PORTSDIR}/audio/libvorbis

USES=		libtool
GNU_CONFIGURE=	yes
CFLAGS+=	-fPIC -DPIC
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--enable-all

USE_LDCONFIG=	yes

PLIST_SUB=	VERSION=${PORTVERSION}

CONFLICTS=	libaudiofile-[0-9]*

post-patch:
	${FIND} ${WRKSRC} -name "*.cc" | ${XARGS} ${REINPLACE_CMD} -E \
	    's|iostream.h|iostream|; \
	     s|[[:space:]]cout| std::cout|g; \
	     s|[[:space:]]endl| std::endl|g; \
	     s|[[:space:]]cerr| std::cerr|g;'

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaflib-${PORTVERSION}.so \
	    ${STAGEDIR}${PREFIX}/lib/aflib/lib*-${PORTVERSION}.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud