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

PORTNAME=   beast
PORTVERSION=    0.6.6
PORTREVISION=   5
CATEGORIES= audio
MASTER_SITES=   ftp://beast.gtk.org/pub/beast/v0.6/ \
        http://beast.gtk.org/beast-ftp/v0.6/

MAINTAINER= ports@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

USE_XLIB=   yes
USE_GMAKE=  yes
USE_GNOME=  gnomehack gnomeprefix intlhack libgnomecanvas
GNU_CONFIGURE=  yes
INSTALLS_SHLIB= yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -DENODATA=255" \
        LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-debug \
        --enable-osspcm=/dev/dsp \
        --enable-ossmidi=/dev/midi

MAN1=       beast.1 bsesh.1 sfidl.1
MAN3=       beast-gxk.3 bse-procs.3 bse-structs.3 bse.3 sfi.3

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 700042
BROKEN=     Does not compile with GCC 4.2
.endif

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>