aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mpg123
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>1998-11-25 09:30:34 +0800
committerjkoshy <jkoshy@FreeBSD.org>1998-11-25 09:30:34 +0800
commitff13031b03f17a0396eb9019cb8f97b7e0d30ebd (patch)
tree967ed65b50ae865949ee61529128caf980535e2c /audio/mpg123
parent3fc6c29e3ef5b7ca191792b1b0018aebc8abbe14 (diff)
downloadfreebsd-ports-gnome-ff13031b03f17a0396eb9019cb8f97b7e0d30ebd.tar.gz
freebsd-ports-gnome-ff13031b03f17a0396eb9019cb8f97b7e0d30ebd.tar.zst
freebsd-ports-gnome-ff13031b03f17a0396eb9019cb8f97b7e0d30ebd.zip
Add a call to fpsetmask(3) to suppress FP related signals {new 'patch-ab'}.
The patch can probably be made less specific to FreeBSD; to be visited after the 2.2.8 ports freeze ... Tweak work/.../Makefile to add -O2 to compiles. Submitted by: Matthew Hunt <mph@FreeBSD.ORG>
Diffstat (limited to 'audio/mpg123')
-rw-r--r--audio/mpg123/files/patch-aa8
-rw-r--r--audio/mpg123/files/patch-ab25
2 files changed, 29 insertions, 4 deletions
diff --git a/audio/mpg123/files/patch-aa b/audio/mpg123/files/patch-aa
index 4ace488fe52f..b74ce8d7b4f9 100644
--- a/audio/mpg123/files/patch-aa
+++ b/audio/mpg123/files/patch-aa
@@ -1,5 +1,5 @@
---- Makefile.orig Mon Feb 9 02:23:04 1998
-+++ Makefile Sat Nov 14 22:58:27 1998
+--- Makefile.orig Sun Feb 8 23:53:04 1998
++++ Makefile Wed Nov 25 07:05:28 1998
@@ -21,6 +21,7 @@
@echo ""
@echo "make linux-help Linux, more help"
@@ -14,7 +14,7 @@
OBJECTS='decode_i386.o dct64_i386.o getbits_.o audio_oss.o' \
- CFLAGS='-Wall -ansi -pedantic -O4 -m486 -fomit-frame-pointer \
- -funroll-all-loops -ffast-math -DROT_I386 \
-+ CFLAGS+='-Wall -ansi -pedantic -fomit-frame-pointer \
++ CFLAGS+='-Wall -O2 -ansi -pedantic -fomit-frame-pointer \
+ -funroll-all-loops -ffast-math -DROT_I386 -DREAD_MMAP \
+ -DI386_ASSEM -DREAL_IS_FLOAT -DUSE_MMAP -DOSS' \
+ mpg123-make
@@ -22,7 +22,7 @@
+freebsd-elf:
+ $(MAKE) CC=cc LDFLAGS= \
+ OBJECTS='decode_i386.o dct64_i386.o getbits.o audio_oss.o' \
-+ CFLAGS+='-Wall -ansi -pedantic -fomit-frame-pointer \
++ CFLAGS+='-Wall -O2 -ansi -pedantic -fomit-frame-pointer \
+ -funroll-all-loops -ffast-math -DROT_I386 -DREAD_MMAP \
-DI386_ASSEM -DREAL_IS_FLOAT -DUSE_MMAP -DOSS' \
mpg123-make
diff --git a/audio/mpg123/files/patch-ab b/audio/mpg123/files/patch-ab
new file mode 100644
index 000000000000..638ff0c92c2a
--- /dev/null
+++ b/audio/mpg123/files/patch-ab
@@ -0,0 +1,25 @@
+--- mpg123.c.orig Tue Nov 24 08:46:40 1998
++++ mpg123.c Tue Nov 24 08:47:25 1998
+@@ -14,6 +14,10 @@
+ #include <sys/resource.h>
+ #endif
+
++#ifdef __FreeBSD__
++#include <floatingpoint.h>
++#endif
++
+ /* #define SET_PRIO */
+
+ #include "mpg123.h"
+@@ -652,6 +656,10 @@
+
+ #ifdef OS2
+ _wildcard(&argc,&argv);
++#endif
++
++#ifdef __FreeBSD__
++ fpsetmask(0);
+ #endif
+
+ if(sizeof(short) != 2) {
+