freebsd-ports/audio/fplib/Makefile
Sunpoet Po-Chuan Hsieh 65cd17a75f - Update to 20120911
- Cleanup Makefile header

Changes:	https://github.com/lastfm/Fingerprinter/commits/master/
2012-09-30 04:54:18 +00:00

34 lines
858 B
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= fplib
PORTVERSION= 20120911
CATEGORIES= audio
MASTER_SITES= LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Last.fm fingerprint library
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
fftw3:${PORTSDIR}/math/fftw3 \
fftw3f:${PORTSDIR}/math/fftw3-float \
mad:${PORTSDIR}/audio/libmad \
samplerate:${PORTSDIR}/audio/libsamplerate \
tag:${PORTSDIR}/audio/taglib
CPPFLAGS+= -I${LOCALBASE}/include
REINPLACE_ARGS= -i ''
USE_CMAKE= yes
USE_LDCONFIG= yes
USE_XZ= yes
post-patch:
@${REINPLACE_CMD} \
-e 's|\(ADD_DEFINITIONS\)(.*)|\1(${CFLAGS} ${CPPFLAGS})|' \
-e 's|\(LINK_DIRECTORIES\)(\(.*\))|\1(\2 ${LOCALBASE}/lib)|' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} \
-e '85 s|size|&()|' \
${WRKSRC}/include/fplib/FloatingAverage.h
.include <bsd.port.mk>