diff options
author | David Seifert <soap@gentoo.org> | 2020-07-05 02:23:26 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-07-05 02:23:26 +0200 |
commit | 1c9532d3bd70edd5e4e3d296097a058e68c87b0a (patch) | |
tree | fd92cc01d0a08f87573dc44487560ffb69dad0c4 /games-emulation/generator/files/generator-0.35_p4-autoconf.patch | |
parent | games-arcade/lbreakout2: Call AM_PROG_AR (diff) | |
download | gentoo-1c9532d3bd70edd5e4e3d296097a058e68c87b0a.tar.gz gentoo-1c9532d3bd70edd5e4e3d296097a058e68c87b0a.tar.bz2 gentoo-1c9532d3bd70edd5e4e3d296097a058e68c87b0a.zip |
games-emulation/generator: Fix build system
Closes: https://bugs.gentoo.org/656344
Closes: https://bugs.gentoo.org/686198
Closes: https://bugs.gentoo.org/707776
Closes: https://bugs.gentoo.org/724416
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'games-emulation/generator/files/generator-0.35_p4-autoconf.patch')
-rw-r--r-- | games-emulation/generator/files/generator-0.35_p4-autoconf.patch | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/games-emulation/generator/files/generator-0.35_p4-autoconf.patch b/games-emulation/generator/files/generator-0.35_p4-autoconf.patch new file mode 100644 index 000000000000..ccc9655a2a72 --- /dev/null +++ b/games-emulation/generator/files/generator-0.35_p4-autoconf.patch @@ -0,0 +1,102 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -28,15 +28,12 @@ + AC_ARG_WITH(tcltk, + AS_HELP_STRING(--with-tcltk,Create tcltk version), + MY_PROG="generator-tcltk") +- AC_ARG_WITH(gtk, +- AS_HELP_STRING(--with-gtk,Create gtk version), +- MY_PROG="generator-gtk") + AC_ARG_WITH(sdl, + AS_HELP_STRING(--with-sdl,Create SDL version), + [MY_PROG="generator-sdl"; USE_SDL_AUDIO=yes]) + if [[ "x$MY_PROG" = "x" ]]; then + AC_MSG_ERROR(You must select a user interface type: +- svgalib allegro tcltk gtk sdl) ++ svgalib allegro tcltk sdl) + fi + if [[ "x$MY_PROG" = "xgenerator-allegro" ]]; then + AC_DEFINE(ALLEGRO, 1, [Allegro version]) +@@ -202,50 +199,6 @@ + CFLAGS="$CFLAGS -Wstrict-prototypes -Wunused" + fi + fi +- if [[ "x$DEBUG" != "xno" ]]; then +- AC_MSG_RESULT(Turning on debug flags) +- CFLAGS="$CFLAGS -g -O" +- optimum=no +- else +- if [[ "x$GCCVER" != "xno" ]]; then +- AC_MSG_RESULT(Turning on gcc optimisations) +- CFLAGS="$CFLAGS -O3 -fomit-frame-pointer" +- if [[ "x$GCCVER" = "x3" ]]; then +- AC_MSG_RESULT(Turning on gcc 3 optimisations) +- CFLAGS="$CFLAGS -fno-math-errno" +- fi +- case "$CFLAGS" in +- *mcpu*|*march*) AC_MSG_RESULT(Skipping target optimisations) +- ;; +- *) case "$target_cpu" in +- i386) AC_MSG_RESULT(Turning on i386 optimisations) +- CFLAGS="$CFLAGS -march=i386 -ffast-math" +- ;; +- i486) AC_MSG_RESULT(Turning on i486 optimisations) +- CFLAGS="$CFLAGS -march=i486 -ffast-math" +- ;; +- i586) AC_MSG_RESULT(Turning on pentium optimisations) +- # cannot do malign-double as we link to other libraries and +- # it would break binary compatibility +- CFLAGS="$CFLAGS -march=pentium -ffast-math" +- ;; +- i?86) AC_MSG_RESULT(Turning on i686 optimisations) +- # cannot do malign-double as we link to other libraries and +- # it would break binary compatibility +- CFLAGS="$CFLAGS -march=i686 -ffast-math" +- ;; +- alpha*) AC_MSG_RESULT(Adding -mieee for Alpha) +- CFLAGS="$CFLAGS -mieee" +- ;; +- *) AC_MSG_RESULT(Sorry unknown target CPU) +- ;; +- esac +- esac +- else +- AC_MSG_WARN(You did not opt for gcc optimisations!) +- optimum=no +- fi +- fi + AC_CHECK_LIB(jpeg, jpeg_start_compress, + [ MY_LIBS="-ljpeg $MY_LIBS"; AC_DEFINE(JPEG, 1, [JPEG features]) ]) + +@@ -259,6 +212,7 @@ + AC_PROG_CC + AC_PROG_CPP + AC_PROG_RANLIB ++ AM_PROG_AR + AC_PROG_MAKE_SET + AC_ISC_POSIX + AC_PROG_INSTALL +@@ -272,14 +226,7 @@ + + AC_PATH_XTRA + +- if [[ "x$MY_PROG" = "xgenerator-gtk" ]]; then +- MY_SUBDIRS="glade gtkopts $MY_SUBDIRS" +- AM_PATH_GTK(1.2.10,,AC_MSG_ERROR(Generator needs gtk 1.2.10 or later)) +- AM_PATH_SDL(1.2.6,,AC_MSG_ERROR(Generator needs sdk 1.2.6 or later)) +- +- MY_LIBS="$MY_LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS" +- CFLAGS="$CFLAGS $X_CFLAGS" +- elif [[ "x$MY_PROG" = "xgenerator-sdl" ]]; then ++ if [[ "x$MY_PROG" = "xgenerator-sdl" ]]; then + MY_SUBDIRS="gtkopts $MY_SUBDIRS" + AM_PATH_SDL(1.2.6,,AC_MSG_ERROR(Generator needs sdk 1.2.6 or later)) + +@@ -305,6 +252,7 @@ + AC_CHECK_SIZEOF(unsigned long, 4) + AC_CHECK_SIZEOF(unsigned long long, 8) + AC_CHECK_HEADERS(sys/param.h) ++ AC_CHECK_HEADERS(sys/time.h) + AC_CHECK_HEADERS(bzlib.h) + AC_CHECK_HEADERS(zlib.h) + AC_CHECK_HEADERS(tcl8.0.h) |