aboutsummaryrefslogtreecommitdiffstats
path: root/audio/spiralsynth
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2003-11-05 01:45:28 +0800
committertrevor <trevor@FreeBSD.org>2003-11-05 01:45:28 +0800
commit78d72a29f256951db6662ddc9b488efb30f9b52f (patch)
tree1744fbf7a2aba7ac4dc4d0de1ce0d931744acebc /audio/spiralsynth
parente97d5044d0ed2758dc29c8f7a5781e3c8a80ba70 (diff)
downloadfreebsd-ports-gnome-78d72a29f256951db6662ddc9b488efb30f9b52f.tar.gz
freebsd-ports-gnome-78d72a29f256951db6662ddc9b488efb30f9b52f.tar.zst
freebsd-ports-gnome-78d72a29f256951db6662ddc9b488efb30f9b52f.zip
Respect CC, CFLAGS, CXX, CXXFLAGS. Don't hard-code g++ as the
linker either. Chase soundcard.h header. Mark broken at kris' request.
Diffstat (limited to 'audio/spiralsynth')
-rw-r--r--audio/spiralsynth/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/audio/spiralsynth/Makefile b/audio/spiralsynth/Makefile
index afc5f52629e9..ea1d1dfac64e 100644
--- a/audio/spiralsynth/Makefile
+++ b/audio/spiralsynth/Makefile
@@ -26,14 +26,26 @@ WRKSRC= ${WRKDIR}/${DISTNAME}
DOC_FILES= CHANGES COPYING README
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 500112
+BROKEN= "errors in linking"
+USE_GCC= 2.95
+.endif
+
post-patch:
-.for ii in Makefile.in PluginLink.sh
+.for ii in Makefile.in PluginLink.sh SpiralSound/Output.h
${MV} ${WRKSRC}/${ii} ${WRKSRC}/${ii}.orig
${SED} -e 's|-O3|${PTHREAD_CFLAGS}|g ; \
+ s|CC =|CC? =|g ; \
s|CFLAGS =|CFLAGS +=|g ; \
+ s|CXX =|CXX? =|g ; \
s|CXXFLAGS=|CXXFLAGS+=|g ; \
+ s|LINK = g++|LINK = ${CXX}|g ; \
s|-lm|${PTHREAD_LIBS} -lm|g ; \
- s|/usr/X11R6|${X11BASE}|g' < ${WRKSRC}/${ii}.orig \
+ s|/usr/X11R6|${X11BASE}|g ; \
+ s|machine/soundcard|sys/soundcard|g' \
+ < ${WRKSRC}/${ii}.orig \
> ${WRKSRC}/${ii}
.endfor
# Use as a plugin to SpiralLoops 2.0.0 results in "Can't open audio driver."
@@ -73,4 +85,4 @@ do-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>