ports/117874: [patch] graphics/ffff: unbreak building with gcc-4.2
Boris Samorodov
bsam at FreeBSD.org
Tue Nov 6 19:20:01 UTC 2007
>Number: 117874
>Category: ports
>Synopsis: [patch] graphics/ffff: unbreak building with gcc-4.2
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Nov 06 19:20:00 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Boris Samorodov
>Release: FreeBSD 6.2-STABLE amd64
>Organization:
InPharmTech, Co.
>Environment:
System: FreeBSD srv.sem.ipt.ru 6.2-STABLE FreeBSD 6.2-STABLE #0: Tue Jul 24 19:30:05 MSD 2007 bsam at srv.sem.ipt.ru:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The port marked as broken for gcc-4.2.
>How-To-Repeat:
>Fix:
The idea is taken from the Sourceforge Jackit-devel mailing list.
. unbreak building with gcc-4.2 (add compile options -msse -msse2 -m3dnow);
. bump PORTREVISION.
--- ffff.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/graphics/ffff/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 4 Oct 2007 08:50:50 -0000 1.3
+++ Makefile 6 Nov 2007 19:02:34 -0000
@@ -7,7 +7,7 @@
PORTNAME= ffff
PORTVERSION= 323
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -29,7 +29,7 @@
extensions vpext
CXXFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/GL ${PTHREAD_CFLAGS} \
- -D__linux__
+ -D__linux__ -msse -msse2 -m3dnow
LDFLAGS+= -L${X11BASE}/lib ${PTHREAD_LIBS} -lglut -lGL -lXext -lX11 -lXmu \
-lGLU -lm
@@ -47,10 +47,4 @@
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Does not compile with GCC 4.2
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--- ffff.diff ends here ---
WBR
--
bsam
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list