Doesn't compile with GCC > 3.3.
This is not a proper fix. First, it's desirable to fix bad C code instead of forcing older version of compiler. Second, the OSVERSION for gcc-3.4 import is different. -- Pav Lucistnik <pav@oook.cz> <pav@FreeBSD.org> "Well, she turned me into a newt!" "A newt?" "I got better."
Pav, I have no idea how to fix old C++ code of the game, that's why I forced build system to use GCC 3.3. I think this approach is suitable, and once me or somebody else will come with the correct code fix it won't be hard to modify the port. I fixed OSVERSION number, the updated patch follows. diff -ru /usr/ports/games/ssc/Makefile ssc/Makefile --- /usr/ports/games/ssc/Makefile Sun Aug 1 21:22:28 2004 +++ ssc/Makefile Sat Aug 14 22:11:14 2004 @@ -29,6 +29,12 @@ LDFLAGS=-L${X11BASE}/lib ONLY_FOR_ARCHS= i386 +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 502126 +USE_GCC= 3.3 +.endif + post-patch: @${REINPLACE_CMD} -e "s|SDL\/||g; s|/usr/local|${PREFIX}|g" \ ${WRKSRC}/src/*.h ${WRKSRC}/src/*.cc @@ -39,4 +45,4 @@ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> -ip -- Real programmers do not apply DP terminology to non-DP situations.
V po, 16. 08. 2004 v 19:08, Igor Pokrovsky pí¹e: > I have no idea how to fix old C++ code of the game, > that's why I forced build system to use GCC 3.3. > I think this approach is suitable, and once me or somebody else > will come with the correct code fix it won't be hard to modify the port. > I fixed OSVERSION number, the updated patch follows. > +.include <bsd.port.pre.mk> > + > +.if ${OSVERSION} >= 502126 > +USE_GCC= 3.3 > +.endif Won't work. USE_GCC=3.3 tells use 3.3 *or newer* if available, so on post-502126 systems it will use 3.4 from base anyway. options are: 1) fix breakage in source 2) mark BROKEN for >= 502126 -- Pav Lucistnik <pav@oook.cz> <pav@FreeBSD.org> A two-eyed cyclops would be a bicyclops.
Ok, I hope this one is fine: diff -ru /usr/ports/games/ssc/Makefile ssc/Makefile --- /usr/ports/games/ssc/Makefile Sun Aug 1 21:22:28 2004 +++ ssc/Makefile Sat Aug 14 22:11:14 2004 @@ -29,6 +29,12 @@ LDFLAGS=-L${X11BASE}/lib ONLY_FOR_ARCHS= i386 +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 502126 +BROKEN= Doesn't compile on GCC > 3.3 +.endif + post-patch: @${REINPLACE_CMD} -e "s|SDL\/||g; s|/usr/local|${PREFIX}|g" \ ${WRKSRC}/src/*.h ${WRKSRC}/src/*.cc @@ -39,4 +45,4 @@ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> -ip -- Real programmers do not apply DP terminology to non-DP situations.
State Changed From-To: open->closed Latest patch committed, thank you!