aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-08-31 21:13:37 +0800
committeredwin <edwin@FreeBSD.org>2003-08-31 21:13:37 +0800
commit0af2ea1821ae7799bc9e36777b71685391e42000 (patch)
treedd569a9a5ff3d7785d1a3a87877008c43ebef2b8 /archivers
parent7f55413109fbf48827fb23b322001334a1120aed (diff)
downloadfreebsd-ports-gnome-0af2ea1821ae7799bc9e36777b71685391e42000.tar.gz
freebsd-ports-gnome-0af2ea1821ae7799bc9e36777b71685391e42000.tar.zst
freebsd-ports-gnome-0af2ea1821ae7799bc9e36777b71685391e42000.zip
[patch] archivers/unadf and "#define LITT_ENDIAN must exist"
Script Lib/myconf has problem with detecting Big or Little Endian machine and he always set "Big Endian machine". archivers/unadf will compile but when you want to unpack some files you will get this message: "Compilation error : #define LITT_ENDIAN must exist" PR: ports/53622 Submitted by: Jacek Serwatynski <tutus@trynet.eu.org> <tutus@trynet.eu.org>
Diffstat (limited to 'archivers')
-rw-r--r--archivers/unadf/Makefile1
-rw-r--r--archivers/unadf/files/patch-Lib::myconf25
2 files changed, 26 insertions, 0 deletions
diff --git a/archivers/unadf/Makefile b/archivers/unadf/Makefile
index 159f50cae698..24d53a737140 100644
--- a/archivers/unadf/Makefile
+++ b/archivers/unadf/Makefile
@@ -7,6 +7,7 @@
PORTNAME= unadf
PORTVERSION= 0.7.9b
+PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= http://perso.club-internet.fr/lclevy/adflib/
DISTNAME= adflib
diff --git a/archivers/unadf/files/patch-Lib::myconf b/archivers/unadf/files/patch-Lib::myconf
new file mode 100644
index 000000000000..ed5280121bfb
--- /dev/null
+++ b/archivers/unadf/files/patch-Lib::myconf
@@ -0,0 +1,25 @@
+--- Lib/myconf Sat Aug 19 03:08:08 2000
++++ Lib/myconf.new Mon Jun 23 01:32:48 2003
+@@ -31,17 +31,17 @@
+ gcc myctest.c -o myctest
+ rm myctest.c
+
+-if [ `myctest |cut -d' ' -f 1` != 4 ]
++if [ `./myctest |cut -d' ' -f 1` != 4 ]
+ then echo "Error : sizeof(long)!=4"
+ fi
+-if [ `myctest |cut -d' ' -f 2` != 2 ]
++if [ `./myctest |cut -d' ' -f 2` != 2 ]
+ then echo "Error : sizeof(short)!=2"
+ fi
+-if [ `myctest |cut -d' ' -f 3` != 4 ]
++if [ `./myctest |cut -d' ' -f 3` != 4 ]
+ then echo "Error :sizeof(int)!=4"
+ fi
+
+-if [ `myctest |cut -d' ' -f 4` = LITTLE ]
++if [ `./myctest |cut -d' ' -f 4` = LITTLE ]
+ then
+ echo "#ifndef LITT_ENDIAN" >defendian.h
+ echo "#define LITT_ENDIAN 1" >>defendian.h
+