On October 19, 2007 10:03:36 pm Brad wrote: > 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.
Here is an updated diff. Bernd pointed out that I needed to add the @pkgpath marker. 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> Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/graphics/gimp/stable/pkg/PLIST,v retrieving revision 1.11 diff -u -p -r1.11 PLIST --- pkg/PLIST 1 Jul 2007 15:42:17 -0000 1.11 +++ pkg/PLIST 21 Oct 2007 00:44:43 -0000 @@ -1,4 +1,5 @@ @comment $OpenBSD: PLIST,v 1.11 2007/07/01 15:42:17 steven Exp $ [EMAIL PROTECTED] graphics/gimp,altivec %%SHARED%% bin/gimp bin/gimp-2.2