=================================================================== RCS file: /cvs/ports/games/ufoai/patches/Attic/patch-configure,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- ports/games/ufoai/patches/Attic/patch-configure 2009/06/09 15:07:00 1.1.1.1 +++ ports/games/ufoai/patches/Attic/patch-configure 2009/10/30 22:04:12 1.2 @@ -1,42 +1,10 @@ -$OpenBSD: patch-configure,v 1.1.1.1 2009/06/09 14:07:00 yason Exp $ ---- configure.orig Fri Apr 25 20:48:14 2008 -+++ configure Tue Jun 9 18:00:35 2009 -@@ -2147,38 +2147,13 @@ elif test `echo $target_os | sed "s/\(darwin\).*/\1/"` +$OpenBSD: patch-configure,v 1.2 2009/10/30 22:04:12 yason Exp $ +--- configure.orig Sat Oct 31 00:48:54 2009 ++++ configure Sat Oct 31 00:50:27 2009 +@@ -2143,6 +2143,13 @@ elif test `echo $target_os | sed "s/\(solaris\).*/\1/" then - TARGET_OS=darwin + TARGET_OS=solaris -- CFLAGS="$CFLAGS -F$with_opengl_framework" -- LDFLAGS="$LDFLAGS -framework IOKit -framework Foundation -framework OpenGL" -- # fix this darn SDL stuff.... -- if test -d /Library/Frameworks/SDL.framework -- then -- sdl_mac_cflags="$sdl_mac_cflags -I/Library/Frameworks/SDL.framework/Headers" -- sdl_mac_ldflags="$sdl_mac_ldflags -framework SDL" -- else -- # should test for different framework locations, like /System/Library/Frameworks -- # and ~/Library/Frameworks..... later.... -- { { echo "$as_me:$LINENO: error: Could not find SDL Framework at /Library/Frameworks." >&5 --echo "$as_me: error: Could not find SDL Framework at /Library/Frameworks." >&2;} -- { (exit 1); exit 1; }; } -- fi -- if test -d /Library/Frameworks/SDL_mixer.framework -- then -- sdl_mac_cflags="$sdl_mac_cflags -I/Library/Frameworks/SDL_mixer.framework/Headers" -- sdl_mac_ldflags="$sdl_mac_ldflags -framework SDL_mixer" -- else -- { { echo "$as_me:$LINENO: error: Could not find SDL_mixer Framework at /Library/Frameworks." >&5 --echo "$as_me: error: Could not find SDL_mixer Framework at /Library/Frameworks." >&2;} -- { (exit 1); exit 1; }; } -- fi -- if test -d /Library/Frameworks/SDL_ttf.framework -- then -- sdl_mac_cflags="$sdl_mac_cflags -I/Library/Frameworks/SDL_ttf.framework/Headers" -- sdl_mac_ldflags="$sdl_mac_ldflags -framework SDL_ttf" -- else -- { { echo "$as_me:$LINENO: error: Could not find SDL_ttf Framework at /Library/Frameworks." >&5 --echo "$as_me: error: Could not find SDL_ttf Framework at /Library/Frameworks." >&2;} -- { (exit 1); exit 1; }; } -- fi +elif test `echo $target_os | sed "s/\(openbsd\).*/\1/"` = "openbsd" +then + TARGET_OS=openbsd @@ -44,6 +12,6 @@ + CFLAGS="$CFLAGS" + LDFLAGS="$LDFLAGS" + - ### most mac users will have their additional libs and headers under /opt/local, - ### check for that, and if present, add to CFLAGS/LDFLAGS (really convenient!) - if test -d /opt/local + elif test `echo $target_os | sed "s/\(darwin\).*/\1/"` = "darwin" + then + TARGET_OS=darwin