blob: 003ba382deb9edfe00c18b584ad420c026f1180e (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Created by: Jean-Yves Lefort <jylefort@FreeBSD.org>
# $FreeBSD$
PORTNAME= lmms
PORTVERSION= 0.4.15
PORTREVISION= 4
PORTEPOCH= 2
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= All-in-one sequencer, drum machine, sampler, and more
LICENSE= GPLv2
BROKEN= Unfetchable
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac \
libfluidsynth.so:${PORTSDIR}/audio/fluidsynth \
libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
libsndfile.so:${PORTSDIR}/audio/libsndfile \
libvorbis.so:${PORTSDIR}/audio/libvorbis \
libfftw3.so:${PORTSDIR}/math/fftw3 \
libfftw3f.so:${PORTSDIR}/math/fftw3-float
RUN_DEPENDS= ${LOCALBASE}/share/ladspa/rdf/caps.rdf:${PORTSDIR}/audio/caps-plugins \
${LOCALBASE}/lib/ladspa/cmt.so:${PORTSDIR}/audio/cmt \
${LOCALBASE}/share/ladspa/rdf/swh-plugins.rdf:${PORTSDIR}/audio/swhplugins \
${LOCALBASE}/share/ladspa/rdf/tap-plugins.rdf:${PORTSDIR}/audio/tap-plugins \
OPTIONS_DEFINE= JACK PULSEAUDIO SDL
USE_LDCONFIG= yes
USE_XORG= xft
USE_QT4= corelib gui xml moc_build uic_build rcc_build \
qmake_build
USES= cmake pkgconfig tar:bzip2 desktop-file-utils shared-mime-info dos2unix
CMAKE_ARGS= -DWANT_ALSA:BOOL=OFF \
-DWANT_CALF:BOOL=OFF \
-DWANT_CAPS:BOOL=OFF \
-DWANT_CMT:BOOL=OFF \
-DWANT_SWH:BOOL=OFF \
-DWANT_STK:BOOL=OFF \
-DWANT_TAP:BOOL=OFF \
-DWANT_VST:BOOL=OFF \
-DHAVE_STRTOLL=ON
DOS2UNIX_FILES= plugins/midi_import/portsmf/allegrowr.cpp plugins/midi_import/portsmf/mfmidi.cpp CMakeLists.txt
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
JACK_CMAKE_OFF= -DWANT_JACK:BOOL=OFF
PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
PULSEAUDIO_CMAKE_OFF= -DWANT_PULSEAUDIO:BOOL=OFF
SDL_USE= SDL=sdl
SDL_CMAKE_OFF= -DWANT_SDL:BOOL=OFF
post-patch:
.for file in data/lmms.desktop
@${REINPLACE_CMD} -e \
'/^Icon/s|=.*$$|=lmms|g ; \
/^Exec/s|=.*$$|=lmms|g ; \
/^Categories/s|$$|;|g ; \
/^MimeType/s|$$|;|g' ${WRKSRC}/${file}
.endfor
.for filename in data/lmms src/core/config_mgr.cpp
@${REINPLACE_CMD} -e \
's|/usr|${PREFIX}|g' ${WRKSRC}/${filename}
.endfor
.for filename in src/core/ladspa_manager.cpp
@${REINPLACE_CMD} -e \
'/\/usr\/lib/d ; \
s|/usr/local|${PREFIX}|g' ${WRKSRC}/${filename}
.endfor
@${REINPLACE_CMD} -e 's/lib64/lib/' \
${WRKSRC}/cmake/modules/DetectMachine.cmake
post-install:
@${LN} -sf ${DATADIR}/themes/default/icon.png \
${STAGEDIR}${PREFIX}/share/pixmaps/lmms.png
# make it setuid-root to be able to set realtime priority
# (root privileges are dropped in the main routine)
${CHMOD} u+s ${STAGEDIR}${PREFIX}/bin/lmms
.include <bsd.port.mk>
|