1 |
commit: af97cc83bc24ec1edcb296d0faaab069c49999dc |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Aug 1 20:14:43 2014 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Fri Aug 1 20:14:43 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=af97cc83 |
7 |
|
8 |
[games-puzzle/phlipple] Fix linker error with -lm |
9 |
|
10 |
Package-Manager: portage-2.2.8-r1 |
11 |
Manifest-Sign-Key: A018DE8C |
12 |
|
13 |
--- |
14 |
.../phlipple/files/phlipple-0.8.5_check-math-lib.patch | 17 +++++++++++++++++ |
15 |
games-puzzle/phlipple/phlipple-0.8.5.ebuild | 10 ++++++++-- |
16 |
2 files changed, 25 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/games-puzzle/phlipple/files/phlipple-0.8.5_check-math-lib.patch b/games-puzzle/phlipple/files/phlipple-0.8.5_check-math-lib.patch |
19 |
new file mode 100644 |
20 |
index 0000000..00f1853 |
21 |
--- /dev/null |
22 |
+++ b/games-puzzle/phlipple/files/phlipple-0.8.5_check-math-lib.patch |
23 |
@@ -0,0 +1,17 @@ |
24 |
+diff -Nuar phlipple-0.8.5.orig/configure.ac phlipple-0.8.5/configure.ac |
25 |
+--- phlipple-0.8.5.orig/configure.ac 2014-08-02 01:58:49.961024685 +0600 |
26 |
++++ phlipple-0.8.5/configure.ac 2014-08-02 02:02:28.574032234 +0600 |
27 |
+@@ -14,11 +14,13 @@ |
28 |
+ |
29 |
+ AC_CHECK_LIB(GL, main, [], AC_MSG_ERROR([OpenGL library not found.])) |
30 |
+ AC_CHECK_LIB(GLU, gluPerspective, [], AC_MSG_ERROR([GLU library not found.])) |
31 |
++AC_CHECK_LIB(m, cos, [], AC_MSG_ERROR([math library not found.])) |
32 |
+ |
33 |
+ AC_CHECK_HEADER(GL/gl.h, [], AC_MSG_ERROR(no GL/gl.h found)) |
34 |
+ AC_CHECK_HEADER(GL/glu.h, [], AC_MSG_ERROR(no GL/glu.h found)) |
35 |
+ AC_CHECK_HEADER(SDL/SDL_image.h, [], AC_MSG_ERROR(no SDL/SDL_image.h found)) |
36 |
+ AC_CHECK_HEADER(SDL/SDL_mixer.h, [], AC_MSG_ERROR(no SDL/SDL_mixer.h found)) |
37 |
++AC_CHECK_HEADER(math.h, [], AC_MSG_ERROR(no math.h found)) |
38 |
+ |
39 |
+ AC_ARG_WITH(icondir, |
40 |
+ AS_HELP_STRING([--with-icondir=DIR],[icon files [DATAROOTDIR/pixmaps]]), |
41 |
|
42 |
diff --git a/games-puzzle/phlipple/phlipple-0.8.5.ebuild b/games-puzzle/phlipple/phlipple-0.8.5.ebuild |
43 |
index 1b176cb..c538001 100644 |
44 |
--- a/games-puzzle/phlipple/phlipple-0.8.5.ebuild |
45 |
+++ b/games-puzzle/phlipple/phlipple-0.8.5.ebuild |
46 |
@@ -1,10 +1,10 @@ |
47 |
-# Copyright 1999-2013 Gentoo Foundation |
48 |
+# Copyright 1999-2014 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: games-puzzle/phlipple/phlipple-0.8.1.ebuild frostwork Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
-inherit eutils games flag-o-matic |
55 |
+inherit autotools eutils games flag-o-matic |
56 |
|
57 |
DESCRIPTION="An unique puzzle game with the goal to reduce a 3D shape to a single square" |
58 |
HOMEPAGE="http://phlipple.sourceforge.net/" |
59 |
@@ -21,3 +21,9 @@ DEPEND="media-libs/libsdl:0 |
60 |
media-libs/sdl-ttf:0 |
61 |
virtual/opengl |
62 |
virtual/glu" |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ # fix fails to link on new glibc |
66 |
+ epatch "${FILESDIR}/${P}_check-math-lib.patch" |
67 |
+ eautoreconf |
68 |
+} |