mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
[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>
This commit is contained in:
parent
8a8b31d05c
commit
625c7a3ec8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88199
@ -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
|
||||
|
25
archivers/unadf/files/patch-Lib::myconf
Normal file
25
archivers/unadf/files/patch-Lib::myconf
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user