ports/103004: [Maintainer-update]: games/tmw unbreak on FreeBSD 4.x

Marcus von Appen mva at sysfault.org
Thu Sep 7 22:50:24 UTC 2006


>Number:         103004
>Category:       ports
>Synopsis:       [Maintainer-update]: games/tmw unbreak on FreeBSD 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 07 22:50:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Marcus von Appen
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD medusa.sysfault.org 6.1-STABLE FreeBSD 6.1-STABLE #12: Tue Aug 29 19:10:11 CEST 2006 root at medusa.sysfault.org:/usr/obj/usr/src/sys/MEDUSA i386


	
>Description:
	Unbreak build on 4.x.
>How-To-Repeat:
	
>Fix:

diff -Nur tmw/Makefile tmw.new/Makefile
--- tmw/Makefile	Wed Sep  6 21:38:18 2006
+++ tmw.new/Makefile	Fri Sep  8 00:13:35 2006
@@ -23,15 +23,16 @@
 USE_X_PREFIX=	yes
 GNU_CONFIGURE=	yes
 USE_SDL=	sdl image mixer net
+USE_GCC=	3.2+
+USE_GETOPT_LONG=yes
 
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include `${SDL_CONFIG} --cflags` -I${X11BASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
-		CXXFLAGS="${PTHREAD_LIBS}"
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include `${SDL_CONFIG} --cflags` -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
+		LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} < 500000
-BROKEN=		does not compile
-.endif
+post-patch:
+	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
 
 .include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list