BSD Ports

devel/physfs 3.2.0 FreeBSD

Library to provide abstract access to various archives

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
4239360ccc
License
ZLIB
Categories
devel
Package size
139.3 KiB, 616.7 KiB installed

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
FreeBSDdevel/physfs3.2.0
OpenBSDdevel/physfs3.2.0
NetBSDdevel/physfs3.2.0
DragonFlydevel/physfs3.2.0
MidnightBSDdevel/physfs3.2.0

Install

Binary package:

pkg install physfs

From the ports tree:

cd /usr/ports/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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3.2.03.2.03.0.23.2.03.2.0
FreeBSD:14:quarterly3.2.03.2.0n/a3.2.03.2.0
FreeBSD:15:latest3.2.03.2.0n/a3.2.03.2.0
FreeBSD:15:quarterly3.2.03.2.0n/an/an/a
FreeBSD:16:latest3.2.03.2.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 15
Run dependencies 2

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

Commit history 1

DateCommitCreditsLog message
4239360ccc Robert Clausecker devel/physfs: fix build with cmake 4
Approved by: portmgr (build fix blanket) MFH: 2026Q3