aboutsummaryrefslogtreecommitdiffstats
path: root/comms/spandsp-devel5
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2006-07-20 08:19:08 +0800
committersobomax <sobomax@FreeBSD.org>2006-07-20 08:19:08 +0800
commit4d01850fe6e3f6d72889a8ab45e92b1edf564da3 (patch)
treecb323595eae3ec2bd6544cc8f5f70090e1f8369c /comms/spandsp-devel5
parent6c9e7354a5e958c67bd63cd216188e5522941fcb (diff)
downloadfreebsd-ports-gnome-4d01850fe6e3f6d72889a8ab45e92b1edf564da3.tar.gz
freebsd-ports-gnome-4d01850fe6e3f6d72889a8ab45e92b1edf564da3.tar.zst
freebsd-ports-gnome-4d01850fe6e3f6d72889a8ab45e92b1edf564da3.zip
Fix build on 4.x. Untested due to the lack of 4.x system.
No PORTREVISION bump since it doens't change package content. Submitted by: Andriy I Pylypenko <bamby@ua.fm>
Diffstat (limited to 'comms/spandsp-devel5')
-rw-r--r--comms/spandsp-devel5/Makefile6
-rw-r--r--comms/spandsp-devel5/files/patch-src-Makefile.in7
-rw-r--r--comms/spandsp-devel5/files/patch-src::t31.c21
3 files changed, 29 insertions, 5 deletions
diff --git a/comms/spandsp-devel5/Makefile b/comms/spandsp-devel5/Makefile
index 923a264b13ac..648afcbc3468 100644
--- a/comms/spandsp-devel5/Makefile
+++ b/comms/spandsp-devel5/Makefile
@@ -31,8 +31,8 @@ INSTALLS_SHLIB= yes
post-patch:
@${FIND} ${WRKSRC} -name *.c | ${XARGS} ${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|'
-.if ${OSVERSION} < 503000
- ${TOUCH} ${WRKSRC}/src/tgmath.h
-.endif
+.if ${OSVERSION} < 503000
+ ${ECHO} '#define lrintf(x) ((int16_t)rintf(x))' > ${WRKSRC}/src/tgmath.h
+.endif
.include <bsd.port.post.mk>
diff --git a/comms/spandsp-devel5/files/patch-src-Makefile.in b/comms/spandsp-devel5/files/patch-src-Makefile.in
index b8f1b7b09c03..de339f157d18 100644
--- a/comms/spandsp-devel5/files/patch-src-Makefile.in
+++ b/comms/spandsp-devel5/files/patch-src-Makefile.in
@@ -3,9 +3,12 @@ $FreeBSD$
--- src/Makefile.in.orig
+++ src/Makefile.in
-@@ -197,7 +197,7 @@
+@@ -195,9 +195,9 @@
+ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
target_alias = @target_alias@
- AM_CFLAGS = -std=c99
+-AM_CFLAGS = -std=c99
++#AM_CFLAGS = -std=c99
MAINTAINERCLEANFILES = Makefile.in
-INCLUDES = -I$(top_builddir)
+#INCLUDES = -I$(top_builddir)
diff --git a/comms/spandsp-devel5/files/patch-src::t31.c b/comms/spandsp-devel5/files/patch-src::t31.c
new file mode 100644
index 000000000000..ba190efb6216
--- /dev/null
+++ b/comms/spandsp-devel5/files/patch-src::t31.c
@@ -0,0 +1,21 @@
+
+$FreeBSD$
+
+--- src/t31.c
++++ src/t31.c
+@@ -81,14 +81,7 @@
+ .pulse_dial = FALSE,
+ .double_escape = FALSE,
+ .adaptive_receive = FALSE,
+- .s_regs[0] = 0,
+- .s_regs[3] = '\r',
+- .s_regs[4] = '\n',
+- .s_regs[5] = '\b',
+- .s_regs[6] = 1,
+- .s_regs[7] = 60,
+- .s_regs[8] = 5,
+- .s_regs[10] = 0
++ .s_regs = { 0, 0, 0, '\r', '\n', '\b', 1, 60, 5, 0, 0 }
+ }
+ };
+