2013-02-26 12:20:59 +01:00
|
|
|
# Created by: David Yeske <dyeske@gmail.com>
|
2003-01-30 21:29:02 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= spiralsynthmodular
|
2004-05-17 09:51:24 +02:00
|
|
|
PORTVERSION= 0.2.2a
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 8
|
2003-01-30 21:29:02 +01:00
|
|
|
CATEGORIES= audio
|
2009-08-22 02:13:26 +02:00
|
|
|
MASTER_SITES= SF/spiralmodular/spiralmodular/${PORTVERSION}%20%28Latest%20Version%29
|
2003-01-30 21:29:02 +01:00
|
|
|
DISTNAME= spiralmodular-${PORTVERSION}
|
|
|
|
|
2009-02-03 00:44:01 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-02-26 12:20:59 +01:00
|
|
|
COMMENT= Object-oriented modular softsynth/sequencer/sampler
|
2003-01-30 21:29:02 +01:00
|
|
|
|
2007-09-10 21:12:15 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa \
|
|
|
|
jackd:${PORTSDIR}/audio/jack
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk \
|
|
|
|
libsndfile.so:${PORTSDIR}/audio/libsndfile
|
2003-01-30 21:29:02 +01:00
|
|
|
|
2007-09-10 21:12:15 +02:00
|
|
|
USE_XORG= x11
|
2003-01-30 21:29:02 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2014-06-11 16:49:59 +02:00
|
|
|
CONFIGURE_ENV= FLTK_CONFIG="${FLTK_CONFIG}"
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-06-11 16:49:59 +02:00
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
2003-01-30 21:29:02 +01:00
|
|
|
|
2014-03-01 01:51:37 +01:00
|
|
|
WRKSRC= ${WRKDIR}/spiralmodular-0.2.2
|
2004-05-17 09:51:24 +02:00
|
|
|
|
2014-05-10 18:35:58 +02:00
|
|
|
ia64_BROKEN= Does not compile on ia64
|
2004-03-13 11:11:15 +01:00
|
|
|
|
2014-05-10 18:35:58 +02:00
|
|
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
2004-03-13 11:11:15 +01:00
|
|
|
|
2014-05-10 18:35:58 +02:00
|
|
|
OPTIMIZED_CFLAGS_CFLAGS=-O3 -ffast-math
|
2003-01-30 21:29:02 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E -e 's@(-O3|-ffast-math)@@g; \
|
2004-05-17 09:51:24 +02:00
|
|
|
s|-Wall||; \
|
2003-01-30 21:29:02 +01:00
|
|
|
s|CFLAGS="-pipe|CFLAGS="\$$\{CFLAGS\} ${PTHREAD_CFLAGS}|; \
|
2004-05-17 09:51:24 +02:00
|
|
|
s|CXXFLAGS="-pipe|CXXFLAGS="\$$\{CXXFLAGS\} ${PTHREAD_CFLAGS}|; \
|
|
|
|
s|^SpiralSound/Plugins/MidiPlugin/Makefile||; \
|
|
|
|
s|MidiPlugin||' \
|
2003-01-30 21:29:02 +01:00
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-I/usr/X11R6/include|-I${LOCALBASE}/include|' \
|
2003-01-30 21:29:02 +01:00
|
|
|
${WRKSRC}/SpiralSound/Plugins/LADSPAPlugin/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|O_SYNC|O_FSYNC|' \
|
|
|
|
${WRKSRC}/SpiralSound/Midi.C
|
2014-05-10 18:35:58 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|True|true|; s|False|false|' \
|
2003-04-18 10:55:31 +02:00
|
|
|
${WRKSRC}/SpiralSound/Plugins/MatrixPlugin/MatrixPlugin.C
|
2014-05-10 18:35:58 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|JackPort::||' \
|
2007-09-10 21:12:15 +02:00
|
|
|
${WRKSRC}/SpiralSound/Plugins/JackPlugin/JackPlugin.h
|
2014-05-10 18:35:58 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|CVGUI::||' \
|
2007-09-10 21:12:15 +02:00
|
|
|
${WRKSRC}/SpiralSound/Plugins/ControllerPlugin/ControllerPluginGUI.h
|
2014-05-10 18:35:58 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|Sample::||' \
|
2007-09-10 21:12:15 +02:00
|
|
|
${WRKSRC}/SpiralSound/Sample.h
|
2003-01-30 21:29:02 +01:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -E -e \
|
2014-05-10 18:35:58 +02:00
|
|
|
's,-l(dl|rt),,; s|g\+\+|$$(CXX)|; \
|
|
|
|
/^(CC|CXX)[[:space:]]*=.+$$/d; s|-lpthread|${PTHREAD_LIBS}|g; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
s,@FLTK_(C|CXX)FLAGS@,-I${LOCALBASE}/include,; \
|
2014-05-10 18:35:58 +02:00
|
|
|
s,(bin|lib)dir),DESTDIR)$$(&,'
|
|
|
|
@${FIND} ${WRKSRC} -type f -name "*.C" -o -name "*.cpp" -o -name "*.h" \
|
|
|
|
| ${XARGS} ${REINPLACE_CMD} -e '/^#include <FL/s|.h>$$|.H>|; \
|
|
|
|
/^#include "FL/s|.h"$$|.H"|; \
|
|
|
|
s|fl_file_chooser.H|Fl_File_Chooser.H|g'
|
2011-11-15 15:53:26 +01:00
|
|
|
|
2014-05-10 18:35:58 +02:00
|
|
|
.include <bsd.port.mk>
|