2006-12-04 16:07:56 +00:00
|
|
|
# New ports collection makefile for: lmms
|
|
|
|
# Date created: 04 Dec 2006
|
|
|
|
# Whom: Jean-Yves Lefort <jylefort@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= lmms
|
2010-01-21 21:14:47 +00:00
|
|
|
PORTVERSION= 0.4.6
|
2010-06-06 20:44:03 +00:00
|
|
|
PORTREVISION= 2
|
2009-05-23 14:23:48 +00:00
|
|
|
PORTEPOCH= 1
|
2006-12-04 16:07:56 +00:00
|
|
|
CATEGORIES= audio
|
2010-01-14 20:52:42 +00:00
|
|
|
MASTER_SITES= SF
|
2006-12-04 16:07:56 +00:00
|
|
|
|
2010-09-03 09:38:53 +00:00
|
|
|
MAINTAINER= rodrigo@bebik.net
|
2006-12-04 16:07:56 +00:00
|
|
|
COMMENT= An all-in-one sequencer, drum machine, sampler and more
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
|
2009-05-23 14:23:48 +00:00
|
|
|
LIB_DEPENDS= FLAC.10:${PORTSDIR}/audio/flac \
|
2010-01-05 20:54:26 +00:00
|
|
|
fluidsynth.4:${PORTSDIR}/audio/fluidsynth \
|
2009-05-23 14:23:48 +00:00
|
|
|
samplerate.1:${PORTSDIR}/audio/libsamplerate \
|
|
|
|
sndfile.1:${PORTSDIR}/audio/libsndfile \
|
|
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis \
|
|
|
|
fftw3f.5:${PORTSDIR}/math/fftw3-float
|
|
|
|
RUN_DEPENDS:= ${BUILD_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 \
|
|
|
|
update-mime-database:${PORTSDIR}/misc/shared-mime-info
|
|
|
|
|
|
|
|
OPTIONS= JACK "Enable JACK support" OFF \
|
|
|
|
PULSEAUDIO "Enable PulseAudio support" OFF \
|
|
|
|
SDL "Enable SDL support" OFF
|
2006-12-04 16:07:56 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2009-05-23 14:23:48 +00:00
|
|
|
USE_XORG= xft
|
|
|
|
USE_QT_VER= 4
|
|
|
|
QT_COMPONENTS= corelib gui xml moc_build uic_build rcc_build \
|
|
|
|
qmake_build
|
|
|
|
USE_CMAKE= yes
|
|
|
|
CMAKE_USE_PTHREAD= yes
|
|
|
|
CMAKE_ARGS= -DWANT_ALSA:BOOL=OFF \
|
2009-08-28 23:29:42 +00:00
|
|
|
-DWANT_CALF:BOOL=OFF \
|
2009-05-23 14:23:48 +00:00
|
|
|
-DWANT_CAPS:BOOL=OFF \
|
|
|
|
-DWANT_CMT:BOOL=OFF \
|
|
|
|
-DWANT_SWH:BOOL=OFF \
|
|
|
|
-DWANT_STK:BOOL=OFF \
|
|
|
|
-DWANT_TAP:BOOL=OFF \
|
|
|
|
-DWANT_VST:BOOL=OFF
|
2006-12-04 16:07:56 +00:00
|
|
|
|
2009-05-23 14:23:48 +00:00
|
|
|
MANCOMPRESSED= yes
|
2006-12-04 16:07:56 +00:00
|
|
|
MAN1= lmms.1
|
|
|
|
|
2009-05-23 14:23:48 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_JACK)
|
|
|
|
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWANT_JACK:BOOL=OFF
|
|
|
|
.endif
|
2006-12-04 16:07:56 +00:00
|
|
|
|
2009-05-23 14:23:48 +00:00
|
|
|
.if defined(WITH_PULSEAUDIO)
|
2009-09-17 19:53:42 +00:00
|
|
|
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
|
2009-05-23 14:23:48 +00:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWANT_PULSEAUDIO:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SDL)
|
|
|
|
USE_SDL= sdl
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWANT_SDL:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
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 file in data/lmms src/core/config_mgr.cpp
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr|${PREFIX}|g' ${WRKSRC}/${file}
|
|
|
|
.endfor
|
|
|
|
.for file in src/core/ladspa_manager.cpp
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/\/usr\/lib/d ; \
|
|
|
|
s|/usr/local|${PREFIX}|g' ${WRKSRC}/${file}
|
|
|
|
.endfor
|
2006-12-04 16:07:56 +00:00
|
|
|
|
2006-12-06 11:16:29 +00:00
|
|
|
post-install:
|
2009-05-23 14:23:48 +00:00
|
|
|
@${LN} -sf ${DATADIR}/themes/default/icon.png \
|
|
|
|
${PREFIX}/share/pixmaps/lmms.png
|
|
|
|
@-update-mime-database ${PREFIX}/share/mime
|
2006-12-06 11:16:29 +00:00
|
|
|
# make it setuid-root to be able to set realtime priority
|
|
|
|
# (root privileges are dropped in the main routine)
|
|
|
|
${CHMOD} u+s ${PREFIX}/bin/lmms
|
|
|
|
|
2009-05-23 14:23:48 +00:00
|
|
|
.include <bsd.port.post.mk>
|