summaryrefslogtreecommitdiff
path: root/devel/physfs
diff options
context:
space:
mode:
authordillo <dillo>2003-07-13 20:00:29 +0000
committerdillo <dillo>2003-07-13 20:00:29 +0000
commit8684b536234af681e40f7258d694a555288b96aa (patch)
tree2293bddfe3bbf0658a8a49810dbe7a586bec7b2b /devel/physfs
parentd2ff8316e5784e2f092e5b501e434c3c6a64c042 (diff)
downloadpkgsrc-8684b536234af681e40f7258d694a555288b96aa.tar.gz
initial import of physfs-0.1.8
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.
Diffstat (limited to 'devel/physfs')
-rw-r--r--devel/physfs/DESCR18
-rw-r--r--devel/physfs/Makefile23
-rw-r--r--devel/physfs/PLIST8
-rw-r--r--devel/physfs/buildlink2.mk26
-rw-r--r--devel/physfs/distinfo5
-rw-r--r--devel/physfs/patches/patch-aa16
6 files changed, 96 insertions, 0 deletions
diff --git a/devel/physfs/DESCR b/devel/physfs/DESCR
new file mode 100644
index 00000000000..0869ec688bc
--- /dev/null
+++ b/devel/physfs/DESCR
@@ -0,0 +1,18 @@
+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.
diff --git a/devel/physfs/Makefile b/devel/physfs/Makefile
new file mode 100644
index 00000000000..6ff2f6a1370
--- /dev/null
+++ b/devel/physfs/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/07/13 20:00:29 dillo Exp $
+#
+
+DISTNAME= physfs-0.1.8
+CATEGORIES= devel
+MASTER_SITES= http://www.icculus.org/physfs/downloads/
+
+MAINTAINER= tech-pkg@netbsd.org
+HOMEPAGE= http://www.icculus.org/physfs/
+COMMENT= library providing abstract access to various archives
+
+USE_BUILDLINK2= yes
+USE_PKGLOCALEDIR= yes
+USE_LIBTOOL= yes
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+GNU_CONFIGURE= yes
+
+CONFIGURE_ARGS+= LIBS="${BUILDLINK_LDFLAGS.pthread}"
+
+.include "../../devel/readline/buildlink2.mk"
+.include "../../devel/zlib/buildlink2.mk"
+.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/physfs/PLIST b/devel/physfs/PLIST
new file mode 100644
index 00000000000..9ae997bd615
--- /dev/null
+++ b/devel/physfs/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/13 20:00:29 dillo Exp $
+bin/test_physfs
+include/physfs.h
+lib/libphysfs.a
+lib/libphysfs.la
+lib/libphysfs.so
+lib/libphysfs.so.8
+lib/libphysfs.so.8.0
diff --git a/devel/physfs/buildlink2.mk b/devel/physfs/buildlink2.mk
new file mode 100644
index 00000000000..b2ae64b5ac8
--- /dev/null
+++ b/devel/physfs/buildlink2.mk
@@ -0,0 +1,26 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/07/13 20:00:30 dillo Exp $
+#
+# This Makefile fragment is included by packages that use physfs.
+#
+
+.if !defined(PHYSFS_BUILDLINK2_MK)
+PHYSFS_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= physfs
+BUILDLINK_DEPENDS.physfs?= physfs>=0.1.8
+BUILDLINK_PKGSRCDIR.physfs?= ../../devel/physfs
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.physfs=physfs
+BUILDLINK_PREFIX.physfs_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.physfs+= include/physfs.h
+BUILDLINK_FILES.physfs+= lib/libphysfs.*
+
+.include "../../devel/readline/buildlink2.mk"
+.include "../../devel/zlib/buildlink2.mk"
+.include "../../mk/pthread.buildlink2.mk"
+
+BUILDLINK_TARGETS+= physfs-buildlink
+
+physfs-buildlink: _BUILDLINK_USE
+
+.endif # PHYSFS_BUILDLINK2_MK
diff --git a/devel/physfs/distinfo b/devel/physfs/distinfo
new file mode 100644
index 00000000000..e579c5a4c64
--- /dev/null
+++ b/devel/physfs/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/07/13 20:00:29 dillo Exp $
+
+SHA1 (physfs-0.1.8.tar.gz) = 0fc4ed9d72df84279718b57d54c4b8f4f76286a2
+Size (physfs-0.1.8.tar.gz) = 462702 bytes
+SHA1 (patch-aa) = 2a56434b2979206fc3e8c4a5a3ab1eeaed715bda
diff --git a/devel/physfs/patches/patch-aa b/devel/physfs/patches/patch-aa
new file mode 100644
index 00000000000..9dc4dadee88
--- /dev/null
+++ b/devel/physfs/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/07/13 20:00:30 dillo Exp $
+
+--- Makefile.in.orig Sun Jul 13 21:44:22 2003
++++ Makefile.in
+@@ -150,11 +150,9 @@ libphysfsinclude_HEADERS = \
+ @BUILD_MACOSX_TRUE@libphysfs_la_INCLUDES = $(ZLIB_INC)
+
+ @BUILD_MACOSX_TRUE@libphysfs_la_LDFLAGS = \
+-@BUILD_MACOSX_TRUE@ -release $(LT_RELEASE) \
+ @BUILD_MACOSX_TRUE@ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+
+ @BUILD_MACOSX_FALSE@libphysfs_la_LDFLAGS = \
+-@BUILD_MACOSX_FALSE@ -release $(LT_RELEASE) \
+ @BUILD_MACOSX_FALSE@ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+
+