1 |
commit: dd9e2f8cdfd87946c1a373357e4aaaa5c5375aed |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 7 08:54:17 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 7 08:54:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd9e2f8c |
7 |
|
8 |
games-sports/foobillard: Use pkg-config to find freetype |
9 |
|
10 |
Closes: https://bugs.gentoo.org/654978 |
11 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
12 |
|
13 |
.../files/foobillard-3.0a-as-needed.patch | 4 +-- |
14 |
.../foobillard/files/foobillard-3.0a-fbsd.patch | 4 +-- |
15 |
.../files/foobillard-3.0a-freetype_pkgconfig.patch | 35 ++++++++++++++++++++++ |
16 |
games-sports/foobillard/foobillard-3.0a-r1.ebuild | 8 +++-- |
17 |
4 files changed, 44 insertions(+), 7 deletions(-) |
18 |
|
19 |
diff --git a/games-sports/foobillard/files/foobillard-3.0a-as-needed.patch b/games-sports/foobillard/files/foobillard-3.0a-as-needed.patch |
20 |
index 1d9ddbd8b72..272f9c71177 100644 |
21 |
--- a/games-sports/foobillard/files/foobillard-3.0a-as-needed.patch |
22 |
+++ b/games-sports/foobillard/files/foobillard-3.0a-as-needed.patch |
23 |
@@ -4,7 +4,7 @@ |
24 |
|
25 |
#LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz |
26 |
#LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz |
27 |
--AM_LDFLAGS = ${all_libraries} `freetype-config --libs` ${SDL_LIBS} ${GLUT_LIBS} |
28 |
+-AM_LDFLAGS = ${all_libraries} `pkg-config --libs freetype2` ${SDL_LIBS} ${GLUT_LIBS} |
29 |
#LDADD = ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz -L/home/floh/nvsdk/OpenGL/lib/ -lnvparse |
30 |
-LDADD = ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz |
31 |
-+LIBS = ${all_libraries} `freetype-config --libs` ${SDL_LIBS} ${GLUT_LIBS} ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz |
32 |
++LIBS = ${all_libraries} `pkg-config --libs freetype2` ${SDL_LIBS} ${GLUT_LIBS} ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz |
33 |
|
34 |
diff --git a/games-sports/foobillard/files/foobillard-3.0a-fbsd.patch b/games-sports/foobillard/files/foobillard-3.0a-fbsd.patch |
35 |
index 301260cb836..3b7fc953a4d 100644 |
36 |
--- a/games-sports/foobillard/files/foobillard-3.0a-fbsd.patch |
37 |
+++ b/games-sports/foobillard/files/foobillard-3.0a-fbsd.patch |
38 |
@@ -6,8 +6,8 @@ Index: foobillard-3.0a/configure.in |
39 |
|
40 |
dnl Checks for header files. |
41 |
AC_HEADER_STDC |
42 |
--AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h ft2build.h) |
43 |
-+AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h ft2build.h endian.h sys/endian.h) |
44 |
+-AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h) |
45 |
++AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h endian.h sys/endian.h) |
46 |
|
47 |
dnl Checks for typedefs, structures, and compiler characteristics. |
48 |
AC_C_CONST |
49 |
|
50 |
diff --git a/games-sports/foobillard/files/foobillard-3.0a-freetype_pkgconfig.patch b/games-sports/foobillard/files/foobillard-3.0a-freetype_pkgconfig.patch |
51 |
new file mode 100644 |
52 |
index 00000000000..b01c53ecbc8 |
53 |
--- /dev/null |
54 |
+++ b/games-sports/foobillard/files/foobillard-3.0a-freetype_pkgconfig.patch |
55 |
@@ -0,0 +1,35 @@ |
56 |
+--- foobillard-3.0a/configure.in |
57 |
++++ foobillard-3.0a/configure.in |
58 |
+@@ -13,7 +13,7 @@ |
59 |
+ |
60 |
+ dnl Checks for header files. |
61 |
+ AC_HEADER_STDC |
62 |
+-AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h ft2build.h) |
63 |
++AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h) |
64 |
+ |
65 |
+ dnl Checks for typedefs, structures, and compiler characteristics. |
66 |
+ AC_C_CONST |
67 |
+--- foobillard-3.0a/src/Makefile.am |
68 |
++++ foobillard-3.0a/src/Makefile.am |
69 |
+@@ -50,7 +50,7 @@ |
70 |
+ #CC = gcc |
71 |
+ #CXXFLAGS = -O6 -s |
72 |
+ #CFLAGS = -DXMESA -Wall -O3 -I$(INCDIR) |
73 |
+-#CFLAGS = -Wall -O3 -I$(INCDIR) `freetype-config --cflags` |
74 |
++#CFLAGS = -Wall -O3 -I$(INCDIR) `pkg-config --cflags freetype2` |
75 |
+ if USE_SDL |
76 |
+ SDL_CFLAGS = `sdl-config --cflags` -DUSE_SDL |
77 |
+ SDL_LIBS = `sdl-config --libs` |
78 |
+@@ -79,10 +79,10 @@ |
79 |
+ SOUND_CFLAGS = |
80 |
+ endif |
81 |
+ |
82 |
+-AM_CFLAGS = -Wall `freetype-config --cflags` ${SDL_CFLAGS} ${NVIDIA_CFLAGS} ${SOUND_CFLAGS} ${DEBUG_CFLAGS} |
83 |
++AM_CFLAGS = -Wall `pkg-config --cflags freetype2` ${SDL_CFLAGS} ${NVIDIA_CFLAGS} ${SOUND_CFLAGS} ${DEBUG_CFLAGS} |
84 |
+ |
85 |
+ #LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz |
86 |
+ #LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz |
87 |
+-AM_LDFLAGS = ${all_libraries} `freetype-config --libs` ${SDL_LIBS} ${GLUT_LIBS} |
88 |
++AM_LDFLAGS = ${all_libraries} `pkg-config --libs freetype2` ${SDL_LIBS} ${GLUT_LIBS} |
89 |
+ #LDADD = ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz -L/home/floh/nvsdk/OpenGL/lib/ -lnvparse |
90 |
+ LDADD = ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz |
91 |
|
92 |
diff --git a/games-sports/foobillard/foobillard-3.0a-r1.ebuild b/games-sports/foobillard/foobillard-3.0a-r1.ebuild |
93 |
index 02844b26cb9..4847f1d1ffc 100644 |
94 |
--- a/games-sports/foobillard/foobillard-3.0a-r1.ebuild |
95 |
+++ b/games-sports/foobillard/foobillard-3.0a-r1.ebuild |
96 |
@@ -13,7 +13,7 @@ SLOT="0" |
97 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
98 |
IUSE="sdl video_cards_nvidia" |
99 |
|
100 |
-DEPEND="x11-libs/libXaw |
101 |
+RDEPEND="x11-libs/libXaw |
102 |
x11-libs/libXi |
103 |
virtual/opengl |
104 |
virtual/glu |
105 |
@@ -22,16 +22,18 @@ DEPEND="x11-libs/libXaw |
106 |
sdl? ( media-libs/libsdl[video] ) |
107 |
!sdl? ( media-libs/freeglut ) |
108 |
" |
109 |
-RDEPEND="${DEPEND}" |
110 |
+DEPEND="${RDEPEND} |
111 |
+ virtual/pkgconfig" |
112 |
|
113 |
src_prepare() { |
114 |
default |
115 |
eapply \ |
116 |
"${FILESDIR}"/${P}-no_nvidia.patch \ |
117 |
+ "${FILESDIR}"/${P}-freetype_pkgconfig.patch \ |
118 |
"${FILESDIR}"/${P}-fbsd.patch \ |
119 |
"${FILESDIR}"/${P}-as-needed.patch \ |
120 |
"${FILESDIR}"/${P}-gl-clamp.patch |
121 |
- mv configure.{in,ac} |
122 |
+ mv configure.{in,ac} || die |
123 |
rm aclocal.m4 |
124 |
|
125 |
eautoreconf |