more work done on Mac OSX version
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1752 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
		
							parent
							
								
									c1ede1f657
								
							
						
					
					
						commit
						431484914e
					
				@ -7,7 +7,7 @@
 | 
				
			|||||||
	<key>CFBundleExecutable</key>
 | 
						<key>CFBundleExecutable</key>
 | 
				
			||||||
	<string>Grafx2</string>
 | 
						<string>Grafx2</string>
 | 
				
			||||||
	<key>CFBundleIconFile</key>
 | 
						<key>CFBundleIconFile</key>
 | 
				
			||||||
	<string></string>
 | 
						<string>Grafx2.icns</string>
 | 
				
			||||||
	<key>CFBundleIdentifier</key>
 | 
						<key>CFBundleIdentifier</key>
 | 
				
			||||||
	<string>com.googlecode.grafx2</string>
 | 
						<string>com.googlecode.grafx2</string>
 | 
				
			||||||
	<key>CFBundleInfoDictionaryVersion</key>
 | 
						<key>CFBundleInfoDictionaryVersion</key>
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								src/.DS_Store
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/.DS_Store
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/Grafx2.icns
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/Grafx2.icns
									
									
									
									
									
										Executable file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										17
									
								
								src/Makefile
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								src/Makefile
									
									
									
									
									
								
							@ -32,6 +32,10 @@
 | 
				
			|||||||
# Compile with OPTIM=0 to disable gcc optimizations, to enable debug.
 | 
					# Compile with OPTIM=0 to disable gcc optimizations, to enable debug.
 | 
				
			||||||
  STRIP = strip
 | 
					  STRIP = strip
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Specific to build MAC OS X universal binaries on Tiger ###
 | 
				
			||||||
 | 
					### (may need to be changed on your OS) ###
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MACOSX_SYSROOT = /Developer/SDKs/MacOSX10.4u.sdk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### PLATFORM DETECTION AND CONFIGURATION ###
 | 
					### PLATFORM DETECTION AND CONFIGURATION ###
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -83,17 +87,19 @@ else
 | 
				
			|||||||
    DELCOMMAND = rm -rf
 | 
					    DELCOMMAND = rm -rf
 | 
				
			||||||
    MKDIR = mkdir -p
 | 
					    MKDIR = mkdir -p
 | 
				
			||||||
    RMDIR = rmdir
 | 
					    RMDIR = rmdir
 | 
				
			||||||
 | 
					    # Force it
 | 
				
			||||||
 | 
					    #OPTIM = 3
 | 
				
			||||||
    CP = cp
 | 
					    CP = cp
 | 
				
			||||||
    ZIP = zip
 | 
					    ZIP = zip
 | 
				
			||||||
    PLATFORMFILES = gfx2.png
 | 
					    PLATFORMFILES = gfx2.png
 | 
				
			||||||
    BIN = ../bin/grafx2
 | 
					 | 
				
			||||||
    # Where the SDL frameworks are located
 | 
					    # Where the SDL frameworks are located
 | 
				
			||||||
    FWDIR = /Library/Frameworks
 | 
					    FWDIR = /Library/Frameworks
 | 
				
			||||||
    SDLCOPT = -arch ppc -I$(FWDIR)/SDL.framework/Headers -I$(FWDIR)/SDL_image.framework/Headers -I$(FWDIR)/SDL_ttf.framework/Headers -D_THREAD_SAFE
 | 
					    BIN = ../bin/grafx2
 | 
				
			||||||
 | 
					    SDLCOPT = -arch ppc -arch i386 -I$(FWDIR)/SDL.framework/Headers -I$(FWDIR)/SDL_image.framework/Headers -I$(FWDIR)/SDL_ttf.framework/Headers -D_THREAD_SAFE
 | 
				
			||||||
    #-framework SDL_ttf 
 | 
					    #-framework SDL_ttf 
 | 
				
			||||||
    SDLLOPT = -arch ppc -L/usr/lib -framework SDL -framework SDL_image -framework Cocoa -framework Carbon -framework OpenGL
 | 
					    SDLLOPT = -isysroot $(MACOSX_SYSROOT) -arch ppc -arch i386 -L/usr/lib -framework SDL -framework SDL_image -framework Cocoa -framework Carbon -framework OpenGL
 | 
				
			||||||
    COPT = -D_DARWIN_C_SOURCE -D__macosx__ -D__linux__ -W -Wall -Wdeclaration-after-statement -O$(OPTIM) -std=c99 -c -g $(SDLCOPT) $(TTFCOPT) -I/usr/X11/include
 | 
					    COPT = -D_DARWIN_C_SOURCE -D__macosx__ -D__linux__ -W -Wall -Wdeclaration-after-statement -O$(OPTIM) -std=c99 -c -g $(SDLCOPT) $(TTFCOPT) -I/usr/X11/include
 | 
				
			||||||
    LOPT = $(SDLLOPT) -lpng
 | 
					    LOPT = $(SDLLOPT) -lpng -lz
 | 
				
			||||||
    # Use gcc for compiling. Use ncc to build a callgraph and analyze the code.
 | 
					    # Use gcc for compiling. Use ncc to build a callgraph and analyze the code.
 | 
				
			||||||
    CC = gcc
 | 
					    CC = gcc
 | 
				
			||||||
    #CC = nccgen -ncgcc -ncld -ncfabs
 | 
					    #CC = nccgen -ncgcc -ncld -ncfabs
 | 
				
			||||||
@ -382,6 +388,7 @@ $(MACAPPEXE) : $(BIN)
 | 
				
			|||||||
	mkdir -p Grafx2.app Grafx2.app/Contents Grafx2.app/Contents/Frameworks Grafx2.app/Contents/MacOS Grafx2.app/Contents/Resources
 | 
						mkdir -p Grafx2.app Grafx2.app/Contents Grafx2.app/Contents/Frameworks Grafx2.app/Contents/MacOS Grafx2.app/Contents/Resources
 | 
				
			||||||
	echo 'APPL????' > Grafx2.app/Contents/PkgInfo
 | 
						echo 'APPL????' > Grafx2.app/Contents/PkgInfo
 | 
				
			||||||
	cp ../Info.plist Grafx2.app/Contents
 | 
						cp ../Info.plist Grafx2.app/Contents
 | 
				
			||||||
 | 
						cp -r Grafx2.icns Grafx2.app/Contents/Resources
 | 
				
			||||||
	cp -r English.lproj Grafx2.app/Contents/Resources
 | 
						cp -r English.lproj Grafx2.app/Contents/Resources
 | 
				
			||||||
	cp -r ../share/grafx2/fonts Grafx2.app/Contents/Resources
 | 
						cp -r ../share/grafx2/fonts Grafx2.app/Contents/Resources
 | 
				
			||||||
	cp -r ../share/grafx2/skins Grafx2.app/Contents/Resources
 | 
						cp -r ../share/grafx2/skins Grafx2.app/Contents/Resources
 | 
				
			||||||
@ -399,6 +406,8 @@ $(MACAPPEXE) : $(BIN)
 | 
				
			|||||||
#	rm -fr Grafx2.app/Contents/Frameworks/SDL_ttf.framework/Versions
 | 
					#	rm -fr Grafx2.app/Contents/Frameworks/SDL_ttf.framework/Versions
 | 
				
			||||||
#	rm -fr Grafx2.app/Contents/Frameworks/SDL_ttf.framework/Versions
 | 
					#	rm -fr Grafx2.app/Contents/Frameworks/SDL_ttf.framework/Versions
 | 
				
			||||||
	cp $(BIN) $(MACAPPEXE)
 | 
						cp $(BIN) $(MACAPPEXE)
 | 
				
			||||||
 | 
						$(STRIP) -x -X -S $(MACAPPEXE)
 | 
				
			||||||
 | 
						chmod +x $(MACAPPEXE)
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
all : $(BIN)
 | 
					all : $(BIN)
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
				
			|||||||
@ -169,7 +169,7 @@ void Button_Message_initial(void)
 | 
				
			|||||||
    for (x=14,x_pos=0; x_pos<231; x_pos++,x++)
 | 
					    for (x=14,x_pos=0; x_pos<231; x_pos++,x++)
 | 
				
			||||||
      Pixel_in_window(x,y,Gfx->Logo_grafx2[offs_y+x_pos]);
 | 
					      Pixel_in_window(x,y,Gfx->Logo_grafx2[offs_y+x_pos]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Print_in_window(130-4*26,88,"Copyright (c) 2007-2010 by",MC_Dark,MC_Light);
 | 
					  Print_in_window(130-4*26,88,"Copyright (c) 2007-2011 by",MC_Dark,MC_Light);
 | 
				
			||||||
  Print_in_window(130-4*23,96,"the Grafx2 project team",MC_Black,MC_Light);
 | 
					  Print_in_window(130-4*23,96,"the Grafx2 project team",MC_Black,MC_Light);
 | 
				
			||||||
  Print_in_window(130-4*26,112,"Copyright (c) 1996-2001 by",MC_Dark,MC_Light);
 | 
					  Print_in_window(130-4*26,112,"Copyright (c) 1996-2001 by",MC_Dark,MC_Light);
 | 
				
			||||||
  Print_in_window(130-4*13,120,"Sunset Design",MC_Black,MC_Light);
 | 
					  Print_in_window(130-4*13,120,"Sunset Design",MC_Black,MC_Light);
 | 
				
			||||||
 | 
				
			|||||||
@ -28,6 +28,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#ifndef __no_pnglib__
 | 
					#ifndef __no_pnglib__
 | 
				
			||||||
#include <png.h>
 | 
					#include <png.h>
 | 
				
			||||||
 | 
					#if !defined(PNG_HAVE_PLTE)
 | 
				
			||||||
 | 
					#define PNG_HAVE_PLTE 0x02
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
#if (PNG_LIBPNG_VER_MAJOR <= 1) && (PNG_LIBPNG_VER_MINOR < 4)
 | 
					#if (PNG_LIBPNG_VER_MAJOR <= 1) && (PNG_LIBPNG_VER_MINOR < 4)
 | 
				
			||||||
  // Compatibility layer to allow us to use libng 1.4 or any older one.
 | 
					  // Compatibility layer to allow us to use libng 1.4 or any older one.
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
 | 
				
			|||||||
@ -67,7 +67,7 @@ static const T_Help_table helptable_about[] =
 | 
				
			|||||||
#else
 | 
					#else
 | 
				
			||||||
  HELP_TEXT ("")
 | 
					  HELP_TEXT ("")
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
  HELP_TEXT ("Copyright 2007-2010, the Grafx2 project team")
 | 
					  HELP_TEXT ("Copyright 2007-2011, the Grafx2 project team")
 | 
				
			||||||
  HELP_TEXT ("    Copyright 1996-2001, SUNSET DESIGN")
 | 
					  HELP_TEXT ("    Copyright 1996-2001, SUNSET DESIGN")
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
static const T_Help_table helptable_licence[] =
 | 
					static const T_Help_table helptable_licence[] =
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user