Annotation of ports/games/ufoai/patches/patch-configure, Revision 1.1
1.1 ! yason 1: $OpenBSD$
! 2: --- configure.orig Fri Apr 25 20:48:14 2008
! 3: +++ configure Tue Jun 9 18:00:35 2009
! 4: @@ -2147,38 +2147,13 @@ elif test `echo $target_os | sed "s/\(darwin\).*/\1/"`
! 5: then
! 6: TARGET_OS=darwin
! 7:
! 8: - CFLAGS="$CFLAGS -F$with_opengl_framework"
! 9: - LDFLAGS="$LDFLAGS -framework IOKit -framework Foundation -framework OpenGL"
! 10: - # fix this darn SDL stuff....
! 11: - if test -d /Library/Frameworks/SDL.framework
! 12: - then
! 13: - sdl_mac_cflags="$sdl_mac_cflags -I/Library/Frameworks/SDL.framework/Headers"
! 14: - sdl_mac_ldflags="$sdl_mac_ldflags -framework SDL"
! 15: - else
! 16: - # should test for different framework locations, like /System/Library/Frameworks
! 17: - # and ~/Library/Frameworks..... later....
! 18: - { { echo "$as_me:$LINENO: error: Could not find SDL Framework at /Library/Frameworks." >&5
! 19: -echo "$as_me: error: Could not find SDL Framework at /Library/Frameworks." >&2;}
! 20: - { (exit 1); exit 1; }; }
! 21: - fi
! 22: - if test -d /Library/Frameworks/SDL_mixer.framework
! 23: - then
! 24: - sdl_mac_cflags="$sdl_mac_cflags -I/Library/Frameworks/SDL_mixer.framework/Headers"
! 25: - sdl_mac_ldflags="$sdl_mac_ldflags -framework SDL_mixer"
! 26: - else
! 27: - { { echo "$as_me:$LINENO: error: Could not find SDL_mixer Framework at /Library/Frameworks." >&5
! 28: -echo "$as_me: error: Could not find SDL_mixer Framework at /Library/Frameworks." >&2;}
! 29: - { (exit 1); exit 1; }; }
! 30: - fi
! 31: - if test -d /Library/Frameworks/SDL_ttf.framework
! 32: - then
! 33: - sdl_mac_cflags="$sdl_mac_cflags -I/Library/Frameworks/SDL_ttf.framework/Headers"
! 34: - sdl_mac_ldflags="$sdl_mac_ldflags -framework SDL_ttf"
! 35: - else
! 36: - { { echo "$as_me:$LINENO: error: Could not find SDL_ttf Framework at /Library/Frameworks." >&5
! 37: -echo "$as_me: error: Could not find SDL_ttf Framework at /Library/Frameworks." >&2;}
! 38: - { (exit 1); exit 1; }; }
! 39: - fi
! 40: +elif test `echo $target_os | sed "s/\(openbsd\).*/\1/"` = "openbsd"
! 41: +then
! 42: + TARGET_OS=openbsd
! 43: +
! 44: + CFLAGS="$CFLAGS"
! 45: + LDFLAGS="$LDFLAGS"
! 46: +
! 47: ### most mac users will have their additional libs and headers under /opt/local,
! 48: ### check for that, and if present, add to CFLAGS/LDFLAGS (really convenient!)
! 49: if test -d /opt/local
CVSweb