aboutsummaryrefslogtreecommitdiffstats
path: root/audio/sooperlooper/Makefile
blob: 7a9f916ca2ea127e06df291c24462dc2294e00eb (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
# Created by: mathias.picker@gmx.de
# $FreeBSD$

PORTNAME=   sooperlooper
PORTVERSION=    1.7.0
CATEGORIES= audio
MASTER_SITES=   http://essej.net/sooperlooper/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Live audio looping sampler

LICENSE=    GPLv2

BUILD_DEPENDS=  ladspa>0:${PORTSDIR}/audio/ladspa
LIB_DEPENDS=    libjack.so:${PORTSDIR}/audio/jack \
        liblo.so:${PORTSDIR}/audio/liblo \
        libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
        libsigc-1.2.so:${PORTSDIR}/devel/libsigc++12 \
        libsndfile.so:${PORTSDIR}/audio/libsndfile \
        librubberband.so:${PORTSDIR}/audio/rubberband \
        libvamp-sdk.so:${PORTSDIR}/audio/vamp-plugin-sdk \
        libfftw3.so:${PORTSDIR}/math/fftw3
RUN_DEPENDS=    ladspa>0:${PORTSDIR}/audio/ladspa

USES=       compiler:c++0x gmake ncurses pkgconfig
USE_GNOME=  libxml2
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE=     ALSA WXGTK
OPTIONS_DEFAULT=    WXGTK
OPTIONS_SUB=        yes

ALSA_LIB_DEPENDS=   libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CONFIGURE_ENV_OFF= ac_cv_header_alsa_asoundlib_h=no
WXGTK_USE=      WX=2.6+
WXGTK_CONFIGURE_ON= --with-wxconfig-path=${WX_CONFIG}
WXGTK_CONFIGURE_OFF=    --without-gui

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MWXGTK}
WX_UNICODE= yes
DESKTOP_ENTRIES="SooperLooper" "" "${DATADIR}/sl_logo.xpm" "slgui" \
        "AudioVideo;Audio;Player;GTK;" ""
.endif

post-patch:
    @${FIND} ${WRKSRC} -name "configure" | ${XARGS} ${REINPLACE_CMD} -e \
        's|$$OPT_FLAGS||'

post-install:
.if ${PORT_OPTIONS:MWXGTK}
    (cd ${WRKSRC}/src/gui/pixmaps && ${INSTALL_DATA} sl_logo.xpm \
        ${STAGEDIR}${DATADIR})
.endif

.include <bsd.port.mk>