blob: dc76b00cedfb87e3892f7a5730c56e4a1d5c30ac (
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
|
# $NetBSD: Makefile,v 1.82 2022/08/11 05:08:03 gutteridge Exp $
DISTNAME= lmms_1.2.2
PKGNAME= ${DISTNAME:S/_/-/1}
PKGREVISION= 18
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_GITHUB:=LMMS/}
GITHUB_PROJECT= lmms
GITHUB_RELEASE= v${PKGVERSION_NOREV}
EXTRACT_SUFX= .tar.xz
MAINTAINER= nia@NetBSD.org
HOMEPAGE= https://lmms.io/
COMMENT= Cross-platform music production software
LICENSE= gnu-gpl-v2
TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools
WRKSRC= ${WRKDIR}/lmms
USE_CMAKE= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
.include "../../mk/oss.buildlink3.mk"
.if ${OSS_TYPE} != "none"
LDFLAGS+= ${LIBOSSAUDIO}
.endif
CMAKE_ARGS+= -Wno-dev
CMAKE_ARGS+= -DWANT_QT5=ON
CMAKE_ARGS+= -DWANT_GIG=OFF # requires libgig
CMAKE_ARGS+= -DWANT_STK=OFF # requires libstk
CMAKE_ARGS+= -DWANT_CARLA=OFF # requires carla
CMAKE_ARGS+= -DWANT_SOUNDIO=OFF # requires libsoundio
CMAKE_ARGS+= -DWANT_SNDIO=OFF # requires sndio
CMAKE_ARGS+= -DWANT_VST_NOWINE=ON
# for libzynaddsubfx.so in plugins/zynaddsubfx/.
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/lmms
LDFLAGS.NetBSD+= -lrt
BUILDLINK_TRANSFORM+= rm:-floop-optimize2 rm:-fgcse-las
CHECK_PORTABILITY_SKIP+= cmake/linux/package_linux.sh.in
.include "options.mk"
.include "../../audio/fluidsynth/buildlink3.mk"
.include "../../audio/lame/buildlink3.mk"
.include "../../audio/libsamplerate/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../math/fftw/buildlink3.mk"
.include "../../multimedia/libogg/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/fltk13/buildlink3.mk" # used for zynaddsubfx
.include "../../x11/qt5-qtbase/buildlink3.mk"
.if ${OPSYS} != "Darwin"
. include "../../x11/qt5-qtx11extras/buildlink3.mk"
.endif
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
.include "../../mk/bsd.pkg.mk"
|