2013-01-27 06:55:20 +01:00
|
|
|
# Created by: trevor
|
2000-09-16 21:02:06 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= spiralsynth
|
2000-12-06 23:53:38 +01:00
|
|
|
PORTVERSION= 0.1.7
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 8
|
2000-09-16 21:02:06 +02:00
|
|
|
CATEGORIES= audio
|
2005-11-22 08:40:58 +01:00
|
|
|
MASTER_SITES= http://www.pawfal.org/Software/SpiralSynth/dload/
|
2000-09-16 21:02:06 +02:00
|
|
|
DISTNAME= SpiralSynth-${PORTVERSION}
|
|
|
|
|
2006-02-11 22:03:14 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-01 15:34:33 +01:00
|
|
|
COMMENT= MIDI-capable synthesizer for X
|
2000-09-16 21:02:06 +02:00
|
|
|
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
|
2000-09-16 21:02:06 +02:00
|
|
|
|
2002-05-23 14:34:02 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2015-03-25 22:37:39 +01:00
|
|
|
MAKE_ENV= PTHREAD_LIBS="-lpthread"
|
2002-05-23 14:34:02 +02:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2000-09-16 21:02:06 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
|
|
|
|
DOC_FILES= CHANGES COPYING README
|
|
|
|
|
2014-02-21 14:35:10 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2001-08-29 03:44:46 +02:00
|
|
|
post-patch:
|
2004-02-09 14:55:42 +01:00
|
|
|
.for ii in \
|
2004-04-10 19:26:55 +02:00
|
|
|
Makefile.in \
|
|
|
|
PluginLink.sh \
|
|
|
|
SpiralInfo.C \
|
|
|
|
SpiralSound/Midi.h \
|
|
|
|
SpiralSound/Output.h \
|
2014-02-19 10:00:17 +01:00
|
|
|
SpiralSound/RiffWav.C \
|
2004-04-10 19:26:55 +02:00
|
|
|
SpiralSound/SpiralInfo.h \
|
|
|
|
SpiralSound/Synth.C \
|
|
|
|
SpiralSound/Synth.h \
|
|
|
|
SpiralSound/_SynthInfo.C \
|
|
|
|
Synth.h
|
2003-10-04 16:58:59 +02:00
|
|
|
${MV} ${WRKSRC}/${ii} ${WRKSRC}/${ii}.orig
|
2015-03-25 22:37:39 +01:00
|
|
|
${SED} -e 's|-O3||g ; \
|
2003-11-04 18:45:28 +01:00
|
|
|
s|CC =|CC? =|g ; \
|
2001-08-29 03:44:46 +02:00
|
|
|
s|CFLAGS =|CFLAGS +=|g ; \
|
2003-11-04 18:45:28 +01:00
|
|
|
s|CXX =|CXX? =|g ; \
|
2001-08-29 03:44:46 +02:00
|
|
|
s|CXXFLAGS=|CXXFLAGS+=|g ; \
|
2003-11-04 18:45:28 +01:00
|
|
|
s|LINK = g++|LINK = ${CXX}|g ; \
|
2015-03-25 22:37:39 +01:00
|
|
|
s|-lm|-lpthread -lm|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|/usr/X11R6|${LOCALBASE}|g ; \
|
2004-02-09 14:55:42 +01:00
|
|
|
s|iostream.h|iostream|g ;\
|
2014-02-19 10:00:17 +01:00
|
|
|
s|fstream.h|fstream|g ;\
|
2004-02-09 14:55:42 +01:00
|
|
|
s|<strstream>|<sstream>|g ;\
|
2003-11-04 18:45:28 +01:00
|
|
|
s|machine/soundcard|sys/soundcard|g' \
|
|
|
|
< ${WRKSRC}/${ii}.orig \
|
2003-11-03 22:52:44 +01:00
|
|
|
> ${WRKSRC}/${ii}
|
2003-10-04 16:58:59 +02:00
|
|
|
.endfor
|
2002-05-23 14:34:02 +02:00
|
|
|
# Use as a plugin to SpiralLoops 2.0.0 results in "Can't open audio driver."
|
|
|
|
.if defined(PLUGIN)
|
2003-10-04 16:58:59 +02:00
|
|
|
${MV} ${WRKSRC}/Synth.C ${WRKSRC}/Synth.C.orig
|
|
|
|
${SED} -e 's|^//#define PLUGIN|#define PLUGIN|g' \
|
|
|
|
< ${WRKSRC}/Synth.C.orig > ${WRKSRC}/Synth.C
|
2002-05-23 14:34:02 +02:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}; ${SH} ./PluginLink.sh
|
|
|
|
.endif # defined(PLUGIN)
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
.if defined(PLUGIN)
|
|
|
|
${ECHO_CMD} lib/SpiralSynth.so > ${PLIST}
|
|
|
|
.else
|
|
|
|
${ECHO_CMD} bin/SpiralSynth > ${PLIST}
|
|
|
|
.endif
|
2015-08-19 15:29:59 +02:00
|
|
|
pre-install-DOCS-on:
|
2002-05-23 14:34:02 +02:00
|
|
|
.for ii in ${DOC_FILES}
|
|
|
|
${ECHO_CMD} share/doc/spiralsynth/${ii} >> ${PLIST}
|
|
|
|
.endfor
|
2001-08-29 03:44:46 +02:00
|
|
|
|
2000-09-16 21:02:06 +02:00
|
|
|
do-install:
|
2002-05-23 14:34:02 +02:00
|
|
|
.if defined(PLUGIN)
|
2014-05-10 01:13:39 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/SpiralSynth.so ${STAGEDIR}${PREFIX}/lib
|
2002-05-23 14:34:02 +02:00
|
|
|
.else
|
2014-05-10 01:13:39 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/SpiralSynth ${STAGEDIR}${PREFIX}/bin
|
2002-05-23 14:34:02 +02:00
|
|
|
.endif
|
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
do-install-DOCS-on:
|
2014-05-10 01:13:39 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2002-05-23 14:34:02 +02:00
|
|
|
.for ii in ${DOC_FILES}
|
2014-05-10 01:13:39 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${ii} ${STAGEDIR}${DOCSDIR}
|
2000-09-16 21:02:06 +02:00
|
|
|
.endfor
|
2002-05-23 14:34:02 +02:00
|
|
|
|
2004-02-09 14:55:42 +01:00
|
|
|
.include <bsd.port.mk>
|