aboutsummaryrefslogtreecommitdiff
path: root/comms/spandsp
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-12-05 04:05:36 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-12-05 04:05:36 +0000
commit6dfb72a4d7cb7c9fe101911c55f108e5c901dd56 (patch)
tree856f00ef0387eb58fabcb406267833928dbbf46f /comms/spandsp
parentadc1a6ec37d3dad769dec1a603e71aecc7d3a6cb (diff)
downloadports-6dfb72a4d7cb7c9fe101911c55f108e5c901dd56.tar.gz
ports-6dfb72a4d7cb7c9fe101911c55f108e5c901dd56.zip
[PATCH] comms/spandsp: [fix build on FreeBSD < 5.3
tgmath.h doesn't exist in FreeBSD prior to 5.3, so fake it when building on earlier FreeBSD PR: ports/89958 Submitted: Tod McQuillin <devin@spamcop.net>
Notes
Notes: svn path=/head/; revision=150439
Diffstat (limited to 'comms/spandsp')
-rw-r--r--comms/spandsp/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/comms/spandsp/Makefile b/comms/spandsp/Makefile
index 2b10c86934a3..8889b88845ca 100644
--- a/comms/spandsp/Makefile
+++ b/comms/spandsp/Makefile
@@ -28,7 +28,12 @@ CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \
INSTALLS_SHLIB= yes
+.include <bsd.port.pre.mk>
+
post-patch:
@${FIND} ${WRKSRC} -name *.c | ${XARGS} ${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|'
+.if ${OSVERSION} < 503000
+ ${TOUCH} ${WRKSRC}/src/tgmath.h
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>