diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 13:13:37 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 13:13:37 +0000 |
commit | 625c7a3ec82dc7572050682b13e4f03c4c621bb3 (patch) | |
tree | 1acabd27ad250147703be6747834584d0aea12d2 /archivers/unadf | |
parent | [patch] Unbreak port: archivers/libcabinet (diff) |
[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/unadf')
-rw-r--r-- | archivers/unadf/Makefile | 1 | ||||
-rw-r--r-- | archivers/unadf/files/patch-Lib::myconf | 25 |
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 + |