Added Apple Project Builder support files to CVS.
This commit is contained in:
parent
beb9653053
commit
e324162b40
Binary file not shown.
|
@ -0,0 +1,25 @@
|
|||
This is an unofficial OS X Project Builder environment to build a physfs Framework.
|
||||
|
||||
|
||||
Built with:
|
||||
physfs 0.1.7
|
||||
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 <ewing2121@yahoo.com>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
EXPORTS = SDL_sound.x
|
||||
HEADERS = \
|
||||
../../SDL_sound.h
|
||||
|
||||
all: $(EXPORTS)
|
||||
|
||||
$(EXPORTS): $(HEADERS)
|
||||
perl gendef.pl $(HEADERS) >$@ || rm $@
|
||||
|
||||
clean:
|
||||
rm -f $(EXPORTS)
|
|
@ -0,0 +1,20 @@
|
|||
#!/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 (<FILE>) {
|
||||
if ( /^__EXPORT__.*\s\**([^\s\(]+)\(/ ) {
|
||||
print "\t_$1\n";
|
||||
} elsif ( /^__EXPORT__.*\s\**([^\s\(]+)$/ ) {
|
||||
print "\t_$1\n";
|
||||
}
|
||||
}
|
||||
close(FILE);
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
_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_openWrite
|
||||
_PHYSFS_openAppend
|
||||
_PHYSFS_openRead
|
||||
_PHYSFS_close
|
||||
_PHYSFS_getLastModTime
|
||||
_PHYSFS_read
|
||||
_PHYSFS_write
|
||||
_PHYSFS_eof
|
||||
_PHYSFS_tell
|
||||
_PHYSFS_seek
|
||||
_PHYSFS_fileLength
|
||||
_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
|
|
@ -0,0 +1,20 @@
|
|||
#!/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)
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
This is an example portable sound library for use with SDL.
|
||||
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 GNU LGPL license: http://www.gnu.org/copyleft/lesser.html
|
|
@ -0,0 +1,3 @@
|
|||
This package installs the developer version of the physfs library and associated files.
|
||||
|
||||
The physfs Framework is installed into ~/Library/Frameworks.
|
|
@ -0,0 +1,19 @@
|
|||
#!/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
|
|
@ -0,0 +1,51 @@
|
|||
#!/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")
|
|
@ -0,0 +1,15 @@
|
|||
Title PhysFS-Devel 0.1.7
|
||||
Version 1
|
||||
Description PhysFS 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
|
|
@ -0,0 +1,15 @@
|
|||
Title PhysFS 0.1.7
|
||||
Version 1
|
||||
Description PhysFS 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
|
|
@ -0,0 +1,6 @@
|
|||
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 GNU LGPL license: http://www.gnu.org/copyleft/lesser.html
|
|
@ -0,0 +1,3 @@
|
|||
This package installs the physfs library into /Library/Frameworks. You can also install it in
|
||||
<your home directory>/Library/Frameworks if your access privileges are not high enough.
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
#!/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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue