aboutsummaryrefslogtreecommitdiffstats
path: root/audio/zita-convolver/Makefile
blob: c378c23b64fc9f150206e0d2c3c621891711472e (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
# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$

PORTNAME=   zita-convolver
PORTVERSION=    3.1.0
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   http://kokkinizita.linuxaudio.org/linuxaudio/downloads/

MAINTAINER= yuri@FreeBSD.org
COMMENT=    Fast, partitioned convolution engine library

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/../COPYING

BUILD_DEPENDS=  ${LOCALBASE}/include/fftw3.h:math/fftw3
LIB_DEPENDS=    libfftw3f.so:math/fftw3-float

#BROKEN_aarch64=        fails to compile: c++: the clang compiler does not support '-march=native'
#BROKEN_armv6=      fails to compile: c++: the clang compiler does not support '-march=native'
#BROKEN_armv7=      fails to compile: c++: the clang compiler does not support '-march=native'

USES=       compiler:c++11-lib gmake localbase:ldflags tar:bz2
USE_LDCONFIG=   yes
WRKSRC_SUBDIR=  libs

PLIST_FILES=    include/zita-convolver.h \
        lib/libzita-convolver.so \
        lib/libzita-convolver.so.3 \
        lib/libzita-convolver.so.${PORTVERSION}

post-patch:
    ${REINPLACE_CMD} 's/__APPLE__/__FreeBSD__/' \
        ${WRKSRC}/zita-convolver.h

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libzita-convolver.so.${PORTVERSION}

.include <bsd.port.mk>