summaryrefslogtreecommitdiff
path: root/audio/fabla2-lv2/Makefile
blob: 12d4c085ea143623de51c74d3839fee84616a117 (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

PORTNAME=	fabla2
DISTVERSION=	g20180331
PORTREVISION=	2
CATEGORIES=	audio
PKGNAMESUFFIX=	-lv2

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Sampler with multiple layers, banks, pads, integrated FX and routing

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	lv2>0:audio/lv2
LIB_DEPENDS=	libsamplerate.so:audio/libsamplerate \
		libsndfile.so:audio/libsndfile

USES=		cmake compiler:c++11-lang gnome pkgconfig xorg
USE_GITHUB=	yes
GH_ACCOUNT=	openAVproductions
GH_PROJECT=	openAV-Fabla2
GH_TAGNAME=	33f4062
USE_GNOME=	cairo
USE_XORG=	x11

CFLAGS+=	-I${FILESDIR}

PLIST_FILES=	lib/lv2/fabla2.lv2/fabla2.so \
		lib/lv2/fabla2.lv2/fabla2.ttl \
		lib/lv2/fabla2.lv2/fabla2ui.so \
		lib/lv2/fabla2.lv2/manifest.ttl

post-patch:
	@${REINPLACE_CMD} -e 's|GLOB srcUI  |GLOB srcUI  ${FILESDIR}/mntent_compat.c++ |' ${WRKSRC}/CMakeLists.txt
.for f in src/ui.cxx src/ui/avtk/lv2/testUi.cxx
	@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's/ _LV2UI_Descriptor/ LV2UI_Descriptor/' ${f} # fix for audio/lv2 1.18.0
.endfor

.include <bsd.port.mk>