summaryrefslogtreecommitdiff
path: root/audio/csound6/Makefile
blob: ba0d09a90d0606c7a2ddcee91d738d83a910b6ee (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
# $NetBSD: Makefile,v 1.60 2021/02/07 06:30:12 ryoon Exp $

DISTNAME=		csound-${CSOUND_VERSION}
PKGNAME=		csound6-${CSOUND_VERSION}
PKGREVISION=		7
CATEGORIES=		audio
MASTER_SITES=		${MASTER_SITE_GITHUB:=csound/}
GITHUB_PROJECT=		csound

MAINTAINER=		mrg@eterna.com.au
HOMEPAGE=		https://github.com/csound
COMMENT=		Software synthesizer and sequencer
LICENSE=		gnu-lgpl-v2.1 # or later

CSOUND_VERSION=		6.15.0
USE_LANGUAGES=		c c++
USE_TOOLS+=		bison flex
CFLAGS+=		-g -DBETA
CFLAGS+=		-DCS_DEFAULT_PLUGINDIR=\"${PREFIX}/lib/csound/plugins64-6.0\"
USE_CMAKE=		yes
CMAKE_ARGS+=		-DBUILD_RELEASE=1
CMAKE_ARGS+=		-DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+=		-DBUILD_HDF5_OPCODES=OFF
# CMAKE_INSTALL_RPATH doesn't work for some reason, so do it here.
LDFLAGS+=		${COMPILER_RPATH_FLAG}${PREFIX}/lib/csound6

INSTALLATION_DIRS=	bin

CHECK_PORTABILITY_SKIP+= \
	Android/build-all.sh \
	installer/misc/makedeb.sh \
	installer/macosx/beta-build.sh \
	installer/macosx/release-build.sh \
	installer/macosx/release-build-10.8.sh \
	installer/macosx/release-build-10.10.sh \
	frontends/max_csound_tilde/installer/build-installer.sh \
	frontends/max_csound_tilde/installer/build-installer-windows.sh

.include "../../mk/bsd.prefs.mk"

post-install:
	cd ${DESTDIR}${PREFIX} && \
		rm -f bin/csound6 && \
		${LN} -s csound bin/csound6

.include "options.mk"

.include "../../audio/fluidsynth/buildlink3.mk"
.include "../../audio/libsamplerate/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/liblo/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../math/eigen3/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../x11/fltk13/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"