blob: dc4b05bc3becedbde8d72fb1d4a7079f147b219c (
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
|
--- 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
|