Difference between revisions of "PhysicsFS"

From CBLFS
Jump to navigationJump to search
 
(7 intermediate revisions by 4 users not shown)
Line 7: Line 7:
 
----
 
----
  
{{Package-Introduction|PhysicsFS is a library to provide abstract access to various archives. It is intended for use in video games, and the design was somewhat inspired by Quake 3's file subsystem.}}
+
{{Package-Introduction|PhysicsFS is a library to provide abstract access to various archives. It is intended for use in video games, and the design was somewhat inspired by Quake 3's file subsystem.|http://icculus.org/physfs/}}
  
 
== Dependencies ==
 
== Dependencies ==
 +
=== Required ===
 +
* [[CMake]]
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 15: Line 17:
 
Compile the package:
 
Compile the package:
  
  ./configure --prefix=/usr &&
+
  cmake . -DCMAKE_INSTALL_PREFIX=/usr &&
 
  make
 
  make
  
Line 28: Line 30:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
+
  USE_ARCH=32 PKG_CONFIG_PATH=$PKG_CONFIG_PATH32 cmake \
 +
      -DCMAKE_INSTALL_PREFIX=/usr \
 +
      -DCMAKE_CXX_FLAGS="${BUILD32}" \
 +
      -DCMAKE_C_FLAGS="${BUILD32}" &&
 
  make
 
  make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/test_physfs{,-32}
  
 
=== N32 ===
 
=== N32 ===
Line 39: Line 45:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
+
  To do ...
    --libdir=/usr/lib32 &&
 
make
 
  
 
Install the package
 
Install the package
Line 51: Line 55:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
+
  sed -i -e '/LIBRARY DESTINATION /s/lib/&64/g' \
    --libdir=/usr/lib64 &&
+
        -e '/ARCHIVE DESTINATION /s/lib/&64/g' \
 +
        CMakeLists.txt &&
 +
USE_ARCH=64 PKG_CONFIG_PATH=$PKG_CONFIG_PATH64 \
 +
        cmake -DCMAKE_INSTALL_PREFIX=/usr \
 +
        -DCMAKE_CXX_FLAGS="${BUILD32}" \
 +
        -DCMAKE_C_FLAGS="${BUILD32}" &&
 
  make
 
  make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/test_physfs{,-64} &&
 +
ln -sfv multiarch_wrapper /usr/bin/test_physfs
  
 
= Contents =
 
= Contents =
Line 64: Line 75:
 
|-valign="top"
 
|-valign="top"
 
! Installed Programs:
 
! Installed Programs:
| test_physfs
+
| test_physfs, wxtest_physfs
 
|-valign="top"
 
|-valign="top"
 
! Installed Libraries:
 
! Installed Libraries:
Line 72: Line 83:
 
| None
 
| None
 
|}
 
|}
 +
 +
[[Category:General Libs]]

Latest revision as of 10:33, 20 September 2009

Download Source: http://icculus.org/physfs/downloads/physfs-2.0.0.tar.gz

Introduction to PhysicsFS

PhysicsFS is a library to provide abstract access to various archives. It is intended for use in video games, and the design was somewhat inspired by Quake 3's file subsystem.

Project Homepage: http://icculus.org/physfs/

Dependencies

Required

Non-Multilib

Compile the package:

cmake . -DCMAKE_INSTALL_PREFIX=/usr &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

USE_ARCH=32 PKG_CONFIG_PATH=$PKG_CONFIG_PATH32 cmake \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_CXX_FLAGS="${BUILD32}" \
     -DCMAKE_C_FLAGS="${BUILD32}" &&
make

Install the package

make install &&
mv -v /usr/bin/test_physfs{,-32}

N32

Compile the package:

To do ...

Install the package

make install

64Bit

Compile the package:

sed -i -e '/LIBRARY DESTINATION /s/lib/&64/g' \
       -e '/ARCHIVE DESTINATION /s/lib/&64/g' \
       CMakeLists.txt &&
USE_ARCH=64 PKG_CONFIG_PATH=$PKG_CONFIG_PATH64 \
       cmake -DCMAKE_INSTALL_PREFIX=/usr \
       -DCMAKE_CXX_FLAGS="${BUILD32}" \
       -DCMAKE_C_FLAGS="${BUILD32}" &&
make

Install the package

make install &&
mv -v /usr/bin/test_physfs{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/test_physfs

Contents

Installed Programs: test_physfs, wxtest_physfs
Installed Libraries: libphysfs.{a,la,so}
Installed Directories: None