The following diff simplifies the SIMD instruction handling support
for the Gimp port. I took a look at the code in question and noticed
it has run-time detection of the CPU support so there shouldn't be
a need for the AltiVec FLAVOR even for G3 systems. This also enables
the SSE support.
Please test this if you have a G3 system for macppc or if you have
an older i386 system without SSE.
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/gimp/stable/Makefile,v
retrieving revision 1.26
diff -u -p -r1.26 Makefile
--- Makefile 1 Aug 2007 06:25:10 -0000 1.26
+++ Makefile 30 Sep 2007 06:52:05 -0000
@@ -3,6 +3,7 @@
COMMENT= GNU Image Manipulation Program
DISTNAME= gimp-2.2.17
+PKGNAME= ${DISTNAME}p0
SHARED_LIBS= gimp-2.0 200.17 \
gimpbase-2.0 200.17 \
gimpcolor-2.0 200.17 \
@@ -54,23 +55,8 @@ AUTOCONF_VERSION= 2.61
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
-CONFIGURE_ARGS+= --disable-print --without-gtkhtml2 --without-librsvg \
- --disable-sse
+CONFIGURE_ARGS+= --disable-print --without-gtkhtml2 --without-librsvg
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include
-I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-
-FLAVORS= altivec
-FLAVOR?=
-
-.if ${FLAVOR:L} == "altivec"
-ONLY_FOR_ARCHS= powerpc
-CONFIGURE_ARGS+= --enable-altivec
-.else
-CONFIGURE_ARGS+= --disable-altivec
-.endif
-
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE} == "amd64"
-CONFIGURE_ARGS+= --enable-mmx
-.endif
.include <bsd.port.mk>