aboutsummaryrefslogtreecommitdiff
path: root/archivers/unadf
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 13:13:37 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 13:13:37 +0000
commit625c7a3ec82dc7572050682b13e4f03c4c621bb3 (patch)
tree1acabd27ad250147703be6747834584d0aea12d2 /archivers/unadf
parent8a8b31d05cd02391ec25bd1600ee963651314cb2 (diff)
downloadports-625c7a3ec82dc7572050682b13e4f03c4c621bb3.tar.gz
ports-625c7a3ec82dc7572050682b13e4f03c4c621bb3.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>
Notes
Notes: svn path=/head/; revision=88199
Diffstat (limited to 'archivers/unadf')
-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
+