summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2013-04-01 09:26:07 +0000
committersbd <sbd@pkgsrc.org>2013-04-01 09:26:07 +0000
commit6e75c1ef4f4d6e6d1ec63d3b34b1f0ad3c8957cc (patch)
tree5b08422b9a6551fa6d74229e20341949bec59daa /cad
parentf55bee58f874322c10f33aa3b59931a5ae0bf656 (diff)
downloadpkgsrc-6e75c1ef4f4d6e6d1ec63d3b34b1f0ad3c8957cc.tar.gz
Linux has <endian.h> not <sys/endian.h>.
Diffstat (limited to 'cad')
-rw-r--r--cad/electric/distinfo4
-rw-r--r--cad/electric/patches/patch-ab12
2 files changed, 9 insertions, 7 deletions
diff --git a/cad/electric/distinfo b/cad/electric/distinfo
index 64f0b3fcc30..02868c4af57 100644
--- a/cad/electric/distinfo
+++ b/cad/electric/distinfo
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.6 2012/03/02 15:32:02 hans Exp $
+$NetBSD: distinfo,v 1.7 2013/04/01 09:26:07 sbd Exp $
SHA1 (electric-7.00.tar.gz) = 782652b078e81060928eadfae364cd74da07788e
RMD160 (electric-7.00.tar.gz) = c57a2e0a32e40d435e125cad6dfc5c1b98e9067b
Size (electric-7.00.tar.gz) = 4474722 bytes
SHA1 (patch-aa) = ca3aa5c28eef818dce61055daeedc1b7d2e9a8a7
-SHA1 (patch-ab) = 368810e1dfc1a25cd450f7a3efa74a64b33d9c33
+SHA1 (patch-ab) = 088f1318a39692534ebbf7313893a6420d49523f
SHA1 (patch-ac) = fac49d88feab792ff665686e9e4fc8a29caab471
SHA1 (patch-ad) = 6be5c47ead4bf023ef6215d7bce496a2f7abb5b0
SHA1 (patch-ae) = 095e56c085ae77d0615134b070082f6599a95280
diff --git a/cad/electric/patches/patch-ab b/cad/electric/patches/patch-ab
index 50f4fbb5ef6..25e4d31f9c6 100644
--- a/cad/electric/patches/patch-ab
+++ b/cad/electric/patches/patch-ab
@@ -1,12 +1,12 @@
-$NetBSD: patch-ab,v 1.3 2012/03/02 15:32:02 hans Exp $
+$NetBSD: patch-ab,v 1.4 2013/04/01 09:26:07 sbd Exp $
- not all !sparcs are little endian.
- don't assume /usr/local
---- src/include/config.h.orig Fri Jul 16 01:59:53 2004
+--- src/include/config.h.orig 2004-07-16 01:59:53.000000000 +0000
+++ src/include/config.h
-@@ -32,6 +32,19 @@
+@@ -32,6 +32,21 @@
#ifndef _CONFIG_H_
#define _CONFIG_H_ 1
@@ -19,6 +19,8 @@ $NetBSD: patch-ab,v 1.3 2012/03/02 15:32:02 hans Exp $
+#else
+#define BYTE_ORDER LITTLE_ENDIAN
+#endif
++#elif defined(__linux__)
++#include <endian.h>
+#else
+#include <sys/endian.h>
+#endif
@@ -26,7 +28,7 @@ $NetBSD: patch-ab,v 1.3 2012/03/02 15:32:02 hans Exp $
/********************* MACHINE DETERMINATION *********************/
/* determine if it is Macintosh OS */
-@@ -135,7 +148,7 @@
+@@ -135,7 +150,7 @@
# ifndef USEQT
# include <X11/Intrinsic.h>
# endif
@@ -35,7 +37,7 @@ $NetBSD: patch-ab,v 1.3 2012/03/02 15:32:02 hans Exp $
# define BYTES_SWAPPED 1 /* bytes are MSB first */
# endif
# define DIRSEP '/' /* directory separator */
-@@ -143,31 +145,19 @@
+@@ -143,31 +158,19 @@
# define MACFSTAG(x) 0
# define NONFILECH '?' /* character that cannot be in file name */
# define CADRCFILENAME x_(".cadrc") /* CAD startup file */