summaryrefslogtreecommitdiff
path: root/audio/linuxsampler/Makefile
blob: 8430b0efc6aceef0fb50ec52a15ab845f55ce3dc (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
59
60
PORTNAME=	linuxsampler
DISTVERSION=	2.4.0
CATEGORIES=	audio
MASTER_SITES=	https://download.linuxsampler.org/packages/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Modular MIDI sampler
WWW=		https://www.linuxsampler.org/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

ONLY_FOR_ARCHS=	amd64 i386
ONLY_FOR_ARCHS_REASON=	not yet ported to this architecture

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

USES=		bison compiler:c++14-lang gmake libtool localbase pathfix perl5 \
		pkgconfig sqlite:3 tar:bzip2 shebangfix
USE_LDCONFIG=	${PREFIX}/lib/linuxsampler
USE_PERL5=	build

SHEBANG_FILES=	scripts/generate_lscp_shell_reference.pl \
		scripts/update_lscp_grammar.pl

GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
CONFIGURE_ENV=	HAVE_UNIX98=1
CONFIGURE_ARGS=	--disable-arts-driver

MAKE_JOBS_UNSAFE=	yes # https://bugs.linuxsampler.org/cgi-bin/show_bug.cgi?id=322

INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=		JACK ALSA
OPTIONS_DEFAULT=	JACK
OPTIONS_SUB=		yes

ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
ALSA_CONFIGURE_ENABLE=	alsa-driver
ALSA_BROKEN=		error: unknown type name 'snd_pcm_t'

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

CONFLICTS_BUILD=	dssi # DSSI is a no-longer-maintained interface to obsolete LADSPA plugins - no need to pull DSSI and LADSPA into dependencies

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>