summaryrefslogtreecommitdiff
path: root/audio/lmms/Makefile
blob: fb67ea7983d9c13097f9994ec587929eedf214ca (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
# New ports collection makefile for:	lmms
# Date created:				04 Dec 2006
# Whom:					Jean-Yves Lefort <jylefort@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	lmms
PORTVERSION=	20061204
PORTREVISION=	7
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	jylefort

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An all-in-one sequencer, drum machine, sampler and more

BUILD_DEPENDS=	${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
LIB_DEPENDS=	jack:${PORTSDIR}/audio/jack \
		vorbis:${PORTSDIR}/audio/libvorbis \
		FLAC:${PORTSDIR}/audio/flac \
		samplerate:${PORTSDIR}/audio/libsamplerate \
		sndfile:${PORTSDIR}/audio/libsndfile
RUN_DEPENDS=	${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa

USE_BZIP2=	yes
USE_QT_VER=	3
USE_SDL=	sdl sound
USE_GMAKE=	yes

USE_AUTOTOOLS=	autoconf:261 autoheader:261 automake:19 aclocal:19 libtool:15
ACLOCAL_ARGS=	-I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS=	-a
CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS=	--without-vst --without-stk

MAN1=		lmms.1

post-patch:
	@${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|; s|@LOCALBASE@|${LOCALBASE}|' \
		${WRKSRC}/plugins/ladspa_base/ladspa_manager.cpp \
		${WRKSRC}/src/core/config_mgr.cpp
	@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \
		${WRKSRC}/data/lmms \
		${WRKSRC}/data/lmms.desktop

pre-configure:
	@cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE}

post-install:
	# 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

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600000
BROKEN=		fails to install
.endif

.if ${OSVERSION} >= 700042 && ${ARCH} == "amd64"
BROKEN=		does not compile
.endif

.include <bsd.port.post.mk>