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