Skip to content

Commit

Permalink
updated README, added broken OSX packager tool
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Aug 3, 2013
1 parent 9fef4ec commit 4a165d9
Show file tree
Hide file tree
Showing 16 changed files with 61 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.glosx-clang
@@ -1,7 +1,7 @@
# I personally don't care if you steal this makefile. --GM # I personally don't care if you steal this makefile. --GM


CC = clang CC = clang
CFLAGS = -pg -O2 -fno-strict-aliasing -g `sdl-config --cflags` -Wall -Wextra \ CFLAGS = -pg -O3 -fno-strict-aliasing -g `sdl-config --cflags` -Wall -Wextra \
-Wno-unused-variable -Wno-unused-parameter \ -Wno-unused-variable -Wno-unused-parameter \
$(CFLAGS_EXTRA) \ $(CFLAGS_EXTRA) \
-DUSE_OPENGL -DAPPLE -DCLANG \ -DUSE_OPENGL -DAPPLE -DCLANG \
Expand Down
8 changes: 8 additions & 0 deletions README.txt
Expand Up @@ -40,6 +40,7 @@ BUILDING REQUIREMENTS:
- a C compiler that isn't crap (read: not MSVC++) - a C compiler that isn't crap (read: not MSVC++)
- specifically, GCC - specifically, GCC
- MinGW is a port of GCC for Windows: http://mingw.org/ - MinGW is a port of GCC for Windows: http://mingw.org/
- OS X users: clang is highly recommended
- if you use something else we might consider compatibility with it - if you use something else we might consider compatibility with it
- learn_more has managed to get this to build with MSVC++ so uh, that could work too. - learn_more has managed to get this to build with MSVC++ so uh, that could work too.
- SDL 1.2 (not 1.3) - http://libsdl.org/ - SDL 1.2 (not 1.3) - http://libsdl.org/
Expand All @@ -54,6 +55,13 @@ BUILDING REQUIREMENTS:
On Windows, read Makefile.mingw for some instructions. On Windows, read Makefile.mingw for some instructions.
On other OSes, some files for sackit and ENet need to be in xlibinc. On other OSes, some files for sackit and ENet need to be in xlibinc.


OS X readme:
- install Homebrew and XCode Command-Line Tools
- brew install lua, enet, SDL, glew
- compile sackit from git and copy .a and .so files to /usr/local/lib and sackit.h to /usr/local/include
- make -f Makefile.glosx-clang (recommended, Makefile.glosx uses GCC, Makefile.osx uses the broken software renderer)
- to package into a .app, use ./package-osx.sh (brew install dylibbundler first)

MSVC readme (wip): MSVC readme (wip):
- create a folder 'winlibs' in the iceball dir - create a folder 'winlibs' in the iceball dir
dump all dll's + lib's in this folder (opengl,lua,zlib, sdl, glew) dump all dll's + lib's in this folder (opengl,lua,zlib, sdl, glew)
Expand Down
Binary file added osx-package-files/Iceball.icns
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added osx-package-files/Iceball.iconset/icon_16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added osx-package-files/Iceball.iconset/icon_32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions osx-package-files/Info.plist
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleGetInfoString</key>
<string>Iceball</string>
<key>CFBundleExecutable</key>
<string>iceball-gl</string>
<key>CFBundleIdentifier</key>
<string>me.iceballga.Iceball</string>
<key>CFBundleName</key>
<string>Iceball</string>
<key>CFBundleDisplayName</key>
<string>Iceball</string>
<key>CFBundleSignature</key>
<string>icbl</string>
<key>CFBundleIconFile</key>
<string>Iceball.icns</string>
<key>CFBundleShortVersionString</key>
<string>0.1.2</string>
<key>CFBundleVersion</key>
<string>0.1.2</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>IFMajorVersion</key>
<integer>0</integer>
<key>IFMinorVersion</key>
<integer>1</integer>
</dict>
</plist>
3 changes: 3 additions & 0 deletions osx-package-files/iceball-launcher
@@ -0,0 +1,3 @@
#!/bin/bash
cd "${0%/*}"
./iceball-gl -s 0 pkg/base pkg/maps/mesa.vxl
17 changes: 17 additions & 0 deletions package-osx.sh
@@ -0,0 +1,17 @@
#!/bin/sh
cd osx-package-files
rm -f Iceball.icns
iconutil -c icns -o Iceball.icns Iceball.iconset
cd ..
rm -rf Iceball.app
mkdir -p Iceball.app/Contents/MacOS
mkdir -p Iceball.app/Contents/libs
mkdir -p Iceball.app/Contents/Resources
cp iceball-gl Iceball.app/Contents/MacOS
cp osx-package-files/iceball-launcher Iceball.app/Contents/MacOS
cp osx-package-files/Info.plist Iceball.app/Contents
cp osx-package-files/Iceball.icns Iceball.app/Contents/Resources
cp -Rv clsave dlcache docs pkg svsave tools Iceball.app/Contents/MacOS/
dylibbundler -x Iceball.app/Contents/MacOS/iceball-gl -b -d Iceball.app/Contents/libs
chmod -R 755 Iceball.app/Contents/MacOS/*
chmod -R 755 Iceball.app/Contents/libs/*

0 comments on commit 4a165d9

Please sign in to comment.