aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2012-02-12 17:09:18 +0800
committerdanfe <danfe@FreeBSD.org>2012-02-12 17:09:18 +0800
commit23de01d89109086455e337c9be7b96bd82bace89 (patch)
tree4ce7e58cfc606b6ddc330c2b899d405365381ca1 /archivers
parent172b48657c37017b4cf05ed19344433dd4025e9e (diff)
downloadfreebsd-ports-gnome-23de01d89109086455e337c9be7b96bd82bace89.tar.gz
freebsd-ports-gnome-23de01d89109086455e337c9be7b96bd82bace89.tar.zst
freebsd-ports-gnome-23de01d89109086455e337c9be7b96bd82bace89.zip
- Fix bad work with data types between architectures which resulted in
immediate segfault when being run on e.g. amd64 - Fix wrong length when reading block into structure (probably a typo) - Other minor non-functional fixes PR: ports/161664 Submitted by: Cray Elliott
Diffstat (limited to 'archivers')
-rw-r--r--archivers/deutex/Makefile4
-rw-r--r--archivers/deutex/files/patch-src-deutex.h33
2 files changed, 37 insertions, 0 deletions
diff --git a/archivers/deutex/Makefile b/archivers/deutex/Makefile
index 9529b2acd513..faf9fed3192b 100644
--- a/archivers/deutex/Makefile
+++ b/archivers/deutex/Makefile
@@ -7,6 +7,7 @@
PORTNAME= deutex
PORTVERSION= 4.4.0
+PORTREVISION= 1
CATEGORIES= archivers games
MASTER_SITES= http://www.teaser.fr/~amajorel/deutex/ \
http://freebsd.nsu.ru/distfiles/
@@ -23,7 +24,10 @@ PLIST_FILES= bin/deusf bin/deutex
PORTDOCS= *
post-extract:
+ @${REINPLACE_CMD} -e 's,-mkdir,mkdir -p,' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's,malloc\.h,stdlib.h,' ${WRKSRC}/src/tools.c
+ @${REINPLACE_CMD} -e '/blockv/s,VOCHEAD,VOCBLOCK1,' \
+ ${WRKSRC}/src/sound.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/deusf ${WRKSRC}/deutex ${PREFIX}/bin
diff --git a/archivers/deutex/files/patch-src-deutex.h b/archivers/deutex/files/patch-src-deutex.h
new file mode 100644
index 000000000000..20e713558adb
--- /dev/null
+++ b/archivers/deutex/files/patch-src-deutex.h
@@ -0,0 +1,33 @@
+--- src/deutex.h.orig 1999-12-31 07:20:22.000000000 +0800
++++ src/deutex.h 2012-02-12 16:53:51.000000000 +0800
+@@ -31,23 +31,13 @@
+ #define DeuSF for DOS .EXE Unix Linux OS/2
+ *********************************************/
+
+-#if defined (__alpha) /*__ALPHA__ for Alpha processor?*/
+-/*long = int64 on a 64bit processor*/
+-typedef char Int8;
+-typedef short Int16;
+-typedef int Int32;
+-typedef unsigned char UInt8;
+-typedef unsigned short UInt16;
+-typedef unsigned int UInt32;
+-#else
+-/*long = Int32 on a 32 bit processor*/
+-typedef char Int8;
+-typedef short Int16;
+-typedef long Int32;
+-typedef unsigned char UInt8;
+-typedef unsigned short UInt16;
+-typedef unsigned long UInt32;
+-#endif
++#include <stdint.h>
++typedef int8_t Int8;
++typedef int16_t Int16;
++typedef int32_t Int32;
++typedef uint8_t UInt8;
++typedef uint16_t UInt16;
++typedef uint32_t UInt32;
+
+ #if defined DeuTex
+ #if defined DeuSF