aboutsummaryrefslogtreecommitdiff
path: root/audio/hydrogen/Makefile
blob: 23b3e0ea3c48351e475bb36e457f68b1416f7900 (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
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
# $FreeBSD$

PORTNAME=	hydrogen
PORTVERSION=	0.9.6.1
CATEGORIES=	audio
MASTER_SITES=	GHL

MAINTAINER=	FreeBSD@ShaneWare.Biz
COMMENT=	Advanced drum machine

LICENSE=	GPLv2

LIB_DEPENDS=	libsndfile.so:${PORTSDIR}/audio/libsndfile

CONFLICTS=	hydrogen-devel-0.*

USE_GITHUB=	yes
GH_ACCOUNT=	hydrogen-music
GH_PROJECT=	hydrogen
GH_TAGNAME=	0.9.6.1
GH_COMMIT=	71ec7c5

USE_QT4=	corelib gui qmake_build linguist_build moc_build network \
		qt3support rcc_build sql uic_build xml
USES=		cmake:outsource desktop-file-utils pkgconfig
CMAKE_ARGS+=	-DTHREADS_HAVE_PTHREAD_ARG:BOOL=ON -DWANT_DEBUG:BOOL=OFF \
		-DLIBSNDFILE_INCLUDE_DIR:STRING=${LOCALBASE}/include \
		-DWANT_OSS:BOOL=ON
USE_LDCONFIG=	yes
LDFLAGS+=	-L${LOCALBASE}/lib

OPTIONS_DEFINE=		ALSA JACK LADSPA LASH PORTAUDIO PULSEAUDIO RDF
OPTIONS_DEFAULT=	JACK LADSPA RDF

ALSA_CMAKE_ON=		-DWANT_ALSA:BOOL=ON
ALSA_CMAKE_OFF=		-DWANT_ALSA:BOOL=OFF
ALSA_LIB_DEPENDS=	libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_RUN_DEPENDS=	alsa-plugins>=0:${PORTSDIR}/audio/alsa-plugins

JACK_CMAKE_ON=		-DWANT_JACK:BOOL=ON -DWANT_JACKSESSION:BOOL=ON
JACK_CMAKE_OFF=		-DWANT_JACK:BOOL=OFF -DWANT_JACKSESSION:BOOL=OFF
JACK_LIB_DEPENDS=	libjack.so:${PORTSDIR}/audio/jack

LADSPA_CMAKE_ON=	-DWANT_LADSPA:BOOL=ON \
			-DLADSPA_LIBRARIES:STRING=${LOCALBASE}/lib/ladspa
LADSPA_CMAKE_OFF=	-DWANT_LADSPA:BOOL=OFF
LADSPA_BUILD_DEPENDS=	ladspa>=0:${PORTSDIR}/audio/ladspa
LADSPA_RUN_DEPENDS=	analyseplugin:${PORTSDIR}/audio/ladspa

LASH_CMAKE_ON=		-DWANT_LASH:BOOL=ON
LASH_CMAKE_OFF=		-DWANT_LASH:BOOL=OFF
LASH_LIB_DEPENDS=	liblash.so:${PORTSDIR}/audio/lash

PORTAUDIO_CMAKE_ON=	-DWANT_PORTAUDIO:BOOL=ON \
			-DPORTAUDIO_LIBRARIES:STRING=${LOCALBASE}/lib/portaudio2/libportaudio.so
PORTAUDIO_CMAKE_OFF=	-DWANT_PORTAUDIO:BOOL=OFF
PORTAUDIO_LIB_DEPENDS=	libportaudio.so.2:${PORTSDIR}/audio/portaudio2

PULSEAUDIO_CMAKE_ON=	-DWANT_PULSEAUDIO:BOOL=ON
PULSEAUDIO_CMAKE_OFF=	-DWANT_PULSEAUDIO:BOOL=OFF
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:${PORTSDIR}/audio/pulseaudio

RDF_DESC=		RDF File support
RDF_CMAKE_ON=		-DWANT_LRDF:BOOL=ON \
			-DLRDF_INCLUDE_DIR:STRING=${LOCALBASE}/include/raptor2
RDF_CMAKE_OFF=		-DWANT_LRDF:BOOL=OFF
RDF_LIB_DEPENDS=	liblrdf.so:${PORTSDIR}/textproc/liblrdf

.include <bsd.port.mk>