blob: 8bb28635df2bfa5c8590e34ab6f01f9680328fa4 (
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
26
27
28
29
30
31
32
33
|
makepackages | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/makepackages b/makepackages
index afeef79..a724e82 100644
--- a/makepackages
+++ b/makepackages
@@ -52,17 +52,17 @@ else
PTHREADS_LIBS = -lpthread
else
- AGG_INCLUDES = -I/usr/include/agg2
- AGG_LIBS = -lagg -lX11
+ AGG_INCLUDES = $(shell $(PKG_CONFIG) --cflags libagg)
+ AGG_LIBS = $(shell $(PKG_CONFIG) --libs libagg) -lX11
- GSL_INCLUDES =
- GSL_LIBS = -lgsl -lblas
+ GSL_INCLUDES = $(shell $(PKG_CONFIG) --cflags gsl)
+ GSL_LIBS = $(shell $(PKG_CONFIG) --libs gsl)
- FOX_INCLUDES := $(shell pkg-config fox --cflags)
- FOX_LIBS = $(shell pkg-config fox --libs)
+ FOX_INCLUDES := $(shell $(PKG_CONFIG) fox --cflags)
+ FOX_LIBS = $(shell $(PKG_CONFIG) fox --libs)
- FREETYPE_INCLUDES = -I/usr/include/freetype2
- FREETYPE_LIBS = -lfreetype
+ FREETYPE_INCLUDES = $(shell $(PKG_CONFIG) --cflags freetype2)
+ FREETYPE_LIBS = $(shell $(PKG_CONFIG) --libs freetype2)
PTHREADS_LIBS = -lpthread
endif
|