physfs: add physfs

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
This commit is contained in:
Marko Lindqvist
2012-10-05 16:56:02 +03:00
parent 2731c7ec0b
commit f59622a70b
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff -Nurd physfs-2.0.2/archivers/wad.c physfs-2.0.2-/archivers/wad.c
--- physfs-2.0.2/archivers/wad.c 2011-02-18 23:17:31.000000000 +0200
+++ physfs-2.0.2-/archivers/wad.c 2012-10-05 16:47:03.105547992 +0300
@@ -245,9 +245,6 @@
PHYSFS_uint32 fileCount;
PHYSFS_uint32 directoryOffset;
WADentry *entry;
- char lastDirectory[9];
-
- lastDirectory[8] = 0; /* Make sure lastDirectory stays null-terminated. */
BAIL_IF_MACRO(!wad_open(name, forWriting, &fh, &fileCount,&directoryOffset), NULL, 0);
info->entryCount = fileCount;

19
dependencies/physfs/physfs_2.0.2.bb vendored Normal file
View File

@@ -0,0 +1,19 @@
DESCRIPTION = "PhysicsFS is a library to provide abstract access to various archives."
SECTION = "libs"
LICENSE = "zlib"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8ad5dfd37e76cb8e82b47c55a99097d5"
PR = "r0"
DEPENDS = "readline"
SRC_URI = "http://icculus.org/physfs/downloads/physfs-${PV}.tar.gz \
file://compile_fixes.patch \
"
SRC_URI[md5sum] = "4e8927c3d30279b03e2592106eb9184a"
SRC_URI[sha256sum] = "ae296d3148228e03fd56cc9ea58af02f87dcbb1fadef125c18b709ab37f0bc09"
S = "${WORKDIR}/physfs-${PV}"
inherit cmake