ports/97863: games/openttd: Fix build on 4.x (use ${PTHREAD_LIBS})

Shaun Amott shaun at inerd.com
Thu May 25 00:20:16 UTC 2006


>Number:         97863
>Category:       ports
>Synopsis:       games/openttd: Fix build on 4.x (use ${PTHREAD_LIBS})
>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:   Thu May 25 00:20:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Shaun Amott
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:

>Description:

- Fix build on 4.x, by using ${PTHREAD_LIBS}

Reported by pointyhat:
  http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.4.2005092302/openttd-0.4.7.log

>How-To-Repeat:

>Fix:

--- openttd.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/games/openttd/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	7 May 2006 23:45:28 -0000	1.8
+++ Makefile	25 May 2006 00:15:38 -0000
@@ -35,6 +35,7 @@
 
 post-extract:
 	@${REINPLACE_CMD} -e 's|-O2 $$(WARNING_DISPLAY)|${CFLAGS} $$(WARNING_DISPLAY)|' \
+			  -e 's|-lpthread|${PTHREAD_LIBS}|g' \
 		${WRKSRC}/Makefile
 .if defined(WITH_DEDICATED_SERVER_ONLY)
 	@${REINPLACE_CMD} -e 's|^WITH_SDL|#WITH_SDL|' ${WRKSRC}/makefiledir/Makefile.libdetection
--- openttd.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list