diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-04 16:32:19 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-04 16:32:19 +0000 |
commit | 5eba0d2252b7f7be93c7ab998af2cc6d3a765ed2 (patch) | |
tree | c28f8d3c65ac5efbdcfe2574dcb50358bf103957 /games-strategy/dunelegacy/files | |
parent | Version bump wrt bug #455218. (diff) | |
download | gentoo-2-5eba0d2252b7f7be93c7ab998af2cc6d3a765ed2.tar.gz gentoo-2-5eba0d2252b7f7be93c7ab998af2cc6d3a765ed2.tar.bz2 gentoo-2-5eba0d2252b7f7be93c7ab998af2cc6d3a765ed2.zip |
version bump
(Portage version: 2.2.0_alpha164/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-strategy/dunelegacy/files')
-rw-r--r-- | games-strategy/dunelegacy/files/dunelegacy-0.96.3-build.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/games-strategy/dunelegacy/files/dunelegacy-0.96.3-build.patch b/games-strategy/dunelegacy/files/dunelegacy-0.96.3-build.patch new file mode 100644 index 000000000000..93dd907738bc --- /dev/null +++ b/games-strategy/dunelegacy/files/dunelegacy-0.96.3-build.patch @@ -0,0 +1,60 @@ +Author: hasufell <hasufell@gentoo.org> +Date: Thu Aug 9 18:57:40 2012 +0200 + + respect flags + use pkg-config + use LDADD instead of LDFLAGS for libs + +--- configure.ac ++++ configure.ac +@@ -16,14 +16,6 @@ + + AC_SUBST(dunelegacydatadir) + +-dnl Some flags for gcc +-CXXFLAGS="-O3 -pipe -pedantic -Wall -Wextra -Wno-unused-parameter -DNDEBUG" +-dnl Additional flags: -Wconversion -Wno-sign-conversion +- +-dnl Some flags for clang +-dnl CXXFLAGS="-O3 -pipe -pedantic -Weverything -Wno-sign-conversion -Wno-conversion -Wno-shadow -Wno-missing-noreturn -Wno-padded -Wno-packed -Wno-weak-vtables -Wno-c++11-narrowing -Wno-cast-align -Wno-unreachable-code -Wno-missing-prototypes -Wno-float-equal -Wno-global-constructors -Wno-exit-time-destructors -Wno-format-nonliteral -Wno-unused-macros -Wextra -Wno-unused-parameter" +- +- + dnl test for -ffp-contract=off (gcc >= 4.6) and use -mno-fused-madd instead + oldCFLAGS="$CFLAGS" + CFLAGS="-ffp-contract=off" +@@ -33,34 +25,14 @@ + ) + CFLAGS="$oldCFLAGS" + +-case "$target_cpu" in +-i*86) CXXFLAGS="$CXXFLAGS -mfpmath=sse -msse";; +-esac +- +-AC_ARG_ENABLE([debug], +- [AS_HELP_STRING([--enable-debug], +- [compile with debug information @<:@default=disabled@:>@])], +- [], +- []) +- +-if test "$enable_debug" = "yes" ; then +- CXXFLAGS="$CXXFLAGS -g" +-fi + + dnl Check for SDL library + SDL_VERSION=1.2.0 +-AM_PATH_SDL($SDL_VERSION, : , AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])) ++PKG_CHECK_MODULES([SDL], [sdl >= $SDL_VERSION SDL_mixer]) + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + +-dnl Check for SDL_mixer library. +-AC_CHECK_LIB(SDL_mixer, +- Mix_OpenAudio, +- LIBS="$LIBS -lSDL_mixer", +- AC_MSG_ERROR([*** SDL_mixer library not found!]) +-) +- + dnl enet defines + AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)]) + AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)]) |