aboutsummaryrefslogtreecommitdiffstats
path: root/audio/linuxsampler/Makefile
blob: 1c83e37a04f8c6307b2c1b4e4c2ad3668a56b21d (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: trasz <trasz@pin.if.uz.zgora.pl>
# $FreeBSD$

PORTNAME=   linuxsampler
DISTVERSION=    2.1.0
CATEGORIES= audio
MASTER_SITES=   https://download.linuxsampler.org/packages/

MAINTAINER= yuri@FreeBSD.org
COMMENT=    Modular MIDI sampler

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON=  "not yet ported"

BUILD_DEPENDS=  lv2>0:audio/lv2
LIB_DEPENDS=    libgig.so:audio/libgig \
        libsndfile.so:audio/libsndfile \
        libuuid.so:misc/e2fsprogs-libuuid

USES=       bison gmake libtool pathfix pkgconfig sqlite:3 tar:bzip2
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  HAVE_UNIX98=1
USE_LDCONFIG=   ${PREFIX}/lib/linuxsampler
INSTALL_TARGET= install-strip

CONFIGURE_ARGS+=    --disable-arts-driver

OPTIONS_DEFINE=     JACK ALSA DSSI LV2
OPTIONS_DEFAULT=    JACK
OPTIONS_SUB=    yes

JACK_LIB_DEPENDS=   libjack.so:audio/jack
JACK_CONFIGURE_ENABLE=  jack-driver

ALSA_LIB_DEPENDS=   libasound.so:audio/alsa-lib
ALSA_CONFIGURE_ENABLE=  alsa-driver

DSSI_DESC=      Enable DSSI support
DSSI_BUILD_DEPENDS= dssi>0:audio/dssi
DSSI_CPPFLAGS=  -I${LOCALBASE}/include/dssi

LV2_DESC=       Enable LV2 support
LV2_BUILD_DEPENDS=  lv2>0:audio/lv2
LV2_CONFIGURE_ENV_OFF=  ac_cv_header_lv2_h=no

post-patch:
    @${REINPLACE_CMD} -e \
        's|CXX_CPU_SWITCH=.*|CXX_CPU_SWITCH=|g ; \
         s|"lv2core"|"_lv2core_"|' ${WRKSRC}/configure

post-install:
    @${TOUCH} ${STAGEDIR}${PREFIX}/lib/linuxsampler/plugins/.keep_me

.include <bsd.port.mk>