BSD Ports

devel/physfs 3.2.0 MidnightBSD

Library to provide abstract access to various archives

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
zlib
Categories
devel

Description

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. The programmer defines a "write directory" on the physical filesystem. No file writing done through the PhysicsFS API can leave that write directory, for security. For example, an embedded scripting language cannot write outside of this path if it uses PhysFS for all of its I/O, which means that untrusted scripts can run more safely. Symbolic links can be disabled as well, for added safety. For file reading, the programmer lists directories and archives that form a "search path". Once the search path is defined, it becomes a single, transparent hierarchical filesystem. This makes for easy access to ZIP files in the same way as you access a file directly on the disk, and it makes it easy to ship a new archive that will override a previous archive on a per-file basis. Finally, PhysicsFS gives you platform-abstracted means to determine if CD-ROMs are available, the user's home directory, where in the real filesystem your program is running, etc.

In the other systems

SystemPortVersion
MidnightBSDdevel/physfs3.2.0
FreeBSDdevel/physfs3.2.0
OpenBSDdevel/physfs3.2.0
NetBSDdevel/physfs3.2.0
DragonFlydevel/physfs3.2.0
HardenedBSDdevel/physfs3.2.0
GhostBSDdevel/physfs3.2.0

Install

Binary package:

mport install physfs

From mports:

cd /usr/mports/devel/physfs && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	physfs>0:devel/physfs
LIB_DEPENDS=	libphysfs.so:devel/physfs

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
cmake readline tar:bzip2
Service scripts
none

Files

pkg-plist 9
  • bin/test_physfs
  • include/physfs.h
  • lib/cmake/PhysFS/PhysFSConfig-.cmake
  • lib/cmake/PhysFS/PhysFSConfig.cmake
  • lib/libphysfs.a
  • lib/libphysfs.so
  • lib/libphysfs.so.1
  • lib/libphysfs.so.3.2.0
  • libdata/pkgconfig/physfs.pc
distinfo 1
FileSizeSHA256
icculus-physfs-release-3.2.0_GH0.tar.gz2428571991500eaeb8d5325e3a8361847ff3bf8e03ec89252b7915e1f25b3f8ab5d560