aboutsummaryrefslogtreecommitdiffstats
path: root/audio/carla/Makefile
blob: a98d7f99dfc8ce9bad6f18deb4813da41df58cc5 (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
58
# $FreeBSD$

PORTNAME=   Carla
DISTVERSIONPREFIX=  v
DISTVERSION=    1.9.12
CATEGORIES= audio

MAINTAINER= yuri@FreeBSD.org
COMMENT=    Audio LV2 plugin host for Jack and PulseAudio

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/doc/GPL.txt

LIB_DEPENDS=    liblo.so:audio/liblo \
        libsndfile.so:audio/libsndfile
RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}pyliblo>0:audio/py-pyliblo@${PY_FLAVOR}

CONFLICTS_BUILD=    rtaudio-* rtmidi-*

USES=       compiler:c++11-lib desktop-file-utils gmake gnome localbase \
        pkgconfig pyqt:5 python:3.4+ qt:5 shared-mime-info shebangfix tar:bz2
USE_GITHUB= yes
GH_ACCOUNT= falkTX
USE_PYQT=   core_run gui_run sip svg_run widgets_run xml_build  # "sip" should be "sip_build", but "import PyQt5.QtCore" wants "sip". See bug#225040
USE_GNOME=  gtk20 gtk30
USE_QT=     core gui widgets buildtools_build
USE_XORG=   x11
USE_LDCONFIG=   ${PREFIX}/lib/carla
SHEBANG_FILES=  data/carla-single source/native-plugins/resources/*

MAKE_ARGS=  HAVE_QT4=false \
        EXTERNAL_PLUGINS=false

OPTIONS_DEFINE=     FFMPEG FLUIDSYNTH LINUXSAMPLER
OPTIONS_DEFAULT=    FFMPEG FLUIDSYNTH JACK LINUXSAMPLER
OPTIONS_MULTI=      BACKEND
OPTIONS_MULTI_BACKEND=  JACK PULSEAUDIO
BACKEND_DESC=       Audio backend
LINUXSAMPLER_DESC=  Use LinuxSampler: a software audio sampler

FFMPEG_LIB_DEPENDS=     libavutil.so:multimedia/ffmpeg
FFMPEG_MAKE_ARGS_OFF=       HAVE_FFMPEG=false
FLUIDSYNTH_LIB_DEPENDS=     libfluidsynth.so:audio/fluidsynth
FLUIDSYNTH_MAKE_ARGS_OFF=   HAVE_FLUIDSYNTH=false
LINUXSAMPLER_LIB_DEPENDS=   liblinuxsampler.so:audio/linuxsampler
LINUXSAMPLER_MAKE_ARGS_OFF= HAVE_LINUXSAMPLER=false
JACK_RUN_DEPENDS=       ${LOCALBASE}/lib/libjack.so:audio/jack
PULSEAUDIO_LIB_DEPENDS=     libpulse-simple.so:audio/pulseaudio
PULSEAUDIO_MAKE_ARGS_OFF=   HAVE_PULSEAUDIO=false

post-install:
    @${REINPLACE_CMD} -i '' -e 's|^PYTHON=.*|PYTHON=${PYTHON_CMD}|' ${STAGEDIR}${PREFIX}/bin/carla*

devel-features: patch
    @${ECHO} "Developer command: show build features"
    cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} features

.include <bsd.port.mk>