blob: 4aba7c8787f07017b531d60edd2a6df981ac18f8 (
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
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= fplib
PORTVERSION= 20121001
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Last.fm fingerprint library
LICENSE= LGPL3
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libfftw3.so:${PORTSDIR}/math/fftw3 \
libfftw3f.so:${PORTSDIR}/math/fftw3-float \
libmad.so:${PORTSDIR}/audio/libmad \
libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
libtag.so:${PORTSDIR}/audio/taglib
CPPFLAGS+= -I${LOCALBASE}/include
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
USES= cmake tar:xz
post-patch:
@${REINPLACE_CMD} \
-e 's|\(ADD_DEFINITIONS\)(.*)|\1(${CFLAGS} ${CPPFLAGS})|' \
-e 's|\(LINK_DIRECTORIES\)(\(.*\))|\1(\2 ${LOCALBASE}/lib)|' \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>
|