aboutsummaryrefslogtreecommitdiffstats
path: root/comms/spandsp-devel/Makefile
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-devel/Makefile
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-devel/Makefile')
-rw-r--r--comms/spandsp-devel/Makefile6
1 files changed, 3 insertions, 3 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>