From 6dfb72a4d7cb7c9fe101911c55f108e5c901dd56 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Mon, 5 Dec 2005 04:05:36 +0000 Subject: [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 --- comms/spandsp-devel/Makefile | 7 ++++++- comms/spandsp-devel5/Makefile | 7 ++++++- comms/spandsp/Makefile | 7 ++++++- 3 files changed, 18 insertions(+), 3 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 + post-patch: @${FIND} ${WRKSRC} -name *.c | ${XARGS} ${REINPLACE_CMD} -e 's|||' +.if ${OSVERSION} < 503000 + ${TOUCH} ${WRKSRC}/src/tgmath.h +.endif -.include +.include diff --git a/comms/spandsp-devel5/Makefile b/comms/spandsp-devel5/Makefile index 2b10c86934a3..8889b88845ca 100644 --- a/comms/spandsp-devel5/Makefile +++ b/comms/spandsp-devel5/Makefile @@ -28,7 +28,12 @@ CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \ INSTALLS_SHLIB= yes +.include + post-patch: @${FIND} ${WRKSRC} -name *.c | ${XARGS} ${REINPLACE_CMD} -e 's|||' +.if ${OSVERSION} < 503000 + ${TOUCH} ${WRKSRC}/src/tgmath.h +.endif -.include +.include 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 + post-patch: @${FIND} ${WRKSRC} -name *.c | ${XARGS} ${REINPLACE_CMD} -e 's|||' +.if ${OSVERSION} < 503000 + ${TOUCH} ${WRKSRC}/src/tgmath.h +.endif -.include +.include -- cgit v1.2.3