summaryrefslogtreecommitdiff
blob: ceb478f3d828eb588a8963afe96a7571d93f57ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
https://bugs.gentoo.org/655798

--- sge030809/Makefile.conf
+++ sge030809/Makefile.conf
@@ -35,16 +35,16 @@
 SGE_LIBS =$(shell sdl-config --libs) -lstdc++
 
 
-# Is freetype-config available?
-HAVE_FT =$(shell if (freetype-config --version) < /dev/null > /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
+# Is freetype available?
+HAVE_FT =$(shell if pkg-config --exists freetype2 ; then echo "y"; else echo "n"; fi;)
 ifeq ($(HAVE_FT),n)
   USE_FT = n
 endif
 
 ifneq ($(USE_FT),n)
   USE_FT = y
-  SGE_LIBS +=$(shell freetype-config --libs)
-  FT_CFLAGS =$(shell freetype-config --cflags)
+  SGE_LIBS +=$(shell pkg-config --libs freetype2)
+  FT_CFLAGS =$(shell pkg-config --cflags freetype2)
 endif