aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2006-01-20 07:42:10 +0800
committerkris <kris@FreeBSD.org>2006-01-20 07:42:10 +0800
commit7540b69f0fb9b8ccc7d17f558524e50607d75b0a (patch)
tree2fd72652db76fe84cf73e4ae1e32781cf3584e2e /audio
parent026216d94ab4532e8065a194a481220d497c1124 (diff)
downloadfreebsd-ports-gnome-7540b69f0fb9b8ccc7d17f558524e50607d75b0a.tar.gz
freebsd-ports-gnome-7540b69f0fb9b8ccc7d17f558524e50607d75b0a.tar.zst
freebsd-ports-gnome-7540b69f0fb9b8ccc7d17f558524e50607d75b0a.zip
BROKEN: Build fails on amd64 (missing -fPIC on shared libraries)
Diffstat (limited to 'audio')
-rw-r--r--audio/ccaudio/Makefile8
-rw-r--r--audio/ccaudio2/Makefile8
2 files changed, 14 insertions, 2 deletions
diff --git a/audio/ccaudio/Makefile b/audio/ccaudio/Makefile
index cccbb55c8adf..e54d85bf5021 100644
--- a/audio/ccaudio/Makefile
+++ b/audio/ccaudio/Makefile
@@ -27,6 +27,12 @@ MAN3= Audio.3cc AudioCodec.3cc AudioCopy.3cc AudioFile.3cc \
AudioSample.3cc AudioTone.3cc CDAudio.3cc DTMFDetect.3cc \
LinearSample.3cc
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+BROKEN= "Does not build on amd64 (shared libraries must be compiled with -fPIC)"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e \
's|<stdint\.h>|<stdlib.h>|g' ${WRKSRC}/src/dtmf.cpp
@@ -34,4 +40,4 @@ post-patch:
pre-configure:
@${CP} ${LTMAIN} ${WRKSRC}/config
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/audio/ccaudio2/Makefile b/audio/ccaudio2/Makefile
index cccbb55c8adf..e54d85bf5021 100644
--- a/audio/ccaudio2/Makefile
+++ b/audio/ccaudio2/Makefile
@@ -27,6 +27,12 @@ MAN3= Audio.3cc AudioCodec.3cc AudioCopy.3cc AudioFile.3cc \
AudioSample.3cc AudioTone.3cc CDAudio.3cc DTMFDetect.3cc \
LinearSample.3cc
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+BROKEN= "Does not build on amd64 (shared libraries must be compiled with -fPIC)"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e \
's|<stdint\.h>|<stdlib.h>|g' ${WRKSRC}/src/dtmf.cpp
@@ -34,4 +40,4 @@ post-patch:
pre-configure:
@${CP} ${LTMAIN} ${WRKSRC}/config
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>