Commit d94a1797 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40200
parent 22120eac
...@@ -18,19 +18,6 @@ process: ...@@ -18,19 +18,6 @@ process:
(You may need to create the subdirs of /usr/local manually.) (You may need to create the subdirs of /usr/local manually.)
/*
To use the library once it's built, you need to use the "Carbon
framework", which is the port of the old Mac Toolbox to OS X.
To do this, use the -F and -framework arguments for compiling
and linking, respectively:
cc -c myprog.c -I/usr/local/include/SDL -F/System/Library/Frameworks/Carbon.framework
cc myprog.o -L/usr/local/lib -lSDL -framework Carbon
sdl-config knows about the linking path and -framework, so it's
recommended to use it to fill in your Makefile variables.
*/
To use the library once it's built, you essential have two possibilities: To use the library once it's built, you essential have two possibilities:
use the traditional autoconf/automake/make method, or use Apple's Project Builder. use the traditional autoconf/automake/make method, or use Apple's Project Builder.
...@@ -65,19 +52,21 @@ will want to do the other steps, too. ...@@ -65,19 +52,21 @@ will want to do the other steps, too.
3) Add something like the following rule to your Makefile.am: 3) Add something like the following rule to your Makefile.am:
APP_NAME.app: EXE_NAME bundle_contents = APP_NAME.app/Contents
mkdir -p $@/Contents/MacOS APP_NAME_bundle: EXE_NAME
mkdir -p $@/Contents/Resources mkdir -p $(bundle_contents)/MacOS
mkdir -p $@/Contents/Resources/SDL_main.nib mkdir -p $(bundle_contents)/Resources
echo "APPL????" > $@/Contents/PkgInfo mkdir -p $(bundle_contents)/Resources/SDL_main.nib
$(INSTALL_DATA) Info.plist $@/Contents/ echo "APPL????" > $(bundle_contents)/PkgInfo
$(INSTALL_DATA) SDL_main.nib/*.nib $@/Contents/Resources/ $(INSTALL_DATA) Info.plist $(bundle_contents)/
$(INSTALL_PROGRAM) $< $@/Contents/MacOS/ $(INSTALL_DATA) SDL_main.nib/*.nib $(bundle_contents)/Resources/SDLMain.nib
$(INSTALL_PROGRAM) $< $(bundle_contents)/MacOS/
You should replace EXE_NAME with the name of the executable. APP_NAME is what You should replace EXE_NAME with the name of the executable. APP_NAME is what
will be visible to the user in the Finder. Usually it will be the same will be visible to the user in the Finder. Usually it will be the same
as EXE_NAME but capitalized. E.g. if EXE_NAME is "testgame" then APP_NAME as EXE_NAME but capitalized. E.g. if EXE_NAME is "testgame" then APP_NAME
usually is "TestGame" usually is "TestGame". You might also want to use @PACKAGE@ to use the package
name as specified in your configure.in file.
If your project builds more than one application, you will have to do a bit more. If your project builds more than one application, you will have to do a bit more.
For each of your target applications, you need a seperate rule. Furthermore, each For each of your target applications, you need a seperate rule. Furthermore, each
...@@ -92,12 +81,13 @@ APP_NAME.app: EXE_NAME ...@@ -92,12 +81,13 @@ APP_NAME.app: EXE_NAME
4) If you want the create bundles to be installed, you may want to add this 4) If you want the create bundles to be installed, you may want to add this
rule to your Makefile.am: rule to your Makefile.am:
install-exec-local: Exult.app install-exec-hook: APP_NAME_bundle
mkdir -p /Applications/ rm -rf $(DESTDIR)$(prefix)/Applications/APP_NAME.app
cp -r $< /Applications/ mkdir -p $(DESTDIR)$(prefix)/Applications/
cp -r $< /$(DESTDIR)$(prefix)Applications/
This rule takes the Bundle created by the rule from step 3 and installs them This rule takes the Bundle created by the rule from step 3 and installs them
into /Applications/. An alternate installation place would be $HOME/Applications/ into $(DESTDIR)$(prefix)/Applications/.
Again, if you want to install multiple applications, you will have to augment Again, if you want to install multiple applications, you will have to augment
the make rule accordingly. the make rule accordingly.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment