diff options
author | edwin <edwin@FreeBSD.org> | 2005-12-05 12:05:36 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2005-12-05 12:05:36 +0800 |
commit | 645c2c45f523cd0bc06784f4665c3600406e1744 (patch) | |
tree | 3d7e35f9d2df63706803075f998af0499ad46263 /comms/spandsp-devel | |
parent | 0a1a0c5154cba07fe85b8e5eeaf17608c8d45096 (diff) | |
download | freebsd-ports-gnome-645c2c45f523cd0bc06784f4665c3600406e1744.tar.gz freebsd-ports-gnome-645c2c45f523cd0bc06784f4665c3600406e1744.tar.zst freebsd-ports-gnome-645c2c45f523cd0bc06784f4665c3600406e1744.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>
Diffstat (limited to 'comms/spandsp-devel')
-rw-r--r-- | comms/spandsp-devel/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/comms/spandsp-devel/Makefile b/comms/spandsp-devel/Makefile index 2b10c86934a3..8889b88845ca 100644 --- a/comms/spandsp-devel/Makefile +++ b/comms/spandsp-devel/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> |