updated README, added broken OSX packager tool
@ -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 \
|
||||||
|
@ -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/
|
||||||
@ -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)
|
||||||
|
BIN
osx-package-files/Iceball.icns
Normal file
BIN
osx-package-files/Iceball.iconset/icon_128x128.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
osx-package-files/Iceball.iconset/icon_128x128@2x.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
osx-package-files/Iceball.iconset/icon_16x16.png
Normal file
After Width: | Height: | Size: 951 B |
BIN
osx-package-files/Iceball.iconset/icon_16x16@2x.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
osx-package-files/Iceball.iconset/icon_256x256.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
osx-package-files/Iceball.iconset/icon_256x256@2x.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
osx-package-files/Iceball.iconset/icon_32x32.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
osx-package-files/Iceball.iconset/icon_32x32@2x.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
osx-package-files/Iceball.iconset/icon_512x512.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
osx-package-files/Iceball.iconset/icon_512x512@2x.png
Normal file
After Width: | Height: | Size: 9.7 KiB |
32
osx-package-files/Info.plist
Normal file
@ -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
osx-package-files/iceball-launcher
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd "${0%/*}"
|
||||||
|
./iceball-gl -s 0 pkg/base pkg/maps/mesa.vxl
|
17
package-osx.sh
Executable file
@ -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/*
|