summaryrefslogtreecommitdiff
path: root/devel/orc
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2011-04-18 20:07:31 +0000
committerhe <he@pkgsrc.org>2011-04-18 20:07:31 +0000
commitc8df297dc3f03af00aa2a7d9450bd81ff3468022 (patch)
tree26876f8f69a1af06d0103d14452dd7112e5aec8a /devel/orc
parent271f67d30666d09a5f6f6f46450c6ef07bc32dad (diff)
downloadpkgsrc-c8df297dc3f03af00aa2a7d9450bd81ff3468022.tar.gz
Add a patch so that this builds properly for powerpc.
Also bump package revision.
Diffstat (limited to 'devel/orc')
-rw-r--r--devel/orc/Makefile3
-rw-r--r--devel/orc/distinfo3
-rw-r--r--devel/orc/patches/patch-ab47
3 files changed, 51 insertions, 2 deletions
diff --git a/devel/orc/Makefile b/devel/orc/Makefile
index fa6c7e69061..affe4587120 100644
--- a/devel/orc/Makefile
+++ b/devel/orc/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2010/10/16 16:56:23 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2011/04/18 20:07:31 he Exp $
#
DISTNAME= orc-0.4.11
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://code.entropywave.com/download/orc/
diff --git a/devel/orc/distinfo b/devel/orc/distinfo
index 55962188b47..ff91dd5161b 100644
--- a/devel/orc/distinfo
+++ b/devel/orc/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2010/10/25 10:33:53 wiz Exp $
+$NetBSD: distinfo,v 1.6 2011/04/18 20:07:31 he Exp $
SHA1 (orc-0.4.11.tar.gz) = e99f684fc551c2bb3a5cdefe6fa5165174508a5f
RMD160 (orc-0.4.11.tar.gz) = 03bca8a087064c95978629fa9943b5ff305e8a0d
Size (orc-0.4.11.tar.gz) = 676224 bytes
SHA1 (patch-aa) = 85c1b652a886e93e087e42f7f9cc1f6a7a6f5ad6
+SHA1 (patch-ab) = 589967ac10bbfcf1cf557918aed86a93f0d85a2b
diff --git a/devel/orc/patches/patch-ab b/devel/orc/patches/patch-ab
new file mode 100644
index 00000000000..566f93bcda0
--- /dev/null
+++ b/devel/orc/patches/patch-ab
@@ -0,0 +1,47 @@
+$NetBSD: patch-ab,v 1.4 2011/04/18 20:07:31 he Exp $
+
+Fix this so that NetBSD is also probed for altivec on powerpc
+(and so that this builds).
+
+--- orc/orccpu-powerpc.c.orig 2010-07-09 23:56:52.000000000 +0000
++++ orc/orccpu-powerpc.c
+@@ -45,7 +45,7 @@
+
+ #endif
+
+-#if defined(__FreeBSD__) || defined(__APPLE__)
++#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__)
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
+ #endif
+@@ -76,9 +76,11 @@ test_altivec (void * ignored)
+ }
+ #endif
+
+-#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__)
+ #if defined(__APPLE__)
+ #define SYSCTL "hw.vectorunit"
++#elif defined(__NetBSD__)
++#define SYSCTL "machdep.altivec"
+ #else
+ #define SYSCTL "hw.altivec"
+ #endif
+@@ -174,7 +176,7 @@ out:
+ }
+ #endif
+
+-#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__linux__)
++#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__NetBSD__)
+ static void
+ orc_check_altivec_fault (void)
+ {
+@@ -190,7 +192,7 @@ orc_check_altivec_fault (void)
+ void
+ orc_cpu_detect_arch(void)
+ {
+-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__)
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) || defined(__NetBSD__)
+ orc_check_altivec_sysctl_bsd();
+ #elif defined(__OpenBSD__)
+ orc_check_altivec_sysctl_openbsd();