aboutsummaryrefslogtreecommitdiffstats
path: root/audio/beast/Makefile
blob: 73a78f6cc39051ec6196224dd5e1d6568e9cbd05 (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
# New ports collection makefile for:    BEAST
# Date created:         23 Jun 2004
# Whom:             Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=   beast
PORTVERSION=    0.7.4
CATEGORIES= audio
MASTER_SITES=   http://beast.testbit.eu/_dist/beast/v${PORTVERSION:R}/

MAINTAINER= gahr@FreeBSD.org
COMMENT=    A powerful music composition and modular synthesis application

LIB_DEPENDS=    vorbisfile:${PORTSDIR}/audio/libvorbis \
        mad:${PORTSDIR}/audio/libmad \
        guile:${PORTSDIR}/lang/guile \
        asound.2:${PORTSDIR}/audio/alsa-lib

BROKEN=     does not deinstall

USE_XORG=   x11
USE_GMAKE=  yes
USE_GNOME=  gnomehack intlhack libgnomecanvas
USE_BZIP2=  yes
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
USE_GETTEXT=    yes
CPPFLAGS+=  -I${LOCALBASE}/include -L${LOCALBASE}/lib -DENODATA=255
CONFIGURE_ARGS= --disable-debug \
        --enable-osspcm=/dev/dsp \
        --enable-ossmidi=/dev/midi
MAKE_JOBS_UNSAFE=   yes

.include <bsd.port.pre.mk>

.if ${MACHINE_CPU:Msse}
PLIST_SUB+= SSE=""
.else
PLIST_SUB+= SSE="@comment "
.endif

PLIST_SUB+= PORTVERSION=${PORTVERSION}

MAN1=       beast.1 bsescm.1 bsewavetool.1 sfidl.1
MAN5=       bse.5

post-patch:
    @${REINPLACE_CMD} -Ee 's|$${libdir}/ladspa|${LOCALBASE}/lib/ladspa|; \
        /FLAGS=/ s/(-g|-ggdb3|-pipe|-O2|-ftracer|-finline-functions|-fno-keep-static-consts)//; \
        s|echo aout|echo elf|g' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
        ${WRKSRC}/bse/Makefile.in \
        ${WRKSRC}/bse/zintern/Makefile.in

.include <bsd.port.post.mk>