diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2011-02-14 03:24:48 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2011-02-14 03:24:48 +0000 |
commit | 6c94190e92fc8f20427c0345b7a97b0e2bb2e897 (patch) | |
tree | effe4b40c58c7535ff09556f47e65d6cf2ae6dac /devel/stormlib-ghost++/files | |
parent | f405918b9628c74cefec61f169453072cb889aa6 (diff) |
Notes
Diffstat (limited to 'devel/stormlib-ghost++/files')
-rw-r--r-- | devel/stormlib-ghost++/files/patch-Makefile | 31 | ||||
-rw-r--r-- | devel/stormlib-ghost++/files/patch-StormPortLinux.cpp | 37 |
2 files changed, 68 insertions, 0 deletions
diff --git a/devel/stormlib-ghost++/files/patch-Makefile b/devel/stormlib-ghost++/files/patch-Makefile new file mode 100644 index 000000000000..70d7ffe25c02 --- /dev/null +++ b/devel/stormlib-ghost++/files/patch-Makefile @@ -0,0 +1,31 @@ +--- Makefile ++++ Makefile +@@ -19,12 +19,11 @@ + + SHELL = /bin/sh + SYSTEM = $(shell uname) +-C++ = g++ +-CC = gcc ++C++ = $(CXX) + DFLAGS = -D__SYS_ZLIB + OFLAGS = +-LFLAGS = -lbz2 -lz +-CFLAGS = -fPIC ++LFLAGS += -lbz2 -lz ++CFLAGS += -fPIC + CFLAGS += $(OFLAGS) $(DFLAGS) + + OBJS = SCommon.o SCompression.o SFileCompactArchive.o \ +@@ -66,8 +65,7 @@ + all: $(LIB) + + install: $(LIB) +- install $(LIB) /usr/local/lib +- mkdir -p /usr/local/include/StormLib +- cp StormLib.h /usr/local/include/StormLib +- cp StormPort.h /usr/local/include/StormLib +- ldconfig ++ install $(LIB) $(PREFIX)/lib ++ mkdir -p $(PREFIX)/include/StormLib ++ cp StormLib.h $(PREFIX)/include/StormLib ++ cp StormPort.h $(PREFIX)/include/StormLib diff --git a/devel/stormlib-ghost++/files/patch-StormPortLinux.cpp b/devel/stormlib-ghost++/files/patch-StormPortLinux.cpp new file mode 100644 index 000000000000..1c3b8f2cb816 --- /dev/null +++ b/devel/stormlib-ghost++/files/patch-StormPortLinux.cpp @@ -0,0 +1,37 @@ +--- StormPortLinux.cpp ++++ StormPortLinux.cpp +@@ -24,6 +24,7 @@ + * + ********************************************************************/ + ++#define O_LARGEFILE 0100000 + #ifndef _WIN32 + #include "StormPort.h" + +@@ -104,8 +105,8 @@ + return 0xffffffff; + } + +- struct stat64 fileinfo; +- fstat64((intptr_t)hFile, &fileinfo); ++ struct stat fileinfo; ++ fstat((intptr_t)hFile, &fileinfo); + + // Fix by Ladik: If "ulOffSetHigh" is not NULL, it needs to be set + // to higher 32 bits of a file size. +@@ -118,12 +119,12 @@ + + DWORD SetFilePointer(HANDLE hFile, LONG lOffSetLow, LONG *pOffSetHigh, DWORD ulMethod) + { +- off64_t nFileOffset = (DWORD)lOffSetLow; ++ off_t nFileOffset = (DWORD)lOffSetLow; + + if(pOffSetHigh != NULL) +- nFileOffset |= (*(off64_t *)pOffSetHigh) << 32; ++ nFileOffset |= (*(off_t *)pOffSetHigh) << 32; + +- return lseek64((intptr_t)hFile, nFileOffset, ulMethod); ++ return lseek((intptr_t)hFile, nFileOffset, ulMethod); + } + + BOOL SetEndOfFile(HANDLE hFile) |