diff --git a/dev-games/physfs/patches/physfs-2.0.1.patch b/dev-games/physfs/patches/physfs-2.0.1.patch new file mode 100644 index 000000000..855d3d32d --- /dev/null +++ b/dev-games/physfs/patches/physfs-2.0.1.patch @@ -0,0 +1,24 @@ +diff -up physfs-2.0.1/CMakeLists.txt.orig physfs-2.0.1/CMakeLists.txt +--- physfs-2.0.1/CMakeLists.txt.orig 2010-04-27 21:17:08.770441216 -0600 ++++ physfs-2.0.1/CMakeLists.txt 2010-04-27 21:25:09.183238656 -0600 +@@ -108,7 +108,9 @@ IF(BEOS) + # We add this explicitly, since we don't want CMake to think this + # is a C++ project unless we're on BeOS. + SET(PHYSFS_BEOS_SRCS platform/beos.cpp) +- SET(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} be root) ++ FIND_LIBRARY(BE_LIBRARY be) ++ FIND_LIBRARY(ROOT_LIBRARY root) ++ SET(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${BE_LIBRARY} ${ROOT_LIBRARY}) + ENDIF(BEOS) + + # Almost everything is "compiled" here, but things that don't apply to the +@@ -298,7 +300,8 @@ IF(PHYSFS_BUILD_TEST) + FIND_PATH(READLINE_H readline/readline.h) + FIND_PATH(HISTORY_H readline/history.h) + IF(READLINE_H AND HISTORY_H) +- SET(CMAKE_REQUIRED_LIBRARIES curses) ++ FIND_LIBRARY(CURSES_LIBRARY NAMES curses ncurses) ++ SET(CMAKE_REQUIRED_LIBRARIES ${CURSES_LIBRARY}) + FIND_LIBRARY(READLINE_LIBRARY readline) + FIND_LIBRARY(HISTORY_LIBRARY history) + IF(READLINE_LIBRARY AND HISTORY_LIBRARY) diff --git a/dev-games/physfs/physfs-2.0.1.bep b/dev-games/physfs/physfs-2.0.1.bep new file mode 100644 index 000000000..d569f82b6 --- /dev/null +++ b/dev-games/physfs/physfs-2.0.1.bep @@ -0,0 +1,19 @@ +DESCRIPTION="PhysicsFS is a library to provide abstract access to various archives" +HOMEPAGE="http://icculus.org/physfs" +SRC_URI="hg+http://hg.icculus.org/icculus/physfs/#release-2.0.1" +#SRC_URI="http://icculus.org/physfs/downloads/physfs-2.0.1.tar.gz" +#CHECKSUM_MD5="df00465fcfa80e87f718961c6dd6b928" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="dev-util/cmake >= 2.8.0 + dev-util/mercurial >= 1.4" +BUILD { + cd physfs-2.0.1 + cmake . + make +} + +INSTALL { + cd physfs-2.0.1 + make install +} diff --git a/dev-games/physfs/physfs.OptionalPackageDescription b/dev-games/physfs/physfs.OptionalPackageDescription index 2fb902c0f..88e795c92 100644 --- a/dev-games/physfs/physfs.OptionalPackageDescription +++ b/dev-games/physfs/physfs.OptionalPackageDescription @@ -1,5 +1,5 @@ Package: physfs -Version: 2.0 -Copyright: 2001-2009 Ryan C. Gordon -License: PHYSFS -URL: http://icculus.org/physfs +Version: 2.0.1 +Copyright: 2001-2010 Ryan C. Gordon +License: PHYSFS +URL: http://icculus.org/physfs