summaryrefslogtreecommitdiff
blob: bd35d6283d21f9f176a3a4465a3ed60278f1e2bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,11 @@
 
 PKGS=freetype2 dbus-1 libavcodec libavutil libavformat libswresample libswscale libpcre
 
-LIBS+=-lrt -lpthread $(shell pkg-config --libs $(PKGS)) -L/opt/vc/lib
+PKG_CONFIG ?= pkg-config
 
-INCLUDES+=$(shell pkg-config --cflags $(PKGS)) -I/opt/vc/include -I. -Ilinux
+LIBS+=-lrt -lpthread $(shell $(PKG_CONFIG) --libs $(PKGS)) -L${SYSROOT}/opt/vc/lib
+
+INCLUDES+=$(shell $(PKG_CONFIG) --cflags $(PKGS)) -I${SYSROOT}/opt/vc/include -I. -Ilinux
 
 DIST ?= omxplayer-dist