aboutsummaryrefslogtreecommitdiff
path: root/comms/spandsp-devel
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2006-07-20 00:19:08 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2006-07-20 00:19:08 +0000
commit7dfc5ecd1b23494d5a9bbe9ce44a0c2fc3f61ce8 (patch)
tree53016095da7a7242d145085c9479693889fe3c3a /comms/spandsp-devel
parente1d81e1cbdb3f247174ee1343dad013f5f48d4bb (diff)
downloadports-7dfc5ecd1b23494d5a9bbe9ce44a0c2fc3f61ce8.tar.gz
ports-7dfc5ecd1b23494d5a9bbe9ce44a0c2fc3f61ce8.zip
Notes
Diffstat (limited to 'comms/spandsp-devel')
-rw-r--r--comms/spandsp-devel/Makefile6
-rw-r--r--comms/spandsp-devel/files/patch-src-Makefile.in7
-rw-r--r--comms/spandsp-devel/files/patch-src::t31.c21
3 files changed, 29 insertions, 5 deletions
diff --git a/comms/spandsp-devel/Makefile b/comms/spandsp-devel/Makefile
index 923a264b13ac..648afcbc3468 100644
--- a/comms/spandsp-devel/Makefile
+++ b/comms/spandsp-devel/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-devel/files/patch-src-Makefile.in b/comms/spandsp-devel/files/patch-src-Makefile.in
index b8f1b7b09c03..de339f157d18 100644
--- a/comms/spandsp-devel/files/patch-src-Makefile.in
+++ b/comms/spandsp-devel/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-devel/files/patch-src::t31.c b/comms/spandsp-devel/files/patch-src::t31.c
new file mode 100644
index 000000000000..ba190efb6216
--- /dev/null
+++ b/comms/spandsp-devel/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 }
+ }
+ };
+