ports/emulators/hugo/files/patch-configure
Muhammad Moinur Rahman 6cb3a901b4 emulators/hugo: Unbreak on HEAD
- Refresh patches
- Pet portclippy
- Adopt port
2023-05-15 17:31:46 +02:00

82 lines
1.7 KiB
Text

--- configure.orig 2005-04-05 19:28:53 UTC
+++ configure
@@ -3256,7 +3256,7 @@ if test "${ac_cv_lib_SDL_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lSDL $LIBS"
+LIBS="`${SDL_CONFIG} --libs` $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -3312,7 +3312,7 @@ if test $ac_cv_lib_SDL_main = yes; then
#define HAVE_LIBSDL 1
_ACEOF
- LIBS="-lSDL $LIBS"
+ LIBS="`${SDL_CONFIG} --libs` $LIBS"
fi
#,,[AC_MSG_ERROR([need SDL. See #http://www.libsdl.org])])
@@ -7877,7 +7877,7 @@ _ACEOF
echo "$as_me:$LINENO: checking whether netplay support was asked" >&5
echo $ECHO_N "checking whether netplay support was asked... $ECHO_C" >&6
-if test "x$HAVE_LIBSDL_NET" == "xyes"
+if test "x$HAVE_LIBSDL_NET" = "xyes"
then
@@ -8657,13 +8657,13 @@ fi
fi
;;
- i386-FreeBSD)
+ *-FreeBSD)
echo "FreeBSD build enabled"
HUGO_TARGET_MACHINE="FREEBSD"
- CFLAGS="$CFLAGS `sdl-config --cflags`"
- LIBS="$LIBS `sdl-config --libs`"
+ CFLAGS="$CFLAGS `${SDL_CONFIG} --cflags`"
+ LIBS="$LIBS `${SDL_CONFIG} --libs`"
@@ -8674,6 +8674,35 @@ else
SDL_FREEBSD_TRUE='#'
SDL_FREEBSD_FALSE=
fi
+
+
+ if test "$USE_SDL_mixer" = "yes"; then
+ LIBS="$LIBS -lSDL_mixer "
+
+
+if true; then
+ SDL_MIXER_LINUX_TRUE=
+ SDL_MIXER_LINUX_FALSE='#'
+else
+ SDL_MIXER_LINUX_TRUE='#'
+ SDL_MIXER_LINUX_FALSE=
+fi
+
+ fi
+
+ if test "$OGG_SUPPORT" = "yes"; then
+ LIBS="$LIBS -lvorbis -lvorbisfile"
+
+
+if true; then
+ ZE_HCD_OGG_SUPPORT_TRUE=
+ ZE_HCD_OGG_SUPPORT_FALSE='#'
+else
+ ZE_HCD_OGG_SUPPORT_TRUE='#'
+ ZE_HCD_OGG_SUPPORT_FALSE=
+fi
+ # ZE_: needs to be processed after SDL_MIXER_LINUX...
+ fi
;;
sun4u-SunOS)