aboutsummaryrefslogtreecommitdiffstats
path: root/audio/hydrogen-devel/Makefile
blob: 0f98ba1d786afc4d1df7bde962a662adb0aa7185 (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
85
86
87
# Created by: Shane Ambler <FreeBSD@ShaneWare.Biz>
# $FreeBSD$

PORTNAME=   hydrogen
PORTVERSION=    0.9.6r2
PORTREVISION=   1
CATEGORIES= audio
PKGNAMESUFFIX=  -devel

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

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

CONFLICTS=  hydrogen-0.*

LIB_DEPENDS+=   libsndfile.so:${PORTSDIR}/audio/libsndfile \
        libtar.so:${PORTSDIR}/devel/libtar

USE_GITHUB= yes
GH_ACCOUNT= hydrogen-music
GH_PROJECT= hydrogen
GH_TAGNAME= 0.9.6-RC2
DATADIR=    ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}

MAJORVERSION=   0.9.6
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
USE_LDCONFIG=   yes
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE=     ALSA JACK LADSPA LASH LIBARCHIVE OSS PORTAUDIO RDF RUBBERBAND
OPTIONS_DEFAULT=    JACK LADSPA LIBARCHIVE OSS 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 \
            -DLASH_INCLUDE_DIR:STRING=${LOCALBASE}/include/lash-1.0
LASH_CMAKE_OFF=     -DWANT_LASH:BOOL=OFF
LASH_LIB_DEPENDS=   liblash.so:${PORTSDIR}/audio/lash

LIBARCHIVE_DESC=    LibArchive support
LIBARCHIVE_CMAKE_ON=    -DWANT_LIBARCHIVE:BOOL=ON
LIBARCHIVE_CMAKE_OFF=   -DWANT_LIBARCHIVE:BOOL=OFF
LIBARCHIVE_LIB_DEPENDS= libarchive.so:${PORTSDIR}/archivers/libarchive

OSS_CMAKE_ON=       -DWANT_OSS:BOOL=ON
OSS_CMAKE_OFF=      -DWANT_OSS:BOOL=OFF

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

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

# using librubberband is experimental and current versions have bad timing
# installing the rubberband cli tool still works as before
RUBBERBAND_DESC=    librubberband for time stretching
RUBBERBAND_CMAKE_ON=    -DWANT_RUBBERBAND:BOOL=ON \
            -DRUBBERBAND_INCLUDE_DIR:STRING=${LOCALBASE}/include/rubberband
RUBBERBAND_CMAKE_OFF=   -DWANT_RUBBERBAND:BOOL=OFF
RUBBERBAND_LIB_DEPENDS= librubberband.so:${PORTSDIR}/audio/rubberband

.include <bsd.port.mk>