blob: 18e38147058ba16224568f60c02930a039fb6684 (
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
|
# ports collection makefile for: fluidsynth
# Date created: 27 Nov 2003
# Whom: Juha Nygard <juha.nygard1@netikka.fi>
#
# $FreeBSD$
#
PORTNAME= fluidsynth
PORTVERSION= 1.0.7a
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= fluid
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Real-time software synthesizer based on the SoundFont 2 specifications
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/a//}
USE_GNOME= gnomehack gnometarget pkgconfig
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --disable-lash --disable-ladcca
USE_LDCONFIG= yes
MAN1= fluidsynth.1
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
OPTIONS= JACK "Enable Jack audio support" On \
LADSPA "Enable LADSPA audio support" Off
.include <bsd.port.pre.mk>
.if defined(WITH_JACK)
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
.else
CONFIGURE_ARGS+= --disable-jack-support
.endif
.if defined(WITH_LADSPA)
BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
RUN_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
CONFIGURE_ARGS+= --enable-ladspa
.endif
post-patch:
@${REINPLACE_CMD} -e 's| -O2 | |g ; \
s|== "yes"|= "yes"|g' ${WRKSRC}/configure
.include <bsd.port.post.mk>
|