diff --git a/CHANGELOG b/CHANGELOG index 65662e4..3b6a210 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,7 +6,7 @@ Cleaned up whitespace/formatting in pocketpc.c. Updated PocketPC code to expect UTF-8 strings from the higher level. Changed PHYSFS_SUPPORTS_LZMA to PHYSFS_SUPPORTS_7Z. Killed some #ifdefs - in physfs.c. + in physfs.c. Moved to CMake...so long, autotools! 11052006 - More 7zip archiver work (thanks, Dennis!). Initial Unicode work. Minor BeOS realpath tweak. 09272006 - Reworked 7zip archiver (thanks, Dennis!). diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..28a23a1 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,296 @@ +# PhysicsFS; a portable, flexible file i/o abstraction. +# Copyright (C) 2007 Ryan C. Gordon. +# +# Please see the file LICENSE in the source's root directory. + +PROJECT(PhysicsFS) +SET(PHYSFS_VERSION 1.1.2) + +# I hate that they define "WIN32" ... we're about to move to Win64...I hope! +IF(WIN32 AND NOT WINDOWS) + SET(WINDOWS TRUE) +ENDIF(WIN32 AND NOT WINDOWS) + +# Bleh, let's do it for "APPLE" too. +IF(APPLE AND NOT MACOSX) + SET(MACOSX TRUE) +ENDIF(APPLE AND NOT MACOSX) + +INCLUDE(CheckIncludeFile) +INCLUDE(CheckLibraryExists) +INCLUDE(CheckCSourceCompiles) + +INCLUDE_DIRECTORIES(.) +#INCLUDE_DIRECTORIES(platform) +#INCLUDE_DIRECTORIES(archivers) + +# Fallback to older Mac OS X on PowerPC to support a wider range of systems... +IF(MACOSX) + IF(CMAKE_OSX_ARCHITECTURES MATCHES ppc) + ADD_DEFINITIONS(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -fno-common) + SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} "-mmacosx-version-min=10.2 -framework Carbon -framework IOKit") + ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES ppc) +ENDIF(MACOSX) + +# Add some gcc-specific command lines. +IF(CMAKE_COMPILER_IS_GNUCC) + # Always build with debug symbols...you can strip it later. + ADD_DEFINITIONS(-g -pipe -Wall -Werror -fsigned-char) + + CHECK_C_SOURCE_COMPILES(" + #if ((defined(__GNUC__)) && (__GNUC__ >= 4)) + int main(int argc, char **argv) { int is_gcc4 = 1; return 0; } + #else + #error This is not gcc4. + #endif + " PHYSFS_IS_GCC4) + + IF(PHYSFS_IS_GCC4) + ADD_DEFINITIONS(-fvisibility=hidden) + ENDIF(PHYSFS_IS_GCC4) +ENDIF(CMAKE_COMPILER_IS_GNUCC) + + +# Basic chunks of source code ... + +SET(ZLIB_SRCS + zlib123/adler32.c + zlib123/compress.c + zlib123/crc32.c + zlib123/deflate.c + zlib123/gzio.c + zlib123/infback.c + zlib123/inffast.c + zlib123/inflate.c + zlib123/inftrees.c + zlib123/trees.c + zlib123/uncompr.c + zlib123/zutil.c +) + +SET(LZMA_SRCS + lzma/7zBuffer.c + lzma/7zCrc.c + lzma/7zDecode.c + lzma/7zExtract.c + lzma/7zHeader.c + lzma/7zIn.c + lzma/7zItem.c + lzma/7zMethodID.c + lzma/LzmaDecode.c + lzma/LzmaStateDecode.c +) + +SET(PHYSFS_SRCS + physfs.c + physfs_byteorder.c + physfs_unicode.c + archivers/dir.c +) + + +# platform layers ... + +IF(UNIX) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} platform/posix.c) + IF(BEOS) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} platform/beos.cpp) + SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE) + ELSE(BEOS) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} platform/unix.c) + # !!! FIXME + # AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek]) + CHECK_INCLUDE_FILE(sys/ucred.h HAVE_UCRED_H) + IF(HAVE_UCRED_H) + ADD_DEFINITIONS(-DPHYSFS_HAVE_SYS_UCRED_H=1) + SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE) + ENDIF(HAVE_UCRED_H) + + CHECK_INCLUDE_FILE(mntent.h HAVE_MNTENT_H) + IF(HAVE_MNTENT_H) + ADD_DEFINITIONS(-DPHYSFS_HAVE_MNTENT_H=1) + SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE) + ENDIF(HAVE_MNTENT_H) + ENDIF(BEOS) + + CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H) + IF(HAVE_PTHREAD_H) + SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE) + ELSE(HAVE_PTHREAD_H) + ADD_DEFINITIONS(-DPHYSFS_NO_PTHREADS_SUPPORT=1) + ENDIF(HAVE_PTHREAD_H) +ENDIF(UNIX) + +IF(WINDOWS) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} platform/windows.c) + SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE) + SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE) + # !!! FIXME: platform/pocketpc.c ... ? +ENDIF(WINDOWS) + +IF(NOT PHYSFS_HAVE_CDROM_SUPPORT) + ADD_DEFINITIONS(-DPHYSFS_NO_CDROM_SUPPORT=1) + MESSAGE(WARNING " ***") + MESSAGE(WARNING " *** There is no CD-ROM support in this build!") + MESSAGE(WARNING " *** PhysicsFS will just pretend there are no discs.") + MESSAGE(WARNING " *** This may be fine, depending on how PhysicsFS is used,") + MESSAGE(WARNING " *** but is this what you REALLY wanted?") + MESSAGE(WARNING " *** (Maybe fix CMakeLists.txt, or write a platform driver?)") + MESSAGE(WARNING " ***") +ENDIF(NOT PHYSFS_HAVE_CDROM_SUPPORT) + +IF(PHYSFS_HAVE_THREAD_SUPPORT) + ADD_DEFINITIONS(-D_REENTRANT -D_THREAD_SAFE) +ELSE(PHYSFS_HAVE_THREAD_SUPPORT) + MESSAGE(WARNING " ***") + MESSAGE(WARNING " *** There is no thread support in this build!") + MESSAGE(WARNING " *** PhysicsFS will NOT be reentrant!") + MESSAGE(WARNING " *** This may be fine, depending on how PhysicsFS is used,") + MESSAGE(WARNING " *** but is this what you REALLY wanted?") + MESSAGE(WARNING " *** (Maybe fix CMakeLists.txt, or write a platform driver?)") + MESSAGE(WARNING " ***") +ENDIF(PHYSFS_HAVE_THREAD_SUPPORT) + +# Archivers ... + +OPTION(PHYSFS_ARCHIVE_ZIP "Enable ZIP support" TRUE) +IF(PHYSFS_ARCHIVE_ZIP) + ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_ZIP=1) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/zip.c) + SET(PHYSFS_NEED_ZLIB TRUE) +ENDIF(PHYSFS_ARCHIVE_ZIP) + +OPTION(PHYSFS_ARCHIVE_7Z "Enable 7zip support" TRUE) +IF(PHYSFS_ARCHIVE_7Z) + ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_7Z=1) + # !!! FIXME: rename to 7z.c? + SET(PHYSFS_SRCS ${PHYSFS_SRCS} ${LZMA_SRCS} archivers/lzma.c) + INCLUDE_DIRECTORIES(lzma) + ADD_DEFINITIONS(-D_LZMA_IN_CB=1) + ADD_DEFINITIONS(-D_LZMA_PROB32=1) + ADD_DEFINITIONS(-D_LZMA_SYSTEM_SIZE_T=1) + ADD_DEFINITIONS(-D_SZ_ONE_DIRECTORY=1) +ENDIF(PHYSFS_ARCHIVE_7Z) + +OPTION(PHYSFS_ARCHIVE_GRP "Enable Build Engine GRP support" TRUE) +IF(PHYSFS_ARCHIVE_GRP) + ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_GRP=1) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/grp.c) +ENDIF(PHYSFS_ARCHIVE_GRP) + +OPTION(PHYSFS_ARCHIVE_WAD "Enable Doom WAD support" TRUE) +IF(PHYSFS_ARCHIVE_WAD) + ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_WAD=1) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/wad.c) +ENDIF(PHYSFS_ARCHIVE_WAD) + +OPTION(PHYSFS_ARCHIVE_HOG "Enable Descent I/II HOG support" TRUE) +IF(PHYSFS_ARCHIVE_HOG) + ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_HOG=1) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/hog.c) +ENDIF(PHYSFS_ARCHIVE_HOG) + +OPTION(PHYSFS_ARCHIVE_MVL "Enable Descent I/II MVL support" TRUE) +IF(PHYSFS_ARCHIVE_MVL) + ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_MVL=1) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/mvl.c) +ENDIF(PHYSFS_ARCHIVE_MVL) + +OPTION(PHYSFS_ARCHIVE_QPAK "Enable Quake I/II QPAK support" TRUE) +IF(PHYSFS_ARCHIVE_QPAK) + ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_QPAK=1) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/qpak.c) +ENDIF(PHYSFS_ARCHIVE_QPAK) + +OPTION(PHYSFS_ARCHIVE_MIX "Enable Westwood MIX support" FALSE) +IF(PHYSFS_ARCHIVE_MIX) + ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_MIX=1) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/mix.c) +ENDIF(PHYSFS_ARCHIVE_MIX) + + +# See if some archiver required zlib, and see about using system version. + +IF(PHYSFS_NEED_ZLIB) + CHECK_INCLUDE_FILE(zlib.h HAVE_ZLIB_H) + IF(HAVE_ZLIB_H) + CHECK_LIBRARY_EXISTS("z" "inflate" "" HAVE_LIBZ) + IF(HAVE_LIBZ) + SET(HAVE_SYSTEM_ZLIB TRUE) + ENDIF(HAVE_LIBZ) + ENDIF(HAVE_ZLIB_H) + + IF(HAVE_SYSTEM_ZLIB) + OPTION(PHYSFS_INTERNAL_ZLIB "Link own zlib instead of system library" FALSE) + ELSE(HAVE_SYSTEM_ZLIB) + SET(PHYSFS_INTERNAL_ZLIB TRUE) + ENDIF(HAVE_SYSTEM_ZLIB) + + IF(PHYSFS_INTERNAL_ZLIB) + INCLUDE_DIRECTORIES(zlib123) + ADD_DEFINITIONS(-DZ_PREFIX=1) + SET(PHYSFS_SRCS ${PHYSFS_SRCS} ${ZLIB_SRCS}) + ELSE(PHYSFS_INTERNAL_ZLIB) + SET(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} z) + ENDIF(PHYSFS_INTERNAL_ZLIB) +ENDIF(PHYSFS_NEED_ZLIB) + + + +ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS}) +TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS}) + +OPTION(PHYSFS_BUILD_TEST "Build test program." TRUE) +MARK_AS_ADVANCED(PHYSFS_BUILD_TEST) +IF(PHYSFS_BUILD_TEST) + CHECK_INCLUDE_FILE(readline/readline.h HAVE_READLINE_H) + CHECK_INCLUDE_FILE(readline/history.h HAVE_HISTORY_H) + IF(HAVE_READLINE_H AND HAVE_HISTORY_H) + SET(CMAKE_REQUIRED_LIBRARIES curses) + CHECK_LIBRARY_EXISTS("readline" "readline" "" HAVE_LIBREADLINE) + CHECK_LIBRARY_EXISTS("readline" "history" "" HAVE_LIBHISTORY) + IF(HAVE_LIBREADLINE AND HAVE_LIBHISTORY) + SET(HAVE_SYSTEM_READLINE TRUE) + SET(TEST_PHYSFS_LIBS ${TEST_PHYSFS_LIBS} " " readline curses) + ADD_DEFINITIONS(-DPHYSFS_HAVE_READLINE=1) + ENDIF(HAVE_LIBREADLINE AND HAVE_LIBHISTORY) + ENDIF(HAVE_READLINE_H AND HAVE_HISTORY_H) + ADD_EXECUTABLE(test_physfs test/test_physfs.c) + TARGET_LINK_LIBRARIES(test_physfs physfs ${TEST_PHYSFS_LIBS} ${OTHER_LDFLAGS}) +ENDIF(PHYSFS_BUILD_TEST) + +FIND_PACKAGE(Doxygen) +IF(DOXYGEN_FOUND) + ADD_CUSTOM_TARGET(docs ${DOXYGEN_EXECUTABLE} COMMENT "Building documentation") +ELSE(DOXYGEN_FOUND) + MESSAGE(STATUS "Doxygen not found. You won't be able to build documentation.") +ENDIF(DOXYGEN_FOUND) + + +MACRO(MESSAGE_BOOL_OPTION _NAME _VALUE) + IF(${_VALUE}) + MESSAGE(STATUS " ${_NAME}: enabled") + ELSE(${_VALUE}) + MESSAGE(STATUS " ${_NAME}: disabled") + ENDIF(${_VALUE}) +ENDMACRO(MESSAGE_BOOL_OPTION) + +MESSAGE(STATUS "PhysicsFS will build with the following options:") +MESSAGE_BOOL_OPTION("ZIP support" PHYSFS_ARCHIVE_ZIP) +MESSAGE_BOOL_OPTION("7zip support" PHYSFS_ARCHIVE_7Z) +MESSAGE_BOOL_OPTION("GRP support" PHYSFS_ARCHIVE_GRP) +MESSAGE_BOOL_OPTION("WAD support" PHYSFS_ARCHIVE_WAD) +MESSAGE_BOOL_OPTION("HOG support" PHYSFS_ARCHIVE_HOG) +MESSAGE_BOOL_OPTION("MVL support" PHYSFS_ARCHIVE_MVL) +MESSAGE_BOOL_OPTION("QPAK support" PHYSFS_ARCHIVE_QPAK) +MESSAGE_BOOL_OPTION("MIX support" PHYSFS_ARCHIVE_MIX) +MESSAGE_BOOL_OPTION("CD-ROM drive support" PHYSFS_HAVE_CDROM_SUPPORT) +MESSAGE_BOOL_OPTION("Thread safety" PHYSFS_HAVE_THREAD_SUPPORT) +MESSAGE_BOOL_OPTION("Build own zlib" PHYSFS_INTERNAL_ZLIB) +MESSAGE_BOOL_OPTION("Build test program" PHYSFS_BUILD_TEST) +IF(PHYSFS_BUILD_TEST) + MESSAGE_BOOL_OPTION(" Use readline in test program" HAVE_SYSTEM_READLINE) +ENDIF(PHYSFS_BUILD_TEST) + +# end of CMakeLists.txt ... + diff --git a/Makefile.am.newautomake b/Makefile.am.newautomake deleted file mode 100644 index 7121ddd..0000000 --- a/Makefile.am.newautomake +++ /dev/null @@ -1,169 +0,0 @@ -lib_LTLIBRARIES = libphysfs.la - -libphysfsincludedir = $(includedir) -libphysfsinclude_HEADERS = \ - physfs.h - -if BUILD_MACOSX - -ZLIB_FILES = zlib123/adler32.c \ - zlib123/compress.c \ - zlib123/crc32.c \ - zlib123/crc32.h \ - zlib123/deflate.c \ - zlib123/deflate.h \ - zlib123/gzio.c \ - zlib123/infback.c \ - zlib123/inffast.c \ - zlib123/inffast.h \ - zlib123/inffixed.h \ - zlib123/inflate.c \ - zlib123/inflate.h \ - zlib123/inftrees.c \ - zlib123/inftrees.h \ - zlib123/trees.c \ - zlib123/trees.h \ - zlib123/uncompr.c \ - zlib123/zconf.h \ - zlib123/zlib.h \ - zlib123/zutil.c \ - zlib123/zutil.h - - -if BUILD_ZLIB - ZLIB_SRC = $(ZLIB_FILES) - ZLIB_INC = -I$(top_srcdir)/zlib123 - ZLIB_EXTRADIST = -else - ZLIB_SRC = - ZLIB_INC = - ZLIB_EXTRADIST = $(ZLIB_FILES) -endif - -libphysfs_la_SOURCES = \ - physfs.c \ - physfs_internal.h \ - physfs_byteorder.c \ - archivers/dir.c \ - archivers/grp.c \ - archivers/wad.c \ - archivers/hog.c \ - archivers/mvl.c \ - archivers/zip.c \ - archivers/qpak.c \ - archivers/mix.c \ - platform/unix.c \ - platform/posix.c \ - $(ZLIB_SRC) - -libphysfs_la_INCLUDES = $(ZLIB_INC) - -libphysfs_la_LDFLAGS = \ - -release $(LT_RELEASE) \ - -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) - - -if BUILD_TEST_PHYSFS -bin_PROGRAMS = test_physfs -test_physfs_INCLUDES = -I$(top_srcdir) -test_physfs_LDADD = $(top_srcdir)/libphysfs.la -test_physfs_SOURCES = test/test_physfs.c -TEST_EXTRADIST = -else -TEST_EXTRADIST = test/test_physfs.c -endif - - -EXTRA_DIST = \ - CREDITS \ - LICENSE \ - CHANGELOG \ - INSTALL \ - TODO \ - Doxyfile \ - CWProjects.sit \ - physfs.spec \ - physfs.dsp \ - test_physfs.dsp \ - physfs_static.dsp \ - physfs.vcproj \ - test_physfs.vcproj \ - platform/skeleton.c \ - platform/macclassic.c \ - platform/win32.c \ - platform/beos.cpp \ - platform/os2.c \ - extras/physfsrwops.h \ - extras/physfsrwops.c \ - extras/physfshttpd.c \ - Makefile.am.oldautomake \ - Makefile.am.newautomake \ - zlib_license_change.txt \ - makeos2.cmd \ - PBProjects \ - $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST) - -else - -SUBDIRS = platform archivers zlib123 lzma . test extras - -libphysfs_la_SOURCES = \ - physfs.c \ - physfs_internal.h \ - physfs_unicode.c \ - physfs_byteorder.c - -if BUILD_ZLIB -ZLIB_LIB = zlib123/libz.la -else -ZLIB_LIB = -endif - -if BUILD_LZMA -LZMA_LIB = lzma/liblzma.la -else -LZMA_LIB = -endif - -libphysfs_la_LDFLAGS = \ - -release $(LT_RELEASE) \ - -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -libphysfs_la_LIBADD = \ - archivers/libarchivers.la \ - platform/libplatform.la \ - $(ZLIB_LIB) \ - $(LZMA_LIB) - -EXTRA_DIST = \ - CREDITS \ - LICENSE \ - CHANGELOG \ - INSTALL \ - TODO \ - Doxyfile \ - PBProjects \ - CWProjects.sit \ - physfsMPW.make \ - physfs.spec.in \ - physfs.spec \ - physfs.dsp \ - test_physfs.dsp \ - physfs_static.dsp \ - physfs.vcproj \ - test_physfs.vcproj \ - zlib_license_change.txt \ - makeos2.cmd - - -endif - - -dist-hook: - perl -w -pi -e 'chomp; $$_ .= "\r\n";' $(distdir)/*.dsp $(distdir)/*.vcproj - mkdir $(distdir)/docs - echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README - echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README - echo >> $(distdir)/docs/README - rm -rf `find $(distdir) -name "CVS" -type d` - rm -rf `find $(distdir) -name ".svn" -type d` - diff --git a/Makefile.am.oldautomake b/Makefile.am.oldautomake deleted file mode 100644 index 5bdcaf7..0000000 --- a/Makefile.am.oldautomake +++ /dev/null @@ -1,56 +0,0 @@ -lib_LTLIBRARIES = libphysfs.la - -SUBDIRS = platform archivers zlib123 . test extras - -libphysfsincludedir = $(includedir) -libphysfsinclude_HEADERS = \ - physfs.h - -libphysfs_la_SOURCES = \ - physfs.c \ - physfs_internal.h \ - physfs_unicode.c \ - physfs_byteorder.c - -if BUILD_ZLIB -ZLIB_LIB = zlib123/libz.la -else -ZLIB_LIB = -endif - -libphysfs_la_LDFLAGS = \ - -release $(LT_RELEASE) \ - -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -libphysfs_la_LIBADD = \ - archivers/libarchivers.la \ - platform/libplatform.la \ - $(ZLIB_LIB) - -EXTRA_DIST = \ - CREDITS \ - LICENSE \ - CHANGELOG \ - INSTALL \ - TODO \ - Doxyfile \ - PBProjects \ - CWProjects.sit \ - physfsMPW.make \ - physfs.spec.in \ - physfs.spec \ - physfs.dsp \ - physfs_static.dsp \ - test_physfs.dsp \ - physfs.vcproj \ - test_physfs.vcproj \ - zlib_license_change.txt \ - makeos2.cmd - -dist-hook: - perl -w -pi -e 'chomp; $$_ .= "\r\n";' $(distdir)/*.dsp $(distdir)/*.vcproj - mkdir $(distdir)/docs - echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README - echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README - echo >> $(distdir)/docs/README - rm -rf `find $(distdir) -name "CVS" -type d` - rm -rf `find $(distdir) -name ".svn" -type d` diff --git a/PBProjects/English.lproj/InfoPlist.strings b/PBProjects/English.lproj/InfoPlist.strings deleted file mode 100644 index 12ceb2f..0000000 Binary files a/PBProjects/English.lproj/InfoPlist.strings and /dev/null differ diff --git a/PBProjects/README.txt b/PBProjects/README.txt deleted file mode 100644 index c5c784f..0000000 --- a/PBProjects/README.txt +++ /dev/null @@ -1,25 +0,0 @@ -This is an unofficial OS X Project Builder environment to build a physfs Framework. - - -Built with: -physfs 0.1.9 -Project Builder 2.0.1 -OS X (10.2 Jaguar) - -This project was created by brainlessly mimicking the SDL (Simple Direct Media -Layer) Project Builder projects. The scripts were also shamelessly taken from -SDL as well. There may be errors. Use at your own risk! - -This project creates 2 installer packages: - -- A physfs framework for development (for people who wish to link to physfs) - -- A physfs framework for users (for users who run programs that used the above -package - -This project also builds static libraries for physfs (to build physfs and physfsc) but -they are not installed anywhere. If you wish to use them, you will need to -copy them out of the build directory. - -Eric Wing - diff --git a/PBProjects/exports/Makefile b/PBProjects/exports/Makefile deleted file mode 100644 index c489a63..0000000 --- a/PBProjects/exports/Makefile +++ /dev/null @@ -1,12 +0,0 @@ - -EXPORTS = SDL_sound.x -HEADERS = \ - ../../SDL_sound.h - -all: $(EXPORTS) - -$(EXPORTS): $(HEADERS) - perl gendef.pl $(HEADERS) >$@ || rm $@ - -clean: - rm -f $(EXPORTS) diff --git a/PBProjects/exports/gendef.pl b/PBProjects/exports/gendef.pl deleted file mode 100644 index 5feb414..0000000 --- a/PBProjects/exports/gendef.pl +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/perl -# -# Program to take a set of header files and generate DLL export definitions - -while ( ($file = shift(@ARGV)) ) { - if ( ! defined(open(FILE, $file)) ) { - warn "Couldn't open $file: $!\n"; - next; - } - $printed_header = 0; - $file =~ s,.*/,,; - while () { - if ( /^__EXPORT__.*\s\**([^\s\(]+)\(/ ) { - print "\t_$1\n"; - } elsif ( /^__EXPORT__.*\s\**([^\s\(]+)$/ ) { - print "\t_$1\n"; - } - } - close(FILE); -} diff --git a/PBProjects/exports/physfs.exp b/PBProjects/exports/physfs.exp deleted file mode 100644 index d069346..0000000 --- a/PBProjects/exports/physfs.exp +++ /dev/null @@ -1,73 +0,0 @@ - _PHYSFS_getLinkedVersion - _PHYSFS_init - _PHYSFS_deinit - _PHYSFS_supportedArchiveTypes - _PHYSFS_freeList - _PHYSFS_getLastError - _PHYSFS_getDirSeparator - _PHYSFS_permitSymbolicLinks - _PHYSFS_getCdRomDirs - _PHYSFS_getBaseDir - _PHYSFS_getUserDir - _PHYSFS_getWriteDir - _PHYSFS_setWriteDir - _PHYSFS_addToSearchPath - _PHYSFS_removeFromSearchPath - _PHYSFS_getSearchPath - _PHYSFS_setSaneConfig - _PHYSFS_mkdir - _PHYSFS_delete - _PHYSFS_getRealDir - _PHYSFS_enumerateFiles - _PHYSFS_exists - _PHYSFS_isDirectory - _PHYSFS_isSymbolicLink - _PHYSFS_getLastModTime - _PHYSFS_openWrite - _PHYSFS_openAppend - _PHYSFS_openRead - _PHYSFS_close - _PHYSFS_read - _PHYSFS_write - _PHYSFS_eof - _PHYSFS_tell - _PHYSFS_seek - _PHYSFS_fileLength - _PHYSFS_setBuffer - _PHYSFS_flush - _PHYSFS_swapSLE16 - _PHYSFS_swapULE16 - _PHYSFS_swapSLE32 - _PHYSFS_swapULE32 - _PHYSFS_swapSLE64 - _PHYSFS_swapULE64 - _PHYSFS_swapSBE16 - _PHYSFS_swapUBE16 - _PHYSFS_swapSBE32 - _PHYSFS_swapUBE32 - _PHYSFS_swapSBE64 - _PHYSFS_swapUBE64 - _PHYSFS_readSLE16 - _PHYSFS_readULE16 - _PHYSFS_readSBE16 - _PHYSFS_readUBE16 - _PHYSFS_readSLE32 - _PHYSFS_readULE32 - _PHYSFS_readSBE32 - _PHYSFS_readUBE32 - _PHYSFS_readSLE64 - _PHYSFS_readULE64 - _PHYSFS_readSBE64 - _PHYSFS_readUBE64 - _PHYSFS_writeSLE16 - _PHYSFS_writeULE16 - _PHYSFS_writeSBE16 - _PHYSFS_writeUBE16 - _PHYSFS_writeSLE32 - _PHYSFS_writeULE32 - _PHYSFS_writeSBE32 - _PHYSFS_writeUBE32 - _PHYSFS_writeSLE64 - _PHYSFS_writeULE64 - _PHYSFS_writeSBE64 - _PHYSFS_writeUBE64 diff --git a/PBProjects/mkpbprojects.csh b/PBProjects/mkpbprojects.csh deleted file mode 100755 index 0d81a51..0000000 --- a/PBProjects/mkpbprojects.csh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/csh - -### -## This script creates "PBProjects.tar.gz" in the parent directory -### - -# remove build products -rm -rf build - -# remove Finder info files -find . -name ".DS_Store" -exec rm "{}" ";" - -# remove user project prefs -find . -name "*.pbxuser" -exec rm "{}" ";" - -# create the archive -(cd .. && gnutar -zcvf PBProjects.tar.gz PBProjects) - - - diff --git a/PBProjects/physfs.pbproj/project.pbxproj b/PBProjects/physfs.pbproj/project.pbxproj deleted file mode 100644 index c2a639a..0000000 --- a/PBProjects/physfs.pbproj/project.pbxproj +++ /dev/null @@ -1,1335 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 38; - objects = { - 014CEA440018CDF011CA2923 = { - buildRules = ( - ); - buildSettings = { - COPY_PHASE_STRIP = NO; - OPTIMIZATION_CFLAGS = "-O0"; - }; - isa = PBXBuildStyle; - name = Development; - }; - 014CEA450018CDF011CA2923 = { - buildRules = ( - ); - buildSettings = { - COPY_PHASE_STRIP = YES; - }; - isa = PBXBuildStyle; - name = Deployment; - }; -//010 -//011 -//012 -//013 -//014 -//030 -//031 -//032 -//033 -//034 - 034768DFFF38A50411DB9C8B = { - children = ( - 034768E0FF38A50411DB9C8B, - F8FDCD0303AEBD5D01A8000A, - F8FDCD0903AEBD7901A8000A, - F8FDCD1003AEBD8901A8000A, - F886735D03B8B31801A8000A, - ); - isa = PBXGroup; - name = Products; - refType = 4; - }; - 034768E0FF38A50411DB9C8B = { - isa = PBXFrameworkReference; - path = physfs.framework; - refType = 3; - }; -//030 -//031 -//032 -//033 -//034 -//080 -//081 -//082 -//083 -//084 - 0867D690FE84028FC02AAC07 = { - buildStyles = ( - 014CEA440018CDF011CA2923, - 014CEA450018CDF011CA2923, - ); - hasScannedForEncodings = 1; - isa = PBXProject; - mainGroup = 0867D691FE84028FC02AAC07; - productRefGroup = 034768DFFF38A50411DB9C8B; - projectDirPath = ""; - targets = ( - 0867D69CFE84028FC02AAC07, - F8FDCD0203AEBD5D01A8000A, - F8FDCD0803AEBD7901A8000A, - F8FDCD0F03AEBD8901A8000A, - F886735C03B8B31801A8000A, - ); - }; - 0867D691FE84028FC02AAC07 = { - children = ( - 089C1666FE841158C02AAC07, - 08FB77AEFE84172EC02AAC07, - 089C1665FE841158C02AAC07, - F8FDCD2103AEBE7B01A8000A, - F886736003B8B34001A8000A, - 034768DFFF38A50411DB9C8B, - ); - isa = PBXGroup; - name = physfs; - refType = 4; - }; - 0867D69CFE84028FC02AAC07 = { - buildPhases = ( - 0867D69DFE84028FC02AAC07, - 0867D69EFE84028FC02AAC07, - 0867D69FFE84028FC02AAC07, - 0867D6A0FE84028FC02AAC07, - 0867D6A2FE84028FC02AAC07, - F8FDCD2203AECAA201A8000A, - ); - buildSettings = { - DEBUGGING_SYMBOLS = NO; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - EXPORTED_SYMBOLS_FILE = exports/physfs.exp; - FRAMEWORK_SEARCH_PATHS = ""; - FRAMEWORK_VERSION = A; - HEADER_SEARCH_PATHS = ""; - INSTALL_PATH = "$(HOME)/Library/Frameworks"; - LIBRARY_SEARCH_PATHS = ""; - OTHER_CFLAGS = "-DPHYSFS_HAVE_SYS_UCRED_H -DZ_PREFIX -DNDEBUG -DPHYSFS_SUPPORTS_ZIP -DPHYSFS_SUPPORTS_GRP -DPHYSFS_SUPPORTS_QPAK -DPHYSFS_SUPPORTS_HOG -DPHYSFS_SUPPORTS_MVL -DPHYSFS_SUPPORTS_WAD"; - OTHER_LDFLAGS = "-seg1addr 0x30A00000 -framework IOKit -framework Carbon"; - PRODUCT_NAME = physfs; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"; - WRAPPER_EXTENSION = framework; - }; - dependencies = ( - ); - isa = PBXFrameworkTarget; - name = Framework; - productInstallPath = "$(HOME)/Library/Frameworks"; - productName = physfs; - productReference = 034768E0FF38A50411DB9C8B; - productSettingsXML = " - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - physfs - CFBundleGetInfoString - http://www.icculus.org/physfs - CFBundleIconFile - - CFBundleIdentifier - - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - PhysFS - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0.0 - NSPrincipalClass - - - -"; - }; - 0867D69DFE84028FC02AAC07 = { - buildActionMask = 2147483647; - files = ( - F8FDCE0A03AEDD6801A8000A, - F8FDCE6B03AEDE1F01A8000A, - F8FDCE8A03AEDE1F01A8000A, - F8FDCE9003AEDE1F01A8000A, - F8FDCE9103AEDE1F01A8000A, - F8FDCE9403AEDE1F01A8000A, - F8FDCE9B03AEDE1F01A8000A, - F8FDCE9D03AEDE1F01A8000A, - F8FDCE9E03AEDE1F01A8000A, - F8FDCEA003AEDE1F01A8000A, - ); - isa = PBXHeadersBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - 0867D69EFE84028FC02AAC07 = { - buildActionMask = 2147483647; - files = ( - ); - isa = PBXResourcesBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - 0867D69FFE84028FC02AAC07 = { - buildActionMask = 2147483647; - files = ( - F8FDCE6203AEDE1F01A8000A, - F8FDCE6303AEDE1F01A8000A, - F8FDCE6903AEDE1F01A8000A, - F8FDCE6A03AEDE1F01A8000A, - F8FDCE6C03AEDE1F01A8000A, - F8FDCE7503AEDE1F01A8000A, - F8FDCE8603AEDE1F01A8000A, - F8FDCE8703AEDE1F01A8000A, - F8FDCE8803AEDE1F01A8000A, - F8FDCE8903AEDE1F01A8000A, - F8FDCE8F03AEDE1F01A8000A, - F8FDCE9203AEDE1F01A8000A, - F8FDCE9303AEDE1F01A8000A, - F8FDCE9A03AEDE1F01A8000A, - F8FDCE9C03AEDE1F01A8000A, - F8FDCE9F03AEDE1F01A8000A, - F8FDCEC703AEDE3A01A8000A, - F886735503B8AF5501A8000A, - 56E7B5B005A6A75B00A801AA, - 56E7B5B105A6A75B00A801AA, - 56E7B5B205A6A75B00A801AA, - ); - isa = PBXSourcesBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - 0867D6A0FE84028FC02AAC07 = { - buildActionMask = 2147483647; - files = ( - ); - isa = PBXFrameworksBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - 0867D6A2FE84028FC02AAC07 = { - buildActionMask = 2147483647; - files = ( - ); - isa = PBXRezBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - 089C1665FE841158C02AAC07 = { - children = ( - F8FDCE0803AEDD6801A8000A, - ); - isa = PBXGroup; - name = "Public Headers"; - refType = 4; - }; - 089C1666FE841158C02AAC07 = { - children = ( - 089C1667FE841158C02AAC07, - ); - isa = PBXVariantGroup; - name = InfoPlist.strings; - path = ""; - refType = 4; - }; - 089C1667FE841158C02AAC07 = { - fileEncoding = 10; - isa = PBXFileReference; - name = English; - path = English.lproj/InfoPlist.strings; - refType = 4; - }; - 08FB77AEFE84172EC02AAC07 = { - children = ( - F8FDCE0B03AEDDC901A8000A, - F8FDCE0F03AEDDC901A8000A, - F8FDCE1003AEDDC901A8000A, - F8FDCE1103AEDDC901A8000A, - F8FDCE1203AEDDC901A8000A, - ); - isa = PBXGroup; - name = "pkg-support"; - refType = 4; - }; -//080 -//081 -//082 -//083 -//084 -//560 -//561 -//562 -//563 -//564 - 56E7B5AD05A6A75B00A801AA = { - fileEncoding = 30; - isa = PBXFileReference; - path = hog.c; - refType = 4; - }; - 56E7B5AE05A6A75B00A801AA = { - fileEncoding = 30; - isa = PBXFileReference; - path = mvl.c; - refType = 4; - }; - 56E7B5AF05A6A75B00A801AA = { - fileEncoding = 30; - isa = PBXFileReference; - path = wad.c; - refType = 4; - }; - 56E7B5B005A6A75B00A801AA = { - fileRef = 56E7B5AD05A6A75B00A801AA; - isa = PBXBuildFile; - settings = { - }; - }; - 56E7B5B105A6A75B00A801AA = { - fileRef = 56E7B5AE05A6A75B00A801AA; - isa = PBXBuildFile; - settings = { - }; - }; - 56E7B5B205A6A75B00A801AA = { - fileRef = 56E7B5AF05A6A75B00A801AA; - isa = PBXBuildFile; - settings = { - }; - }; - 56E7B5B305A6A75B00A801AA = { - fileRef = 56E7B5AD05A6A75B00A801AA; - isa = PBXBuildFile; - settings = { - }; - }; - 56E7B5B405A6A75B00A801AA = { - fileRef = 56E7B5AE05A6A75B00A801AA; - isa = PBXBuildFile; - settings = { - }; - }; - 56E7B5B505A6A75B00A801AA = { - fileRef = 56E7B5AF05A6A75B00A801AA; - isa = PBXBuildFile; - settings = { - }; - }; -//560 -//561 -//562 -//563 -//564 -//F80 -//F81 -//F82 -//F83 -//F84 - F886735403B8AF5501A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - name = qpak.c; - path = ../archivers/qpak.c; - refType = 2; - }; - F886735503B8AF5501A8000A = { - fileRef = F886735403B8AF5501A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F886735603B8AF5501A8000A = { - fileRef = F886735403B8AF5501A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F886735703B8B31801A8000A = { - buildActionMask = 2147483647; - files = ( - ); - isa = PBXHeadersBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - F886735803B8B31801A8000A = { - buildActionMask = 2147483647; - files = ( - ); - isa = PBXResourcesBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - F886735903B8B31801A8000A = { - buildActionMask = 2147483647; - files = ( - F886736403B8B37C01A8000A, - ); - isa = PBXSourcesBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - F886735A03B8B31801A8000A = { - buildActionMask = 2147483647; - files = ( - F886736603B8B43A01A8000A, - ); - isa = PBXFrameworksBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - F886735B03B8B31801A8000A = { - buildActionMask = 2147483647; - files = ( - ); - isa = PBXRezBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - F886735C03B8B31801A8000A = { - buildPhases = ( - F886735703B8B31801A8000A, - F886735803B8B31801A8000A, - F886735903B8B31801A8000A, - F886735A03B8B31801A8000A, - F886735B03B8B31801A8000A, - ); - buildSettings = { - OTHER_CFLAGS = ""; - OTHER_REZFLAGS = ""; - PRODUCT_NAME = test_physfs_static; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"; - WRAPPER_EXTENSION = app; - }; - dependencies = ( - F886735F03B8B32101A8000A, - ); - isa = PBXApplicationTarget; - name = test_physfs_static; - productInstallPath = "$(USER_APPS_DIR)"; - productName = test_physfs_static; - productReference = F886735D03B8B31801A8000A; - productSettingsXML = " - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - - CFBundleGetInfoString - - CFBundleIconFile - - CFBundleIdentifier - - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - - CFBundlePackageType - APPL - CFBundleShortVersionString - - CFBundleSignature - ???? - CFBundleVersion - 0.0.1d1 - - -"; - }; - F886735D03B8B31801A8000A = { - isa = PBXApplicationReference; - path = test_physfs_static.app; - refType = 3; - }; - F886735F03B8B32101A8000A = { - isa = PBXTargetDependency; - target = F8FDCD0203AEBD5D01A8000A; - }; - F886736003B8B34001A8000A = { - children = ( - F886736303B8B37C01A8000A, - ); - isa = PBXGroup; - name = "Test Program"; - refType = 4; - }; - F886736303B8B37C01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - name = test_physfs.c; - path = ../test/test_physfs.c; - refType = 2; - }; - F886736403B8B37C01A8000A = { - fileRef = F886736303B8B37C01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F886736603B8B43A01A8000A = { - fileRef = F8FDCD0303AEBD5D01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCCFE03AEBD5D01A8000A = { - buildActionMask = 2147483647; - files = ( - F8FDCE0903AEDD6801A8000A, - F8FDCEA703AEDE1F01A8000A, - F8FDCEB303AEDE1F01A8000A, - F8FDCEB903AEDE1F01A8000A, - F8FDCEBA03AEDE1F01A8000A, - F8FDCEBD03AEDE1F01A8000A, - F8FDCEC103AEDE1F01A8000A, - F8FDCEC303AEDE1F01A8000A, - F8FDCEC403AEDE1F01A8000A, - F8FDCEC603AEDE1F01A8000A, - ); - isa = PBXHeadersBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - F8FDCCFF03AEBD5D01A8000A = { - buildActionMask = 2147483647; - files = ( - F8FDCEA103AEDE1F01A8000A, - F8FDCEA203AEDE1F01A8000A, - F8FDCEA503AEDE1F01A8000A, - F8FDCEA603AEDE1F01A8000A, - F8FDCEA803AEDE1F01A8000A, - F8FDCEAD03AEDE1F01A8000A, - F8FDCEAF03AEDE1F01A8000A, - F8FDCEB003AEDE1F01A8000A, - F8FDCEB103AEDE1F01A8000A, - F8FDCEB203AEDE1F01A8000A, - F8FDCEB803AEDE1F01A8000A, - F8FDCEBB03AEDE1F01A8000A, - F8FDCEBC03AEDE1F01A8000A, - F8FDCEC003AEDE1F01A8000A, - F8FDCEC203AEDE1F01A8000A, - F8FDCEC503AEDE1F01A8000A, - F8FDCECA03AF0B0001A8000A, - F886735603B8AF5501A8000A, - 56E7B5B305A6A75B00A801AA, - 56E7B5B405A6A75B00A801AA, - 56E7B5B505A6A75B00A801AA, - ); - isa = PBXSourcesBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - F8FDCD0003AEBD5D01A8000A = { - buildActionMask = 2147483647; - files = ( - ); - isa = PBXFrameworksBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - F8FDCD0103AEBD5D01A8000A = { - buildActionMask = 2147483647; - files = ( - ); - isa = PBXRezBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - F8FDCD0203AEBD5D01A8000A = { - buildPhases = ( - F8FDCCFE03AEBD5D01A8000A, - F8FDCCFF03AEBD5D01A8000A, - F8FDCD0003AEBD5D01A8000A, - F8FDCD0103AEBD5D01A8000A, - ); - buildSettings = { - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - LIBRARY_STYLE = STATIC; - OTHER_CFLAGS = "-DPHYSFS_HAVE_SYS_UCRED_H -DNDEBUG -DPHYSFS_SUPPORTS_ZIP -DPHYSFS_SUPPORTS_GRP -DPHYSFS_SUPPORTS_QPAK"; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOL_FLAGS = ""; - OTHER_REZFLAGS = ""; - PRODUCT_NAME = libphysfs.a; - REZ_EXECUTABLE = YES; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"; - }; - dependencies = ( - ); - isa = PBXLibraryTarget; - name = "Static Library"; - productInstallPath = /usr/local/lib; - productName = libphysfs.a; - productReference = F8FDCD0303AEBD5D01A8000A; - }; - F8FDCD0303AEBD5D01A8000A = { - isa = PBXLibraryReference; - path = libphysfs.a; - refType = 3; - }; - F8FDCD0803AEBD7901A8000A = { - buildPhases = ( - F8FDCDDA03AECC6401A8000A, - ); - buildSettings = { - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ""; - OTHER_REZFLAGS = ""; - PRODUCT_NAME = "Standard Package"; - REZ_EXECUTABLE = YES; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"; - }; - dependencies = ( - F8FDCF6303AF110C01A8000A, - ); - isa = PBXToolTarget; - name = "Standard Package"; - productInstallPath = /usr/local/bin; - productName = "Standard Package"; - productReference = F8FDCD0903AEBD7901A8000A; - }; - F8FDCD0903AEBD7901A8000A = { - isa = PBXExecutableFileReference; - path = "Standard Package"; - refType = 3; - }; - F8FDCD0F03AEBD8901A8000A = { - buildPhases = ( - F8FDCDDB03AECC7A01A8000A, - ); - buildSettings = { - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ""; - OTHER_REZFLAGS = ""; - PRODUCT_NAME = "Devel Package"; - REZ_EXECUTABLE = YES; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"; - }; - dependencies = ( - F8FDCF6403AF111101A8000A, - ); - isa = PBXToolTarget; - name = "Devel Package"; - productInstallPath = /usr/local/bin; - productName = "Devel Package"; - productReference = F8FDCD1003AEBD8901A8000A; - }; - F8FDCD1003AEBD8901A8000A = { - isa = PBXExecutableFileReference; - path = "Devel Package"; - refType = 3; - }; - F8FDCD2103AEBE7B01A8000A = { - children = ( - F8FDCE1503AEDE1F01A8000A, - F8FDCE2303AEDE1F01A8000A, - F8FDCE2403AEDE1F01A8000A, - F8FDCE2503AEDE1F01A8000A, - F8FDCE2603AEDE1F01A8000A, - F8FDCE3403AEDE1F01A8000A, - ); - isa = PBXGroup; - name = "Library Source"; - path = ""; - refType = 4; - }; - F8FDCD2203AECAA201A8000A = { - buildActionMask = 8; - files = ( - ); - generatedFileNames = ( - ); - isa = PBXShellScriptBuildPhase; - neededFileNames = ( - ); - runOnlyForDeploymentPostprocessing = 1; - shellPath = /bin/sh; - shellScript = "# make frameworks directory if it doesn't already exist\nmkdir -p ~/Library/Frameworks\n# delete the old framework\nrm -rf ~/Library/Frameworks/physfs.framework\n# copy framework to its home\n/Developer/Tools/CpMac -r build/physfs.framework ~/Library/Frameworks/physfs.framework\n# precompile header for speedier compiles\n/usr/bin/cc -I $HOME/Library/Frameworks/physfs.framework/Headers -precomp ~/Library/Frameworks/physfs.framework/Headers/physfs.h -o ~/Library/Frameworks/physfs.framework/Headers/physfs.p"; - }; - F8FDCDDA03AECC6401A8000A = { - buildActionMask = 2147483647; - files = ( - ); - generatedFileNames = ( - ); - isa = PBXShellScriptBuildPhase; - neededFileNames = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "exec ./pkg-support/mkpackage.sh \"physfs\" \"standard\""; - }; - F8FDCDDB03AECC7A01A8000A = { - buildActionMask = 2147483647; - files = ( - ); - generatedFileNames = ( - ); - isa = PBXShellScriptBuildPhase; - neededFileNames = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "exec ./pkg-support/mkpackage.sh \"physfs\" \"devel\""; - }; - F8FDCE0803AEDD6801A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - name = physfs.h; - path = ../physfs.h; - refType = 2; - }; - F8FDCE0903AEDD6801A8000A = { - fileRef = F8FDCE0803AEDD6801A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE0A03AEDD6801A8000A = { - fileRef = F8FDCE0803AEDD6801A8000A; - isa = PBXBuildFile; - settings = { - ATTRIBUTES = ( - Public, - ); - }; - }; - F8FDCE0B03AEDDC901A8000A = { - children = ( - F8FDCE0C03AEDDC901A8000A, - F8FDCE0D03AEDDC901A8000A, - F8FDCE0E03AEDDC901A8000A, - ); - isa = PBXGroup; - name = "devel-resources"; - path = "pkg-support/devel-resources"; - refType = 2; - }; - F8FDCE0C03AEDDC901A8000A = { - fileEncoding = 30; - isa = PBXExecutableFileReference; - path = install.sh; - refType = 4; - }; - F8FDCE0D03AEDDC901A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = ReadMe.txt; - refType = 4; - }; - F8FDCE0E03AEDDC901A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = Welcome.txt; - refType = 4; - }; - F8FDCE0F03AEDDC901A8000A = { - fileEncoding = 30; - isa = PBXExecutableFileReference; - name = mkpackage.sh; - path = "pkg-support/mkpackage.sh"; - refType = 2; - }; - F8FDCE1003AEDDC901A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - name = "physfs-devel.info"; - path = "pkg-support/physfs-devel.info"; - refType = 2; - }; - F8FDCE1103AEDDC901A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - name = physfs.info; - path = "pkg-support/physfs.info"; - refType = 2; - }; - F8FDCE1203AEDDC901A8000A = { - children = ( - F8FDCE1303AEDDC901A8000A, - F8FDCE1403AEDDC901A8000A, - ); - isa = PBXGroup; - name = resources; - path = "pkg-support/resources"; - refType = 2; - }; - F8FDCE1303AEDDC901A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = ReadMe.txt; - refType = 4; - }; - F8FDCE1403AEDDC901A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = Welcome.txt; - refType = 4; - }; - F8FDCE1503AEDE1F01A8000A = { - children = ( - F8FDCE1B03AEDE1F01A8000A, - F8FDCE1C03AEDE1F01A8000A, - F8FDCE2203AEDE1F01A8000A, - F886735403B8AF5501A8000A, - 56E7B5AD05A6A75B00A801AA, - 56E7B5AE05A6A75B00A801AA, - 56E7B5AF05A6A75B00A801AA, - ); - isa = PBXGroup; - name = archivers; - path = ../archivers; - refType = 2; - }; - F8FDCE1B03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = dir.c; - refType = 4; - }; - F8FDCE1C03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = grp.c; - refType = 4; - }; - F8FDCE2203AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = zip.c; - refType = 4; - }; - F8FDCE2303AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - name = physfs_byteorder.c; - path = ../physfs_byteorder.c; - refType = 2; - }; - F8FDCE2403AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - name = physfs_internal.h; - path = ../physfs_internal.h; - refType = 2; - }; - F8FDCE2503AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - name = physfs.c; - path = ../physfs.c; - refType = 2; - }; - F8FDCE2603AEDE1F01A8000A = { - children = ( - F8FDCE2B03AEDE1F01A8000A, - F8FDCE2C03AEDE1F01A8000A, - F8FDCE3003AEDE1F01A8000A, - F8FDCE3103AEDE1F01A8000A, - F8FDCE3203AEDE1F01A8000A, - F8FDCE3303AEDE1F01A8000A, - ); - isa = PBXGroup; - name = platform; - path = ../platform; - refType = 2; - }; - F8FDCE2B03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = beos.cpp; - refType = 4; - }; - F8FDCE2C03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = macclassic.c; - refType = 4; - }; - F8FDCE3003AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = posix.c; - refType = 4; - }; - F8FDCE3103AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = skeleton.c; - refType = 4; - }; - F8FDCE3203AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = unix.c; - refType = 4; - }; - F8FDCE3303AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = win32.c; - refType = 4; - }; - F8FDCE3403AEDE1F01A8000A = { - children = ( - F8FDCE4303AEDE1F01A8000A, - F8FDCE4403AEDE1F01A8000A, - F8FDCE4503AEDE1F01A8000A, - F8FDCE4603AEDE1F01A8000A, - F8FDCE4703AEDE1F01A8000A, - F8FDCE4C03AEDE1F01A8000A, - F8FDCE4D03AEDE1F01A8000A, - F8FDCE4E03AEDE1F01A8000A, - F8FDCE4F03AEDE1F01A8000A, - F8FDCE5003AEDE1F01A8000A, - F8FDCE5103AEDE1F01A8000A, - F8FDCE5703AEDE1F01A8000A, - F8FDCE5803AEDE1F01A8000A, - F8FDCE5903AEDE1F01A8000A, - F8FDCE5A03AEDE1F01A8000A, - F8FDCE5B03AEDE1F01A8000A, - F8FDCE5C03AEDE1F01A8000A, - F8FDCE5D03AEDE1F01A8000A, - ); - isa = PBXGroup; - name = zlib123; - path = ../zlib123; - refType = 2; - }; - F8FDCE4303AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = adler32.c; - refType = 4; - }; - F8FDCE4403AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = compress.c; - refType = 4; - }; - F8FDCE4503AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = crc32.c; - refType = 4; - }; - F8FDCE4603AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = deflate.c; - refType = 4; - }; - F8FDCE4703AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = deflate.h; - refType = 4; - }; - F8FDCE4C03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = inffast.c; - refType = 4; - }; - F8FDCE4D03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = inffast.h; - refType = 4; - }; - F8FDCE4E03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = inffixed.h; - refType = 4; - }; - F8FDCE4F03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = inflate.c; - refType = 4; - }; - F8FDCE5003AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = inftrees.c; - refType = 4; - }; - F8FDCE5103AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = inftrees.h; - refType = 4; - }; - F8FDCE5703AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = trees.c; - refType = 4; - }; - F8FDCE5803AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = trees.h; - refType = 4; - }; - F8FDCE5903AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = uncompr.c; - refType = 4; - }; - F8FDCE5A03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = zconf.h; - refType = 4; - }; - F8FDCE5B03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = zlib.h; - refType = 4; - }; - F8FDCE5C03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = zutil.c; - refType = 4; - }; - F8FDCE5D03AEDE1F01A8000A = { - fileEncoding = 30; - isa = PBXFileReference; - path = zutil.h; - refType = 4; - }; - F8FDCE6203AEDE1F01A8000A = { - fileRef = F8FDCE1B03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE6303AEDE1F01A8000A = { - fileRef = F8FDCE1C03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE6903AEDE1F01A8000A = { - fileRef = F8FDCE2203AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE6A03AEDE1F01A8000A = { - fileRef = F8FDCE2303AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE6B03AEDE1F01A8000A = { - fileRef = F8FDCE2403AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE6C03AEDE1F01A8000A = { - fileRef = F8FDCE2503AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE7503AEDE1F01A8000A = { - fileRef = F8FDCE3003AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE8603AEDE1F01A8000A = { - fileRef = F8FDCE4303AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE8703AEDE1F01A8000A = { - fileRef = F8FDCE4403AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE8803AEDE1F01A8000A = { - fileRef = F8FDCE4503AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE8903AEDE1F01A8000A = { - fileRef = F8FDCE4603AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE8A03AEDE1F01A8000A = { - fileRef = F8FDCE4703AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE8F03AEDE1F01A8000A = { - fileRef = F8FDCE4C03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9003AEDE1F01A8000A = { - fileRef = F8FDCE4D03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9103AEDE1F01A8000A = { - fileRef = F8FDCE4E03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9203AEDE1F01A8000A = { - fileRef = F8FDCE4F03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9303AEDE1F01A8000A = { - fileRef = F8FDCE5003AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9403AEDE1F01A8000A = { - fileRef = F8FDCE5103AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9A03AEDE1F01A8000A = { - fileRef = F8FDCE5703AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9B03AEDE1F01A8000A = { - fileRef = F8FDCE5803AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9C03AEDE1F01A8000A = { - fileRef = F8FDCE5903AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9D03AEDE1F01A8000A = { - fileRef = F8FDCE5A03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9E03AEDE1F01A8000A = { - fileRef = F8FDCE5B03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCE9F03AEDE1F01A8000A = { - fileRef = F8FDCE5C03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEA003AEDE1F01A8000A = { - fileRef = F8FDCE5D03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEA103AEDE1F01A8000A = { - fileRef = F8FDCE1B03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEA203AEDE1F01A8000A = { - fileRef = F8FDCE1C03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEA503AEDE1F01A8000A = { - fileRef = F8FDCE2203AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEA603AEDE1F01A8000A = { - fileRef = F8FDCE2303AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEA703AEDE1F01A8000A = { - fileRef = F8FDCE2403AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEA803AEDE1F01A8000A = { - fileRef = F8FDCE2503AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEAD03AEDE1F01A8000A = { - fileRef = F8FDCE3203AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEAF03AEDE1F01A8000A = { - fileRef = F8FDCE4303AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEB003AEDE1F01A8000A = { - fileRef = F8FDCE4403AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEB103AEDE1F01A8000A = { - fileRef = F8FDCE4503AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEB203AEDE1F01A8000A = { - fileRef = F8FDCE4603AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEB303AEDE1F01A8000A = { - fileRef = F8FDCE4703AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEB803AEDE1F01A8000A = { - fileRef = F8FDCE4C03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEB903AEDE1F01A8000A = { - fileRef = F8FDCE4D03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEBA03AEDE1F01A8000A = { - fileRef = F8FDCE4E03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEBB03AEDE1F01A8000A = { - fileRef = F8FDCE4F03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEBC03AEDE1F01A8000A = { - fileRef = F8FDCE5003AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEBD03AEDE1F01A8000A = { - fileRef = F8FDCE5103AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEC003AEDE1F01A8000A = { - fileRef = F8FDCE5703AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEC103AEDE1F01A8000A = { - fileRef = F8FDCE5803AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEC203AEDE1F01A8000A = { - fileRef = F8FDCE5903AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEC303AEDE1F01A8000A = { - fileRef = F8FDCE5A03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEC403AEDE1F01A8000A = { - fileRef = F8FDCE5B03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEC503AEDE1F01A8000A = { - fileRef = F8FDCE5C03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEC603AEDE1F01A8000A = { - fileRef = F8FDCE5D03AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCEC703AEDE3A01A8000A = { - fileRef = F8FDCE3203AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCECA03AF0B0001A8000A = { - fileRef = F8FDCE3003AEDE1F01A8000A; - isa = PBXBuildFile; - settings = { - }; - }; - F8FDCF6303AF110C01A8000A = { - isa = PBXTargetDependency; - target = 0867D69CFE84028FC02AAC07; - }; - F8FDCF6403AF111101A8000A = { - isa = PBXTargetDependency; - target = 0867D69CFE84028FC02AAC07; - }; - }; - rootObject = 0867D690FE84028FC02AAC07; -} diff --git a/PBProjects/pkg-support/devel-resources/ReadMe.txt b/PBProjects/pkg-support/devel-resources/ReadMe.txt deleted file mode 100755 index be3feec..0000000 --- a/PBProjects/pkg-support/devel-resources/ReadMe.txt +++ /dev/null @@ -1,7 +0,0 @@ -This is an example portable filesystem. -The API can be found in the file ~/Library/Frameworks/physfs.framework/Headers/physfs.h - -The source code is available from: -http://www.icculus.org/physfs/ - -This library is distributed under the terms of the zlib license: http://www.opensource.org/licenses/zlib-license.php diff --git a/PBProjects/pkg-support/devel-resources/Welcome.txt b/PBProjects/pkg-support/devel-resources/Welcome.txt deleted file mode 100644 index 88f392e..0000000 --- a/PBProjects/pkg-support/devel-resources/Welcome.txt +++ /dev/null @@ -1,3 +0,0 @@ -This package installs the developer version of the physfs library and associated files. - -The physfs Framework is installed into ~/Library/Frameworks. diff --git a/PBProjects/pkg-support/devel-resources/install.sh b/PBProjects/pkg-support/devel-resources/install.sh deleted file mode 100755 index d0fb06d..0000000 --- a/PBProjects/pkg-support/devel-resources/install.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -# finish up the installation -# this script should be executed using the sudo command -# this file is copied to physfs.post_install and physfs.post_upgrade -# inside the .pkg bundle -echo "Running post-install script" -umask 022 - -ROOT=/Developer/Documentation/SDL - -echo "Moving physfs.framework to ~/Library/Frameworks" -# move SDL to its proper home, so the target stationary works -mkdir -p ~/Library/Frameworks -/Developer/Tools/CpMac -r $ROOT/physfs.framework ~/Library/Frameworks -rm -rf $ROOT/physfs.framework - -echo "Precompiling Header" -# precompile header for speedier compiles -/usr/bin/cc -I $HOME/Library/Frameworks/SDL.framework/Headers -precomp ~/Library/Frameworks/physfs.framework/Headers/physfs.h -o ~/Library/Frameworks/physfs.framework/Headers/physfs.p diff --git a/PBProjects/pkg-support/mkpackage.sh b/PBProjects/pkg-support/mkpackage.sh deleted file mode 100755 index cddad69..0000000 --- a/PBProjects/pkg-support/mkpackage.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -# Generic script to create a package with Project Builder in mind -# There should only be one version of this script for all projects! - -FRAMEWORK="$1" -VARIANT="$2" - -if test "$VARIANT" = "devel" ; then - PACKAGE="$FRAMEWORK-devel" - PACKAGE_RESOURCES="pkg-support/devel-resources" -else - PACKAGE="$FRAMEWORK" - PACKAGE_RESOURCES="pkg-support/resources" -fi - -echo "Building package for $FRAMEWORK.framework" -echo "Will fetch resources from $PACKAGE_RESOURCES" -echo "Will create the package $PACKAGE.pkg" - -# create a copy of the framework -mkdir -p build/pkg-tmp -/Developer/Tools/CpMac -r "build/$FRAMEWORK.framework" build/pkg-tmp/ - - -if test "$VARIANT" = "standard" ; then - rm -rf "build/pkg-tmp/$FRAMEWORK.framework/Headers" - rm -rf "build/pkg-tmp/$FRAMEWORK.framework/Versions/Current/Headers" -fi - -rm -rf build/pkg-tmp/$FRAMEWORK.framework/Resources/pbdevelopment.plist -rm -rf $PACKAGE_RESOURCES/.DS_Store - -# create the .pkg -package build/pkg-tmp "pkg-support/$PACKAGE.info" -d build -r "$PACKAGE_RESOURCES" - -if test "$VARIANT" = "devel" ; then - # create install scripts - DIR="build/$PACKAGE.pkg" - cp "$DIR/install.sh" "$DIR/$PACKAGE.post_install" - mv "$DIR/install.sh" "$DIR/$PACKAGE.post_upgrade" - - # add execute flag to scripts - chmod 755 "$DIR/$PACKAGE.post_install" "$DIR/$PACKAGE.post_upgrade" -fi - -# remove temporary files -rm -rf build/pkg-tmp - -# compress -(cd build; tar -zcvf "$PACKAGE.pkg.tar.gz" "$PACKAGE.pkg") diff --git a/PBProjects/pkg-support/physfs-devel.info b/PBProjects/pkg-support/physfs-devel.info deleted file mode 100644 index 2cf1e1b..0000000 --- a/PBProjects/pkg-support/physfs-devel.info +++ /dev/null @@ -1,15 +0,0 @@ -Title PhysFS-Devel 1.0.0 -Version 1 -Description PhysicsFS Library for Mac OS X (http://www.icculus.org/physfs/) -DefaultLocation /Developer/Documentation/physfs -Diskname (null) -DeleteWarning -NeedsAuthorization YES -DisableStop NO -UseUserMask YES -Application NO -Relocatable NO -Required NO -InstallOnly NO -RequiresReboot NO -InstallFat NO diff --git a/PBProjects/pkg-support/physfs.info b/PBProjects/pkg-support/physfs.info deleted file mode 100644 index 24883cc..0000000 --- a/PBProjects/pkg-support/physfs.info +++ /dev/null @@ -1,15 +0,0 @@ -Title PhysFS 1.0.0 -Version 1 -Description PhysicsFS Library for Mac OS X (http://www.icculus.org/physfs/) -DefaultLocation /Library/Frameworks -Diskname (null) -DeleteWarning -NeedsAuthorization NO -DisableStop NO -UseUserMask NO -Application NO -Relocatable YES -Required NO -InstallOnly NO -RequiresReboot NO -InstallFat NO diff --git a/PBProjects/pkg-support/resources/ReadMe.txt b/PBProjects/pkg-support/resources/ReadMe.txt deleted file mode 100755 index eb186ee..0000000 --- a/PBProjects/pkg-support/resources/ReadMe.txt +++ /dev/null @@ -1,6 +0,0 @@ -This is an example portable file system. - -The source code is available from: -http://www.icculus.org/physfs/ - -This library is distributed under the terms of the zlib license: http://www.opensource.org/licenses/zlib-license.php diff --git a/PBProjects/pkg-support/resources/Welcome.txt b/PBProjects/pkg-support/resources/Welcome.txt deleted file mode 100644 index ca8fd89..0000000 --- a/PBProjects/pkg-support/resources/Welcome.txt +++ /dev/null @@ -1,3 +0,0 @@ -This package installs the physfs library into /Library/Frameworks. You can also install it in -/Library/Frameworks if your access privileges are not high enough. - diff --git a/PBProjects/uninstall.csh b/PBProjects/uninstall.csh deleted file mode 100755 index efcf3fa..0000000 --- a/PBProjects/uninstall.csh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/csh - -### -## This script removes the Developer physfs package -### - -setenv HOME_DIR ~ - -sudo -v -p "Enter administrator password to remove physfs: " - -sudo rm -rf "$HOME_DIR/Library/Frameworks/physfs.framework" - -# will only remove the Frameworks dir if empty (since we put it there) -sudo rmdir "$HOME_DIR/Library/Frameworks" - -#sudo rm -r "$HOME_DIR/Readme physfs Developer.txt" -sudo rm -r "/Developer/Documentation/physfs" -sudo rm -r "/Developer/Documentation/ManPages/man1/physfs"* -#sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/physfs Application" -#sudo rm -r "/Developer/ProjectBuilder Extras/Target Templates/physfs" -sudo rm -r "/Library/Receipts/physfs-devel.pkg" - -# rebuild apropos database -sudo /usr/libexec/makewhatis - -unsetenv HOME_DIR - - - diff --git a/TODO b/TODO index 1b44a21..e318976 100644 --- a/TODO +++ b/TODO @@ -59,7 +59,6 @@ Stuff: - Is -Wall enabled? - Make mutexes recursive, so callbacks can call into the API. - Archivers need abstracted i/o to read from memory or files (archives in archives?) -- Move to CMake. // end of TODO ... diff --git a/archivers/Makefile.am b/archivers/Makefile.am deleted file mode 100644 index 14fface..0000000 --- a/archivers/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -noinst_LTLIBRARIES = libarchivers.la - -INCLUDES = -I$(top_srcdir) - -if BUILD_ZLIB -INCLUDES += -I$(top_srcdir)/zlib123 -endif - -if BUILD_LZMA -INCLUDES += -I$(top_srcdir)/lzma -endif - -libarchivers_la_SOURCES = \ - dir.c \ - grp.c \ - wad.c \ - hog.c \ - mvl.c \ - zip.c \ - lzma.c \ - qpak.c \ - mix.c diff --git a/archivers/lzma.c b/archivers/lzma.c index 930e722..0e2ed2c 100644 --- a/archivers/lzma.c +++ b/archivers/lzma.c @@ -21,20 +21,24 @@ #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" - +#ifndef _LZMA_IN_CB #define _LZMA_IN_CB /* Use callback for input data */ +#endif /* #define _LZMA_OUT_READ */ /* Use read function for output data */ +#ifndef _LZMA_PROB32 #define _LZMA_PROB32 /* It can increase speed on some 32-bit CPUs, but memory usage will be doubled in that case */ +#endif +#ifndef _LZMA_SYSTEM_SIZE_T #define _LZMA_SYSTEM_SIZE_T /* Use system's size_t. You can use it to enable 64-bit sizes supporting */ - +#endif #include "7zIn.h" #include "7zCrc.h" diff --git a/bootstrap b/bootstrap deleted file mode 100755 index 51c7e0f..0000000 --- a/bootstrap +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -set -e -echo "Initial preparation...this can take awhile, so sit tight..." -rm -f Makefile.am -perl -w -e 'use File::Copy; exit 0 if (-f "Makefile.am"); my $x = `automake --version |head -n 1`; chomp($x); $x = 0.0 if ($x !~ s/\A.*?(\d+\.\d+).*\Z/$1/); if ($x < 1.5) { copy("./Makefile.am.oldautomake", "./Makefile.am"); } else { copy("./Makefile.am.newautomake", "./Makefile.am"); }' -aclocal - -# MacOS X renames GNU libtool to "glibtool", since they have something -# else called "libtool" already... -if [ -x /usr/bin/glibtoolize ]; then - glibtoolize --automake --copy --force -else - libtoolize --automake --copy --force -fi - -autoheader -automake --foreign --add-missing --copy -autoconf - -echo "You are now ready to run ./configure ..." - diff --git a/configure.in b/configure.in deleted file mode 100644 index 1b7ad40..0000000 --- a/configure.in +++ /dev/null @@ -1,598 +0,0 @@ -# Process this file with autoconf to produce a configure script. -AC_INIT(physfs.c) - -dnl --------------------------------------------------------------------- -dnl System/version info -dnl --------------------------------------------------------------------- - -# Making releases: -# MICRO_VERSION += 1; -# INTERFACE_AGE += 1; -# BINARY_AGE += 1; -# if any functions have been added, set INTERFACE_AGE to 0. -# if backwards compatibility has been broken, -# set BINARY_AGE and INTERFACE_AGE to 0. - -MAJOR_VERSION=1 -MINOR_VERSION=0 -MICRO_VERSION=1 -INTERFACE_AGE=1 -BINARY_AGE=1 -VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION - -AC_SUBST(MAJOR_VERSION) -AC_SUBST(MINOR_VERSION) -AC_SUBST(MICRO_VERSION) -AC_SUBST(INTERFACE_AGE) -AC_SUBST(BINARY_AGE) -AC_SUBST(VERSION) - -# libtool versioning -LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION -LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE` -LT_REVISION=$INTERFACE_AGE -LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE` - -AC_SUBST(LT_RELEASE) -AC_SUBST(LT_CURRENT) -AC_SUBST(LT_REVISION) -AC_SUBST(LT_AGE) - -dnl Detect the canonical host and target build environment -AC_CANONICAL_SYSTEM - -dnl Setup for automake -AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(physfs, $VERSION) - - -dnl --------------------------------------------------------------------- -dnl Compilers and other tools -dnl --------------------------------------------------------------------- - -AC_PROG_CC -AC_PROG_CXX -AC_PROG_INSTALL -AC_PROG_LN_S -AC_LIBTOOL_WIN32_DLL -LIBTOOL="libtool" -AM_PROG_LIBTOOL -AC_CHECK_PROG(we_have_sed, sed, yes, no) - -dnl --------------------------------------------------------------------- -dnl Debug mode? -dnl --------------------------------------------------------------------- - -AC_ARG_ENABLE(debug, -[ --enable-debug enable debug mode [default=no]], - , enable_debug=no) -if test x$enable_debug = xyes; then - if test x$ac_cv_prog_cc_g = xyes; then - PHYSFSCFLAGS="$PHYSFSCFLAGS -g -O0" - else - PHYSFSCFLAGS="$PHYSFSCFLAGS -O0" - fi - PHYSFSCFLAGS="$PHYSFSCFLAGS -Werror -Wall" - AC_DEFINE([DEBUG], 1, [define if debug build is enabled]) - AC_DEFINE([DEBUG_CHATTER], 1, [define if debug chatter is enabled]) -else - PHYSFSCFLAGS="$PHYSFSCFLAGS -O2" - AC_DEFINE([NDEBUG], 1, [define if debug build is disabled]) -fi - - -dnl --------------------------------------------------------------------- -dnl Have GCC's -fvisibility option? -dnl --------------------------------------------------------------------- -AC_MSG_CHECKING(for GCC -fvisibility=hidden option) -have_gcc_fvisibility=no -visibility_CFLAGS="-fvisibility=hidden" -save_CFLAGS="$CFLAGS" -CFLAGS="$save_CFLAGS $visibility_CFLAGS" -AC_TRY_COMPILE([ -int placeholder = 1; -],[ -],[ -have_gcc_fvisibility=yes -]) -AC_MSG_RESULT($have_gcc_fvisibility) -CFLAGS="$save_CFLAGS" - -if test x$have_gcc_fvisibility = xyes; then - PHYSFSCFLAGS="$PHYSFSCFLAGS $visibility_CFLAGS" -fi - - -dnl --------------------------------------------------------------------- -dnl Profile sorts, etc? -dnl --------------------------------------------------------------------- - -AC_ARG_ENABLE(profiling, -[ --enable-profiling do algorithm profiling [default=no]], - , enable_profiling=no) -if test x$enable_profiling = xyes; then - AC_DEFINE([PHYSFS_PROFILING], 1, [define to profile sorting, etc algorithms]) -fi - - -dnl --------------------------------------------------------------------- -dnl Build test program? -dnl --------------------------------------------------------------------- - -AC_ARG_ENABLE(testprog, -[ --enable-testprog build test program [default=yes]], - , enable_testprog=yes) - -dnl --------------------------------------------------------------------- -dnl Checks for libraries. -dnl --------------------------------------------------------------------- - -require_zlib="no" - -dnl Check for zip archiver inclusion... -AC_ARG_ENABLE(zip, -[ --enable-zip enable ZIP support [default=yes]], - , enable_zip=yes) -if test x$enable_zip = xyes; then - AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled]) - require_zlib="yes" -fi - - -require_lzma="no" - -dnl Check for lzma archiver inclusion... -AC_ARG_ENABLE(lzma, -[ --enable-lzma enable lzma support [default=yes]], - , enable_lzma=yes) -if test x$enable_lzma = xyes; then - AC_DEFINE([PHYSFS_SUPPORTS_LZMA], 1, [define if lzma support is enabled]) - require_lzma="yes" -fi - - -dnl Check for grp archiver inclusion... -AC_ARG_ENABLE(grp, -[ --enable-grp enable Build Engine GRP support [default=yes]], - , enable_grp=yes) -if test x$enable_grp = xyes; then - AC_DEFINE([PHYSFS_SUPPORTS_GRP], 1, [define if grp support is enabled]) -fi - -dnl Check for wad archiver inclusion... -AC_ARG_ENABLE(wad, -[ --enable-wad enable Doom WAD support [default=yes]], - , enable_wad=yes) -if test x$enable_wad = xyes; then - AC_DEFINE([PHYSFS_SUPPORTS_WAD], 1, [define if wad support is enabled]) -fi - -dnl Check for hog archiver inclusion... -AC_ARG_ENABLE(hog, -[ --enable-hog enable Descent I/II HOG support [default=yes]], - , enable_hog=yes) -if test x$enable_hog = xyes; then - AC_DEFINE([PHYSFS_SUPPORTS_HOG], 1, [define if hog support is enabled]) -fi - - -dnl Check for mvl archiver inclusion... -AC_ARG_ENABLE(mvl, -[ --enable-mvl enable Descent II MVL support [default=yes]], - , enable_mvl=yes) -if test x$enable_mvl = xyes; then - AC_DEFINE([PHYSFS_SUPPORTS_MVL], 1, [define if mvl support is enabled]) -fi - - -dnl Check for qpak archiver inclusion... -AC_ARG_ENABLE(qpak, -[ --enable-qpak enable Quake PAK support [default=yes]], - , enable_qpak=yes) -if test x$enable_qpak = xyes; then - AC_DEFINE([PHYSFS_SUPPORTS_QPAK], 1, [define if qpak support is enabled]) -fi - -dnl Check for mix archiver inclusion... -AC_ARG_ENABLE(mix, -[ --enable-mix enable Westwood MIX support [default=no]], - , enable_mix=no) -if test x$enable_mix = xyes; then - AC_DEFINE([PHYSFS_SUPPORTS_MIX], 1, [define if mix support is enabled]) -fi - - -dnl Check if we should statically link the included zlib... -AC_ARG_ENABLE(internal-zlib, -[ --enable-internal-zlib use included zlib [default=only if needed]], - , enable_internal_zlib=maybe) - -dnl Check for zlib if needed. -have_external_zlib="no" -if test x$enable_internal_zlib != xyes; then - if test x$require_zlib = xyes; then - AC_CHECK_HEADER(zlib.h, have_zlib_hdr=yes) - AC_CHECK_LIB(z, zlibVersion, have_zlib_lib=yes) - if test x$have_zlib_hdr = xyes -a x$have_zlib_lib = xyes; then - have_external_zlib="yes" - fi - fi -fi - -AC_MSG_CHECKING([what zlib to use]) - -dnl no zlib is needed at all if we aren't supporting ZIP files. -if test x$require_zlib = xno; then - enable_internal_zlib="no" - enable_external_zlib="no" - AC_MSG_RESULT([no zlib needed]) -else - - if test x$enable_internal_zlib = xmaybe; then - if test x$have_external_zlib = xyes; then - enable_internal_zlib="no" - enable_external_zlib="yes" - else - enable_internal_zlib="yes" - enable_external_zlib="no" - fi - else - if test x$enable_internal_zlib = xno -a x$have_external_zlib = xyes; then - enable_internal_zlib="no" - enable_external_zlib="yes" - fi - fi - - if test x$enable_internal_zlib = xyes; then - AC_MSG_RESULT([internal zlib]) - PHYSFSCFLAGS="$PHYSFSCFLAGS -DZ_PREFIX" - else - if test x$enable_external_zlib = xyes; then - AC_MSG_RESULT([external zlib]) - LIBS="$LIBS -lz" - else - AC_MSG_ERROR([Need zlib, but you disabled our copy and have no system lib]) - fi - fi -fi - - -dnl determine if we should include readline support... -AC_ARG_ENABLE(readline, -[ --enable-readline use GNU readline in test program [default=yes]], - , enable_readline=yes) - -if test x$enable_readline = xyes; then - AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes) - AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lcurses) - AC_CHECK_HEADER(readline/history.h, have_history_hdr=yes) - AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lcurses) - if test x$have_readline_hdr = xyes -a x$have_readline_lib = xyes; then - if test x$have_history_hdr = xyes -a x$have_history_lib = xyes; then - AC_DEFINE([PHYSFS_HAVE_READLINE], 1, [define if we have readline]) - have_readline="yes" - fi - fi -fi - -dnl !!! FIXME: Not sure how to detect this... -dnl check for 64-bit llseek()... -dnl AC_CHECK_LIB(c, llseek, have_llseek=yes) -if test x$have_llseek = xyes; then - AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek]) -fi - - -dnl determine if we should use the stubbed pthread code. -AC_ARG_ENABLE(pthreads, -[ --enable-pthreads include POSIX threads support [default=yes]], - , enable_pthreads=yes) -if test x$enable_pthreads = xyes; then - AC_CHECK_HEADER(pthread.h, have_pthread_hdr=yes) - if test x$have_pthread_hdr != xyes; then - enable_pthreads=no - fi -fi - -dnl determine if we should use the stubbed CD-ROM detection code. -AC_ARG_ENABLE(cdrom, -[ --enable-cdrom include CD-ROM support [default=yes]], - , enable_cdrom=yes) - -if test x$enable_cdrom = xyes; then - dnl reset this and let header detection reenable... - enable_cdrom=no - - dnl BSD systems use sys/ucred.h for getting mounted volumes. - dnl Linux and others use mntent.h. - AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes) - if test x$have_ucred_hdr = xyes; then - AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h]) - enable_cdrom=yes - fi - - AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes) - if test x$have_mntent_hdr = xyes; then - AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h]) - enable_cdrom=yes - fi -fi - -dnl determine language. -AC_ARG_ENABLE(language, -[ --enable-language=lang Select natural language. [default=english]], - physfslang=`echo $enable_language |tr A-Z a-z`, physfslang=english) - -AC_MSG_CHECKING([if language choice is supported]) -physfs_valid_lang=no - -if test x$physfslang = xenglish; then - physfs_valid_lang=yes - AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_ENGLISH, [define desired natural language]) -fi - -if test x$physfslang = xgerman; then - physfs_valid_lang=yes - AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_GERMAN, [define desired natural language]) -fi - -if test x$physfslang = xfrench; then - physfs_valid_lang=yes - AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_FRENCH, [define desired natural language]) -fi - -if test x$physfslang = xspanish; then - physfs_valid_lang=yes - AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_SPANISH, [define desired natural language]) -fi - -if test x$physfslang = xportuguese-br; then - physfs_valid_lang=yes - AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_PORTUGUESE_BR, [define desired natural language]) -fi - -if test x$physfslang = xrussian-koi8-r; then - physfs_valid_lang=yes - AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_KOI8_R, [define desired natural language]) -fi - -if test x$physfslang = xrussian-cp1251; then - physfs_valid_lang=yes - AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_CP866, [define desired natural language]) -fi - -if test x$physfslang = xrussian-cp866; then - physfs_valid_lang=yes - AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_CP866, [define desired natural language]) -fi - -if test x$physfslang = xrussian-iso-8859-5; then - physfs_valid_lang=yes - AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_ISO_8859_5, [define desired natural language]) -fi - -if test x$physfslang = xportuguese-br; then - physfs_valid_lang=yes - AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_PORTUGUESE_BR, [define desired natural language]) -fi - -dnl Add other language checks here... - - -AC_MSG_RESULT([$physfs_valid_lang]) -if test x$physfs_valid_lang = xno; then - AC_MSG_WARN([***]) - AC_MSG_WARN([*** You've asked for "$physfslang" language support...]) - AC_MSG_WARN([*** ...but we don't support that.]) - AC_MSG_WARN([*** You could choose another language,]) - AC_MSG_WARN([*** but is this what you REALLY wanted?]) - AC_MSG_WARN([*** Please see the LANG section of physfs_internal.h]) - AC_MSG_WARN([*** for info on writing a translation.]) - AC_MSG_WARN([***]) - AC_MSG_WARN([*** Currently known languages:]) - AC_MSG_WARN([*** --enable-language=english]) - AC_MSG_WARN([*** --enable-language=spanish]) - AC_MSG_WARN([*** --enable-language=german]) - AC_MSG_WARN([*** --enable-language=french]) - AC_MSG_WARN([*** --enable-language=spanish]) - AC_MSG_WARN([*** --enable-language=portuguese-br]) - AC_MSG_WARN([*** --enable-language=russian-koi8-r]) - AC_MSG_WARN([*** --enable-language=russian-cp1251]) - AC_MSG_WARN([*** --enable-language=russian-cp866]) - AC_MSG_WARN([*** --enable-language=russian-iso-8859-5]) - AC_MSG_WARN([*** --enable-language=portuguese-br]) - AC_MSG_WARN([***]) - AC_MSG_ERROR([*** unsupported language. stop.]) -fi - -have_non_posix_threads=no - -AC_MSG_CHECKING([if this is BeOS]) -if test x$target_os = xbeos; then - this_is_beos=yes - have_non_posix_threads=yes - enable_cdrom=yes - enable_pthreads=no - LIBS="$LIBS -lroot -lbe" -else - this_is_beos=no -fi - -AC_MSG_RESULT([$this_is_beos]) - -AC_MSG_CHECKING([if this is Cygwin]) -if test x$target_os = xcygwin; then - this_is_cygwin=yes - PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32" - enable_cdrom=yes - enable_pthreads=no - have_non_posix_threads=yes -else - this_is_cygwin=no -fi -AC_MSG_RESULT([$this_is_cygwin]) - -AC_MSG_CHECKING([if this is mingw]) -if test x$target_os = xmingw32; then - this_is_mingw=yes -fi -if test x$target_os = xmingw32msvc; then - this_is_mingw=yes -fi -if test x$this_is_mingw = xyes; then - PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32" - enable_cdrom=yes - enable_pthreads=no - have_non_posix_threads=yes -else - this_is_mingw=no -fi -AC_MSG_RESULT([$this_is_mingw]) - -this_is_macosx=no -if test x$we_have_sed = xyes; then - AC_MSG_CHECKING([if this is MacOS X]) - x=`echo $target_os |sed "s/darwin.*/darwin/"` - if test x$x = xdarwin -a x$target_vendor = xapple; then - this_is_macosx=yes - PHYSFSLDFLAGS="$PHYSFSLDFLAGS -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,IOKit" - fi - - AC_MSG_RESULT([$this_is_macosx]) -fi - -this_is_freebsd=no -if test x$we_have_sed = xyes; then - AC_MSG_CHECKING([if this is FreeBSD]) - x=`echo $target_os |tr A-Z a-z |sed "s/.*freebsd.*/freebsd/"` - if test x$x = xfreebsd; then - this_is_freebsd=yes - PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread" - fi - - AC_MSG_RESULT([$this_is_freebsd]) -fi - -this_is_openbsd=no -if test x$we_have_sed = xyes; then - AC_MSG_CHECKING([if this is OpenBSD]) - x=`echo $target_os |tr A-Z a-z |sed "s/.*openbsd.*/openbsd/"` - if test x$x = xopenbsd; then - this_is_openbsd=yes - PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread" - fi - - AC_MSG_RESULT([$this_is_openbsd]) -fi - -this_is_atheos=no -if test x$we_have_sed = xyes; then - AC_MSG_CHECKING([if this is AtheOS]) - x=`echo $target_os |tr A-Z a-z |sed "s/.*atheos.*/atheos/"` - if test x$x = xatheos; then - this_is_atheos=yes - enable_cdrom=no - enable_pthreads=no - fi - - AC_MSG_RESULT([$this_is_atheos]) -fi - -this_is_os2=no -if test x$we_have_sed = xyes; then - AC_MSG_CHECKING([if this is OS/2]) - x=`echo $target_os |tr A-Z a-z |sed "s/.*os2.*/os2/"` - if test x$x = xos2; then - this_is_os2=yes - have_non_posix_threads=yes - enable_cdrom=yes - enable_pthreads=no - PHYSFSCFLAGS="$PHYSFSCFLAGS -DOS2" - fi - - AC_MSG_RESULT([$this_is_os2]) -fi - -this_is_mint=no -if test x$we_have_sed = xyes; then - AC_MSG_CHECKING([if this is MiNT]) - x=`echo $target_os |tr A-Z a-z |sed "s/.*mint.*/mint/"` - if test x$x = xmint; then - this_is_mint=yes - enable_cdrom=no - enable_pthreads=no - fi - - AC_MSG_RESULT([$this_is_mint]) -fi - - -dnl Some platform might disable this, so check this down here... -if test x$enable_cdrom != xyes; then - AC_DEFINE([PHYSFS_NO_CDROM_SUPPORT], 1, [define if we have no CD support]) - AC_MSG_WARN([***]) - AC_MSG_WARN([*** There is no CD-ROM support in this build!]) - AC_MSG_WARN([*** PhysicsFS will just pretend there are no discs.]) - AC_MSG_WARN([*** This may be fine, depending on how PhysicsFS is used,]) - AC_MSG_WARN([*** but is this what you REALLY wanted?]) - AC_MSG_WARN([*** (Maybe fix configure.in, or write a platform driver?)]) - AC_MSG_WARN([***]) -fi - -if test x$enable_pthreads != xyes; then - AC_DEFINE([PHYSFS_NO_PTHREADS_SUPPORT], 1, [define if we have no POSIX threads support]) - if test x$have_non_posix_threads != xyes; then - AC_MSG_WARN([***]) - AC_MSG_WARN([*** There is no thread support in this build!]) - AC_MSG_WARN([*** PhysicsFS will NOT be reentrant!]) - AC_MSG_WARN([*** This may be fine, depending on how PhysicsFS is used,]) - AC_MSG_WARN([*** but is this what you REALLY wanted?]) - AC_MSG_WARN([*** (Maybe fix configure.in, or write a platform driver?)]) - AC_MSG_WARN([***]) - fi -fi - - -# Checks for header files. -AC_HEADER_STDC -AC_CHECK_HEADERS([stdlib.h string.h assert.h]) - -# Checks for typedefs, structures, and compiler characteristics. -dnl AC_C_CONST -dnl AC_TYPE_SIZE_T - -# Checks for library functions. - -# This is only in the bleeding edge autoconf distro... -#AC_FUNC_MALLOC - -AC_FUNC_MEMCMP -AC_CHECK_FUNCS([memset strrchr]) - -AC_CHECK_SIZEOF(int, 4) - -CFLAGS="$PHYSFSCFLAGS $CFLAGS -D_REENTRANT -D_THREAD_SAFE" -LDFLAGS="$LDFLAGS $PHYSFSLDFLAGS -no-undefined" - -dnl Add Makefile conditionals -AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes) -AM_CONDITIONAL(BUILD_LZMA, test x$enable_lzma = xyes) -AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes) -AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes) -AM_CONDITIONAL(BUILD_BEOS, test x$this_is_beos = xyes) -AM_CONDITIONAL(BUILD_CYGWIN, test x$this_is_cygwin = xyes) -AM_CONDITIONAL(BUILD_READLINE, test x$have_readline = xyes) - -AC_OUTPUT([ -Makefile -archivers/Makefile -platform/Makefile -zlib123/Makefile -lzma/Makefile -test/Makefile -extras/Makefile -physfs.spec -]) - -dnl end of configure.in ... - diff --git a/extras/Makefile.am b/extras/Makefile.am deleted file mode 100644 index 95616cd..0000000 --- a/extras/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -EXTRA_DIST = \ - physfsrwops.c \ - physfsrwops.h \ - abs-file.h \ - physfshttpd.c \ - globbing.h \ - globbing.c \ - selfextract.c \ - ignorecase.c \ - ignorecase.h \ - PhysFS.NET \ - physfs_rb - diff --git a/lzma/Makefile.am b/lzma/Makefile.am deleted file mode 100644 index d8b35d7..0000000 --- a/lzma/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -if BUILD_LZMA -noinst_LTLIBRARIES = liblzma.la -liblzma_la_CFLAGS = -D_LZMA_IN_CB -D_LZMA_PROB32 -D_LZMA_SYSTEM_SIZE_T -D_SZ_ONE_DIRECTORY -liblzma_la_SOURCES = 7zBuffer.c 7zCrc.c 7zHeader.c 7zIn.c 7zItem.c \ - 7zMethodID.c 7zExtract.c 7zDecode.c LzmaDecode.c -endif diff --git a/physfs.dsp b/physfs.dsp deleted file mode 100644 index 965e004..0000000 --- a/physfs.dsp +++ /dev/null @@ -1,244 +0,0 @@ -# Microsoft Developer Studio Project File - Name="physfs" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 - -CFG=physfs - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "physfs.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "physfs.mak" CFG="physfs - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "physfs - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") -!MESSAGE "physfs - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -MTL=midl.exe -RSC=rc.exe - -!IF "$(CFG)" == "physfs - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Ignore_Export_Lib 0 -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "Debug" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MDd /W3 /WX /Gm /ZI /Od /I "." /I "zlibwin32" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "Z_PREFIX" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_WAD" /D "PHYSFS_SUPPORTS_ZIP" /D "PHYSFS_SUPPORTS_QPAK" /D "PHYSFS_SUPPORTS_MVL" /D "PHYSFS_SUPPORTS_HOG" /YX /FD /GZ /c -# ADD CPP /nologo /MTd /W3 /WX /Zi /Od /I "." /I "zlib123" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "Z_PREFIX" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_WAD" /D "PHYSFS_SUPPORTS_ZIP" /D "PHYSFS_SUPPORTS_QPAK" /D "PHYSFS_SUPPORTS_MVL" /D "PHYSFS_SUPPORTS_HOG" /FR /YX /FD /GZ /c -# SUBTRACT CPP /X -# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 -# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept -# SUBTRACT BASE LINK32 /incremental:no -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"../src/Debug/physfs.dll" -# SUBTRACT LINK32 /pdb:none /force - -!ELSEIF "$(CFG)" == "physfs - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Ignore_Export_Lib 0 -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MD /W3 /WX /O2 /I "." /I "zlibwin32" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_WAD" /D "PHYSFS_SUPPORTS_ZIP" /YX /FD /c -# ADD CPP /nologo /MD /W3 /WX /O2 /I "." /I "zlib123" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_WAD" /D "PHYSFS_SUPPORTS_ZIP" /D "PHYSFS_SUPPORTS_QPAK" /D "PHYSFS_SUPPORTS_HOG" /D "PHYSFS_SUPPORTS_MVL" /YX /FD /c -# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 zlibwin32\zlibstat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 - -!ENDIF - -# Begin Target - -# Name "physfs - Win32 Debug" -# Name "physfs - Win32 Release" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File - -SOURCE=.\zlib123\adler32.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\compress.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\crc32.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\deflate.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\dir.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\grp.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\hog.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\inffast.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\inflate.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\inftrees.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\mvl.c -# End Source File -# Begin Source File - -SOURCE=.\physfs.c -# End Source File -# Begin Source File - -SOURCE=.\physfs_byteorder.c -# End Source File -# Begin Source File - -SOURCE=.\physfs_unicode.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\qpak.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\trees.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\uncompr.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\wad.c -# End Source File -# Begin Source File - -SOURCE=.\platform\windows.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\zip.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\zutil.c -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=.\zlib123\deflate.h -# End Source File -# Begin Source File - -SOURCE=.\zlib123\infblock.h -# End Source File -# Begin Source File - -SOURCE=.\zlib123\infcodes.h -# End Source File -# Begin Source File - -SOURCE=.\zlib123\inffast.h -# End Source File -# Begin Source File - -SOURCE=.\zlib123\inffixed.h -# End Source File -# Begin Source File - -SOURCE=.\zlib123\inftrees.h -# End Source File -# Begin Source File - -SOURCE=.\zlib123\infutil.h -# End Source File -# Begin Source File - -SOURCE=.\physfs.h -# End Source File -# Begin Source File - -SOURCE=.\physfs_internal.h -# End Source File -# Begin Source File - -SOURCE=.\zlib123\trees.h -# End Source File -# Begin Source File - -SOURCE=.\zlib123\zconf.h -# End Source File -# Begin Source File - -SOURCE=.\zlib123\zlib.h -# End Source File -# Begin Source File - -SOURCE=.\zlib123\zutil.h -# End Source File -# End Group -# Begin Group "Resource Files" - -# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" -# End Group -# End Target -# End Project diff --git a/physfs.vcproj b/physfs.vcproj deleted file mode 100644 index b62b7ba..0000000 --- a/physfs.vcproj +++ /dev/null @@ -1,271 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/physfs_static.dsp b/physfs_static.dsp deleted file mode 100644 index 83ca3c4..0000000 --- a/physfs_static.dsp +++ /dev/null @@ -1,194 +0,0 @@ -# Microsoft Developer Studio Project File - Name="physfs_static" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Static Library" 0x0104 - -CFG=physfs_static - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "physfs_static.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "physfs_static.mak" CFG="physfs_static - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "physfs_static - Win32 Release" (based on "Win32 (x86) Static Library") -!MESSAGE "physfs_static - Win32 Debug" (based on "Win32 (x86) Static Library") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "Perforce Project" -# PROP Scc_LocalPath "." -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "physfs_static - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "physfs_static___Win32_Release" -# PROP BASE Intermediate_Dir "physfs_static___Win32_Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "physfs_static_release" -# PROP Intermediate_Dir "physfs_static_release" -# PROP Target_Dir "" -MTL=midl.exe -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c -# ADD CPP /nologo /G6 /MT /W3 /GX /O2 /I "zlib123" /I "." /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D PHYSFS_SUPPORTS_QPAK=1 /D PHYSFS_SUPPORTS_ZIP=1 /D PHYSFS_SUPPORTS_HOG=1 /D PHYSFS_SUPPORTS_GRP=1 /D PHYSFS_SUPPORTS_WAD=1 /D PHYSFS_SUPPORTS_MVL=1 /D Z_PREFIX=1 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LIB32=link.exe -lib -# ADD BASE LIB32 /nologo -# ADD LIB32 /nologo - -!ELSEIF "$(CFG)" == "physfs_static - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "physfs_static___Win32_Debug" -# PROP BASE Intermediate_Dir "physfs_static___Win32_Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "physfs_static_debug" -# PROP Intermediate_Dir "physfs_static_debug" -# PROP Target_Dir "" -MTL=midl.exe -# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c -# ADD CPP /nologo /G6 /MTd /W3 /Gm /GX /ZI /Od /I "zlib123" /I "." /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D PHYSFS_SUPPORTS_QPAK=1 /D PHYSFS_SUPPORTS_ZIP=1 /D PHYSFS_SUPPORTS_HOG=1 /D PHYSFS_SUPPORTS_GRP=1 /D PHYSFS_SUPPORTS_WAD=1 /D PHYSFS_SUPPORTS_MVL=1 /D Z_PREFIX=1 /FR /YX /FD /GZ /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LIB32=link.exe -lib -# ADD BASE LIB32 /nologo -# ADD LIB32 /nologo - -!ENDIF - -# Begin Target - -# Name "physfs_static - Win32 Release" -# Name "physfs_static - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Group "zlib" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\zlib123\adler32.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\compress.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\crc32.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\deflate.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\infback.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\inffast.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\inflate.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\inftrees.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\trees.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\uncompr.c -# End Source File -# Begin Source File - -SOURCE=.\zlib123\zutil.c -# End Source File -# End Group -# Begin Source File - -SOURCE=.\archivers\dir.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\grp.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\hog.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\mvl.c -# End Source File -# Begin Source File - -SOURCE=.\physfs.c -# End Source File -# Begin Source File - -SOURCE=.\physfs_byteorder.c -# End Source File -# Begin Source File - -SOURCE=.\physfs_unicode.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\qpak.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\wad.c -# End Source File -# Begin Source File - -SOURCE=.\platform\windows.c -# End Source File -# Begin Source File - -SOURCE=.\archivers\zip.c -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=.\physfs.h -# End Source File -# Begin Source File - -SOURCE=.\physfs_internal.h -# End Source File -# End Group -# End Target -# End Project diff --git a/platform/Makefile.am b/platform/Makefile.am deleted file mode 100644 index 61b67e4..0000000 --- a/platform/Makefile.am +++ /dev/null @@ -1,26 +0,0 @@ -noinst_LTLIBRARIES = libplatform.la - -INCLUDES = -I$(top_srcdir) - -if BUILD_BEOS -libplatform_la_SOURCES = \ - posix.c \ - beos.cpp -else -libplatform_la_SOURCES = \ - unix.c \ - windows.c \ - posix.c \ - os2.c -endif - - -EXTRA_DIST = \ - skeleton.c \ - macclassic.c \ - windows.c \ - pocketpc.c \ - unix.c \ - os2.c \ - beos.cpp - diff --git a/test/Makefile.am b/test/Makefile.am deleted file mode 100644 index 3b9d157..0000000 --- a/test/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -if BUILD_TEST_PHYSFS - -bin_PROGRAMS = test_physfs - -INCLUDES = -I$(top_srcdir) - -if BUILD_READLINE -test_physfs_LDFLAGS="-lreadline -lcurses" -endif - -test_physfs_LDADD = ../libphysfs.la -test_physfs_SOURCES = test_physfs.c - -endif diff --git a/test_physfs.dsp b/test_physfs.dsp deleted file mode 100644 index 045cdd1..0000000 --- a/test_physfs.dsp +++ /dev/null @@ -1,102 +0,0 @@ -# Microsoft Developer Studio Project File - Name="test_physfs" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=test_physfs - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "test_physfs.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "test_physfs.mak" CFG="test_physfs - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "test_physfs - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "test_physfs - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "test_physfs - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 Release\physfs.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 - -!ELSEIF "$(CFG)" == "test_physfs - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "Debug" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 Debug\physfs.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept - -!ENDIF - -# Begin Target - -# Name "test_physfs - Win32 Release" -# Name "test_physfs - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File - -SOURCE=.\test\test_physfs.c -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# End Group -# Begin Group "Resource Files" - -# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" -# End Group -# End Target -# End Project diff --git a/test_physfs.vcproj b/test_physfs.vcproj deleted file mode 100644 index cf9baf3..0000000 --- a/test_physfs.vcproj +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/zlib123/Makefile.am b/zlib123/Makefile.am deleted file mode 100644 index a6b8e19..0000000 --- a/zlib123/Makefile.am +++ /dev/null @@ -1,29 +0,0 @@ -X = adler32.c \ - compress.c \ - crc32.c \ - crc32.h \ - deflate.c \ - deflate.h \ - gzio.c \ - infback.c \ - inffast.c \ - inffast.h \ - inffixed.h \ - inflate.c \ - inflate.h \ - inftrees.c \ - inftrees.h \ - trees.c \ - trees.h \ - uncompr.c \ - zconf.h \ - zlib.h \ - zutil.c \ - zutil.h - -if BUILD_ZLIB -noinst_LTLIBRARIES = libz.la -libz_la_SOURCES = $(X) -endif - -EXTRA_DIST = $(X)