1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/audio/osalp/Makefile
Pietro Cerutti 80007d3e81 - Fix build on modern compilers [MFH]
- STAGE-clean

MFH:		2014Q1
2014-01-30 14:24:18 +00:00

41 lines
996 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= osalp
PORTVERSION= 0.7.5
PORTREVISION= 5
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}-beta
MAINTAINER= gahr@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
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>