1 |
hasufell 13/03/04 16:32:19 |
2 |
|
3 |
Added: dunelegacy-0.96.3-build.patch |
4 |
Log: |
5 |
version bump |
6 |
|
7 |
(Portage version: 2.2.0_alpha164/cvs/Linux x86_64, signed Manifest commit with key E73C35B3) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 games-strategy/dunelegacy/files/dunelegacy-0.96.3-build.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/dunelegacy/files/dunelegacy-0.96.3-build.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/dunelegacy/files/dunelegacy-0.96.3-build.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: dunelegacy-0.96.3-build.patch |
16 |
=================================================================== |
17 |
Author: hasufell <hasufell@g.o> |
18 |
Date: Thu Aug 9 18:57:40 2012 +0200 |
19 |
|
20 |
respect flags |
21 |
use pkg-config |
22 |
use LDADD instead of LDFLAGS for libs |
23 |
|
24 |
--- configure.ac |
25 |
+++ configure.ac |
26 |
@@ -16,14 +16,6 @@ |
27 |
|
28 |
AC_SUBST(dunelegacydatadir) |
29 |
|
30 |
-dnl Some flags for gcc |
31 |
-CXXFLAGS="-O3 -pipe -pedantic -Wall -Wextra -Wno-unused-parameter -DNDEBUG" |
32 |
-dnl Additional flags: -Wconversion -Wno-sign-conversion |
33 |
- |
34 |
-dnl Some flags for clang |
35 |
-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" |
36 |
- |
37 |
- |
38 |
dnl test for -ffp-contract=off (gcc >= 4.6) and use -mno-fused-madd instead |
39 |
oldCFLAGS="$CFLAGS" |
40 |
CFLAGS="-ffp-contract=off" |
41 |
@@ -33,34 +25,14 @@ |
42 |
) |
43 |
CFLAGS="$oldCFLAGS" |
44 |
|
45 |
-case "$target_cpu" in |
46 |
-i*86) CXXFLAGS="$CXXFLAGS -mfpmath=sse -msse";; |
47 |
-esac |
48 |
- |
49 |
-AC_ARG_ENABLE([debug], |
50 |
- [AS_HELP_STRING([--enable-debug], |
51 |
- [compile with debug information @<:@default=disabled@:>@])], |
52 |
- [], |
53 |
- []) |
54 |
- |
55 |
-if test "$enable_debug" = "yes" ; then |
56 |
- CXXFLAGS="$CXXFLAGS -g" |
57 |
-fi |
58 |
|
59 |
dnl Check for SDL library |
60 |
SDL_VERSION=1.2.0 |
61 |
-AM_PATH_SDL($SDL_VERSION, : , AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])) |
62 |
+PKG_CHECK_MODULES([SDL], [sdl >= $SDL_VERSION SDL_mixer]) |
63 |
CFLAGS="$CFLAGS $SDL_CFLAGS" |
64 |
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
65 |
LIBS="$LIBS $SDL_LIBS" |
66 |
|
67 |
-dnl Check for SDL_mixer library. |
68 |
-AC_CHECK_LIB(SDL_mixer, |
69 |
- Mix_OpenAudio, |
70 |
- LIBS="$LIBS -lSDL_mixer", |
71 |
- AC_MSG_ERROR([*** SDL_mixer library not found!]) |
72 |
-) |
73 |
- |
74 |
dnl enet defines |
75 |
AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)]) |
76 |
AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)]) |