1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/audio/linuxsampler/Makefile
Yuri Victorovich bdb1c6ed9e audio/libgig: Update to 4.1.0
Reported by:	portscout
Approved by:	adamw (mentor)
Differential Revision:	https://reviews.freebsd.org/D13569
2017-12-21 18:41:46 +00:00

82 lines
1.8 KiB
Makefile

# Created by: trasz <trasz@pin.if.uz.zgora.pl>
# $FreeBSD$
PORTNAME= linuxsampler
DISTVERSION= 2.0.0
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://download.linuxsampler.org/packages/
MAINTAINER= ports@FreeBSD.org
COMMENT= Modular MIDI sampler
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= "not yet ported"
BUILD_DEPENDS= lv2>0:audio/lv2
LIB_DEPENDS= libgig.so:audio/libgig \
libsndfile.so:audio/libsndfile \
libuuid.so:misc/e2fsprogs-libuuid
OPTIONS_DEFINE= JACK ALSA DSSI LV2
OPTIONS_DEFAULT= JACK
DSSI_DESC= Enable DSSI support
LV2_DESC= Enable LV2 support
USES= bison gmake libtool pathfix pkgconfig sqlite:3 tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ENV= HAVE_UNIX98=1
USE_LDCONFIG= ${PREFIX}/lib/linuxsampler
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --disable-arts-driver
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MJACK}
LIB_DEPENDS+= libjack.so:audio/jack
.else
CONFIGURE_ARGS+=--disable-jack-driver
.endif
.if ${PORT_OPTIONS:MALSA}
LIB_DEPENDS+= libasound.so:audio/alsa-lib
.else
CONFIGURE_ARGS+=--disable-alsa-driver
.endif
.if ${PORT_OPTIONS:MDSSI}
BUILD_DEPENDS+= dssi>=0:audio/dssi
RUN_DEPENDS+= dssi>=0:audio/dssi
PLIST_SUB+= DSSI=""
CPPFLAGS:= -I${LOCALBASE}/include/dssi ${CPPFLAGS}
.else
CONFIGURE_ENV+= ac_cv_header_dssi_h=no
PLIST_SUB+= DSSI="@comment "
.endif
.if ${PORT_OPTIONS:MLV2}
BUILD_DEPENDS+= lv2>=1.14.0_1:audio/lv2
RUN_DEPENDS+= lv2>=1.14.0_1:audio/lv2
PLIST_SUB+= LV2=""
.else
CONFIGURE_ENV+= ac_cv_header_lv2_h=no
PLIST_SUB+= LV2="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|CXX_CPU_SWITCH=.*|CXX_CPU_SWITCH=|g ; \
s|"lv2core"|"_lv2core_"|' ${WRKSRC}/configure
post-install:
@${TOUCH} ${STAGEDIR}${PREFIX}/lib/linuxsampler/plugins/.keep_me
.include <bsd.port.mk>