1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/audio/sooperlooper/Makefile
John Marino 6754de5660 audio/sooperlooper: Unbreak on some platforms
This unmaintained port is breaking on Wx 3.0, which is only an GUI option.
Downgrading to Wx 2.8 allows it to build on all platforms (as well as
having the option by default).  The second iteration of the PR suggested
Wx3.0 for FreeBSD 8 and 9, but Wx  2.8 for F10+, but I didn't like that
approach.  It only works on F8 and F9 because of compiler deficiencies.
Simple attempts of setting -std to c++11 didn't work, of course.

PR:		199221
Submitted by:	ports fury
2015-04-20 07:19:33 +00:00

67 lines
1.7 KiB
Makefile

# Created by: mathias.picker@gmx.de
# $FreeBSD$
PORTNAME= sooperlooper
PORTVERSION= 1.7.3
PORTREVISION= 1
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-2.0.so:${PORTSDIR}/devel/libsigc++20 \
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= gmake ncurses pkgconfig
USE_GNOME= libxml2
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CFLAGS+= -Wno-error=write-strings
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.8
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|$$CXXFLAGS| ; \
/^CXXFLAGS/s|-g|$$CXXFLAGS| ; \
s|-fo-merge-constants|| ; \
s|-lpthread|-pthread|'
post-install:
.if ${PORT_OPTIONS:MWXGTK}
(cd ${WRKSRC}/src/gui/pixmaps && ${INSTALL_DATA} sl_logo.xpm \
${STAGEDIR}${DATADIR})
.endif
.include <bsd.port.mk>