X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/993f82f8a5914ff2d187f54930b7f0f32a322e05..6a9812501258df26b7c487e50744b91abe8ebe39:/Linux.mk diff --git a/Linux.mk b/Linux.mk index 26b27ed..80fe939 100644 --- a/Linux.mk +++ b/Linux.mk @@ -1,3 +1,13 @@ export PATH := /usr/local/bin:$(PATH) -flags += -I/usr/include/webkit-1.0 -depends += libffi4 libreadline5 + +ifneq ($(shell pkg-config webkit-1.0 --modversion 2>/dev/null),) +flags += $(shell pkg-config --cflags webkit-1.0) +library += -lwebkit-1.0 +include Execute.mk +else +ifneq ($(shell pkg-config WebKitGtk --modversion 2>/dev/null),) +flags += $(shell pkg-config --cflags WebKitGtk) +library += $(shell pkg-config --libs WebKitGtk) +include Execute.mk +endif +endif