Antoine Jacoutot writes:

> CFLAGS+= -maltivec
> in the port's Makefile for macppc archs makes it compile.

Nice, thanks.

I think this should do it.  I still don't have a macppc shell to
test this on so I'd appreciate it if someone else would.

This also fixes the FPEs on alpha.

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/liboil/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile    23 Mar 2006 18:05:55 -0000      1.5
+++ Makefile    9 Dec 2006 04:17:38 -0000
@@ -2,15 +2,17 @@
 
 COMMENT=       "library of optimized inner loops"
 
-DISTNAME=      liboil-0.3.7
+DISTNAME=      liboil-0.3.10
 
-SHARED_LIBS=   oil-0.3 1.0
+SHARED_LIBS=   oil-0.3 2.0
 
 CATEGORIES=    devel
 MASTER_SITES=  ${HOMEPAGE}download/
 
 HOMEPAGE=      http://liboil.freedesktop.org/
 
+MAINTAINER=    Deanna Phillips <[EMAIL PROTECTED]>
+
 # BSD
 PERMIT_DISTFILES_CDROM=        Yes
 PERMIT_DISTFILES_FTP=  Yes
@@ -19,11 +21,15 @@ PERMIT_PACKAGE_FTP= Yes
 
 BUILD_DEPENDS+=                :pkgconfig->=0.15.0:devel/pkgconfig
 
-WANTLIB=               m
+WANTLIB=               c m
 
 USE_LIBTOOL=           Yes
 
 CONFIGURE_STYLE=       gnu
 CONFIGURE_ARGS=                --disable-glib
+
+.if ${MACHINE_ARCH} == "alpha"
+CFLAGS+=-mieee
+.endif
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/liboil/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo    23 Mar 2006 18:05:55 -0000      1.3
+++ distinfo    9 Dec 2006 04:17:38 -0000
@@ -1,4 +1,4 @@
-MD5 (liboil-0.3.7.tar.gz) = 1f08e71fe775bfa1266a741742f1904b
-RMD160 (liboil-0.3.7.tar.gz) = 9e4138116e331f24de1e27ba933ed7b541f7592e
-SHA1 (liboil-0.3.7.tar.gz) = ff0e5e876878979b80f9da6d818264fdc3420ab9
-SIZE (liboil-0.3.7.tar.gz) = 822820
+MD5 (liboil-0.3.10.tar.gz) = 770f656bca8166dab33b322d5886a4bf
+RMD160 (liboil-0.3.10.tar.gz) = 585413d5955b08b24cec18f588927ac071a44098
+SHA1 (liboil-0.3.10.tar.gz) = 00183731d417047a3b7715532b9d6ca5cce16cc4
+SIZE (liboil-0.3.10.tar.gz) = 860303
Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/devel/liboil/patches/patch-configure,v
retrieving revision 1.1
diff -u -p -r1.1 patch-configure
--- patches/patch-configure     23 Mar 2006 18:05:55 -0000      1.1
+++ patches/patch-configure     9 Dec 2006 04:17:38 -0000
@@ -1,7 +1,7 @@
-$OpenBSD: patch-configure,v 1.1 2006/03/23 18:05:55 bernd Exp $
---- configure.orig     Fri Feb  3 07:22:48 2006
-+++ configure  Thu Feb 23 15:43:57 2006
-@@ -24115,7 +24115,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
+$OpenBSD$
+--- configure.orig     Tue Dec  5 17:50:20 2006
++++ configure  Tue Dec  5 17:52:22 2006
+@@ -26212,7 +26212,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
@@ -10,7 +10,7 @@ $OpenBSD: patch-configure,v 1.1 2006/03/
  else
    echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
-@@ -24178,7 +24178,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
+@@ -26289,7 +26289,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
@@ -19,7 +19,7 @@ $OpenBSD: patch-configure,v 1.1 2006/03/
  else
    echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
-@@ -24241,7 +24241,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
+@@ -26366,7 +26366,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
@@ -28,7 +28,7 @@ $OpenBSD: patch-configure,v 1.1 2006/03/
  else
    echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
-@@ -24304,7 +24304,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
+@@ -26443,7 +26443,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
@@ -37,7 +37,7 @@ $OpenBSD: patch-configure,v 1.1 2006/03/
  else
    echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
-@@ -24367,7 +24367,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
+@@ -26520,7 +26520,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
@@ -46,7 +46,7 @@ $OpenBSD: patch-configure,v 1.1 2006/03/
  else
    echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
-@@ -24430,7 +24430,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
+@@ -26597,7 +26597,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
Index: patches/patch-liboil_powerpc_Makefile_in
===================================================================
RCS file: patches/patch-liboil_powerpc_Makefile_in
diff -N patches/patch-liboil_powerpc_Makefile_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-liboil_powerpc_Makefile_in    9 Dec 2006 04:17:38 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- liboil/powerpc/Makefile.in.orig    Fri Dec  8 23:04:44 2006
++++ liboil/powerpc/Makefile.in Fri Dec  8 23:08:27 2006
+@@ -95,7 +95,7 @@ CC = @CC@
+ CCAS = @CCAS@
+ CCASFLAGS = @CCASFLAGS@
+ CCDEPMODE = @CCDEPMODE@
+-CFLAGS = @CFLAGS@
++CFLAGS = @CFLAGS@ @ALTIVEC_CFLAGS@
+ CPP = @CPP@
+ CPPFLAGS = @CPPFLAGS@
+ CXX = @CXX@
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/liboil/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   23 Mar 2006 18:05:55 -0000      1.2
+++ pkg/PLIST   9 Dec 2006 04:17:40 -0000
@@ -1,5 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.2 2006/03/23 18:05:55 bernd Exp $
 %%SHARED%%
+bin/oil-bugreport
 include/liboil-0.3/
 include/liboil-0.3/liboil/
 include/liboil-0.3/liboil/liboil-stdint.h
@@ -52,6 +53,7 @@ share/gtk-doc/html/liboil/liboil-liboilr
 share/gtk-doc/html/liboil/liboil-liboiltest.html
 share/gtk-doc/html/liboil/liboil-liboiltypes.html
 share/gtk-doc/html/liboil/liboil.devhelp
+share/gtk-doc/html/liboil/liboil.devhelp2
 share/gtk-doc/html/liboil/right.png
 share/gtk-doc/html/liboil/style.css
 share/gtk-doc/html/liboil/up.png


Reply via email to