summaryrefslogtreecommitdiff
path: root/audio/synthpod-lv2/Makefile
blob: d26d36a15ed004722dee61a05ee783b0224c2da5 (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$

PORTNAME=	synthpod
PORTVERSION=	g20170810
PORTREVISION=	4
CATEGORIES=	audio
PKGNAMESUFFIX=	-lv2

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Lightweight Nonlinear LV2 Plugin Container

LICENSE=	ART20
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	lv2>0:audio/lv2
LIB_DEPENDS=	liblilv-0.so:audio/lilv \
		libserd-0.so:devel/serd \
		libsord-0.so:devel/sord \
		libsratom-0.so:audio/sratom

USES=		cmake:insource compiler:c++11-lib pkgconfig localbase
USE_GITHUB=	yes
GH_ACCOUNT=	OpenMusicKontrollers
GH_TAGNAME=	07cae54
USE_CXXSTD=	c++11

CMAKE_OFF=	BUILD_ALSA BUILD_SANDBOX_QT4

OPTIONS_DEFINE=	JACK DUMMY DOT
OPTIONS_DEFAULT=JACK X11 SHOW KX
OPTIONS_GROUP=	UI
OPTIONS_GROUP_UI=	X11 GTK2 GTK3 QT5 SHOW KX
OPTIONS_SUB=	yes

DUMMY_DESC=	Build DUMMY standalone host
DOT_DESC=	Build Dot exporter
KX_DESC=	Build external-ui sandbox
JACK_DESC=	Build JACK standalone host
X11_DESC=	Build X11 sandbox
GTK2_DESC=	Build GTK-2 sandbox
GTK3_DESC=	Build GTK-3 sandbox
QT5_DESC=	Build Qt-5 sandbox
SHOW_DESC=	Build show-iface sandbox

DOT_CMAKE_ON=	-DBUILD_DOT="ON"
DUMMY_CMAKE_ON=	-DBUILD_DUMMY="ON"
DUMMY_LIB_DEPENDS=	libuv.so:devel/libuv
GTK2_CMAKE_ON=		-DBUILD_UI="ON" -DBUILD_SANDBOX_GTK2="ON"
GTK2_LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
			libfreetype.so:print/freetype2
GTK2_USES=	gl gnome
GTK2_USE=	XORG=x11,xcb,xext GL=gl,glu GNOME=glib20,gtk20,gdkpixbuf2,atk,cairo,pango gettext-runtime
GTK3_CMAKE_ON=	-DBUILD_UI="ON" -DBUILD_SANDBOX_GTK3="ON"
GTK3_USES=	gl gnome
GTK3_USE=	XORG=x11,xcb,xext GL=glu GNOME=glib20,gtk30,gdkpixbuf2,atk,cairo,pango gettext-runtime
JACK_LIB_DEPENDS=	libjack.so:audio/jack \
			libuv.so:devel/libuv
JACK_CMAKE_OFF=	-DBUILD_JACK="OFF"
KX_CMAKE_ON=	-DBUILD_UI="ON" -DBUILD_SANDBOX_KX="ON"
KX_USES=	gl
KX_USE=		XORG=x11,xcb,xext GL=glu
QT5_USES=	qt:5
QT5_BROKEN=	Build fails: https://github.com/OpenMusicKontrollers/synthpod/issues/10
QT5_CMAKE_ON=	-DBUILD_UI="ON" -DBUILD_SANDBOX_QT5="ON"
QT5_USE=	XORG=x11,xcb,xext GL=glu QT=core,gui
SHOW_USES=	gl
SHOW_USE=	XORG=x11,xcb,xext GL=glu
SHOW_CMAKE_ON=	-DBUILD_UI="ON" -DBUILD_SANDBOX_SHOW="ON"
X11_CMAKE_ON=	-DBUILD_UI="ON" -DBUILD_SANDBOX_X11="ON"
X11_LIB_DEPENDS=	libxcb-icccm.so:x11/xcb-util-wm
X11_USES=	gl
X11_USE=	XORG=x11,xcb,xext GL=gl,glu

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MX11} || ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK3} || ${PORT_OPTIONS:MQT5} || ${PORT_OPTIONS:MSHOW} || ${PORT_OPTIONS:MKX}
PLIST_SUB+=	UI=""
.else
PLIST_SUB+=	UI="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/bin/CMakeLists.txt

.include <bsd.port.mk>