From e51c483e0fafa632ca69522265229998fc9a00d2 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 5 Oct 2012 16:56:02 +0300 Subject: [PATCH] physfs: add physfs Signed-off-by: Marko Lindqvist --- .../physfs/physfs-2.0.2/compile_fixes.patch | 13 +++++++++++++ dependencies/physfs/physfs_2.0.2.bb | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 dependencies/physfs/physfs-2.0.2/compile_fixes.patch create mode 100644 dependencies/physfs/physfs_2.0.2.bb diff --git a/dependencies/physfs/physfs-2.0.2/compile_fixes.patch b/dependencies/physfs/physfs-2.0.2/compile_fixes.patch new file mode 100644 index 0000000..f6bedd7 --- /dev/null +++ b/dependencies/physfs/physfs-2.0.2/compile_fixes.patch @@ -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; diff --git a/dependencies/physfs/physfs_2.0.2.bb b/dependencies/physfs/physfs_2.0.2.bb new file mode 100644 index 0000000..c314698 --- /dev/null +++ b/dependencies/physfs/physfs_2.0.2.bb @@ -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