mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Add physfs-2.0.1 in order to fix ticket #170
Test application runs ok but there doesn't appear to be an automated test suite.
This commit is contained in:
24
dev-games/physfs/patches/physfs-2.0.1.patch
Normal file
24
dev-games/physfs/patches/physfs-2.0.1.patch
Normal file
@@ -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)
|
||||
19
dev-games/physfs/physfs-2.0.1.bep
Normal file
19
dev-games/physfs/physfs-2.0.1.bep
Normal file
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user