ports/89958: [PATCH] comms/spandsp: [fix build on FreeBSD < 5.3]
Tod McQuillin
devin at spamcop.net
Mon Dec 5 03:50:05 UTC 2005
>Number: 89958
>Category: ports
>Synopsis: [PATCH] comms/spandsp: [fix build on FreeBSD < 5.3]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 05 03:50:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Tod McQuillin
>Release: FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD plexi.pun-pun.prv 4.11-STABLE FreeBSD 4.11-STABLE #0: Fri Oct 21 00:15:17 JST 2005
>Description:
tgmath.h doesn't exist in FreeBSD prior to 5.3, so fake it when
building on earlier FreeBSD
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
Attempt build on FreeBSD < 5.3
>Fix:
--- spandsp-0.0.2.p20.patch begins here ---
Index: Makefile
===================================================================
RCS file: /usr/src/cvs-repo/ports/comms/spandsp/Makefile,v
retrieving revision 1.6
diff -u -u -r1.6 Makefile
--- Makefile 4 Dec 2005 06:34:57 -0000 1.6
+++ Makefile 5 Dec 2005 03:37:50 -0000
@@ -28,7 +28,12 @@
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>
--- spandsp-0.0.2.p20.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list