-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathsimple.common
30 lines (27 loc) · 1.32 KB
/
simple.common
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
GTKL=$(shell pkg-config --libs gtk+-2.0)
XL=$(shell pkg-config --libs x11)
FONTL=$(shell pkg-config --libs fontconfig)
FREEL=$(shell pkg-config --libs freetype2)
LIBS=$(GTKL) $(XL) $(FONTL) $(FREEL) $(APPI)
APPI=$(shell $(PRFX)/appsuck.sh lib)
TOOLS=intltool-update intltool-extract intltool-merge pkg-config msgfmt xgettext
.PHONY: check_dep
check_dep:
@if [ -n "$(BUILDCONFIG)" ]; then $(PRFX)/appsuck.sh config; fi
@echo "Checking for $(TOOLS)"
@for t in $(TOOLS); do echo -n "Checking for $$t.. "; ft=$$(which $$t); \
if [ $$? -ne 0 ]; then echo "Missing $$t"; exit 1; else v=$$($$ft --version); \
i=$$(echo "$$v"|grep "$$t"|sed 's!.* !!'); if [ -n "$$i" ]; then v="$$i"; fi; \
echo "$$ft 'V=$$v' OK"; fi; \
done
@echo " Need gtk+-2.0 x11 fontconfig and freetype2"
@echo -n "Checking for gtk.. "
@if [ -z "$(GTKL)" ]; then echo "No gtk+-2.0 libs"; exit 1; else echo OK; fi
@echo -n "Checking for X11.. "
@if [ -z "$(XL)" ]; then echo "No x11 libs"; exit 1; else echo OK; fi
@echo -n "Checking for fontconfig.. "
@if [ -z "$(FONTL)" ]; then echo "No fontconfig libs"; exit 1; else echo OK; fi
@echo -n "Checking for freetype.. "
@if [ -z "$(FREEL)" ]; then echo "No freetype2 libs"; exit 1; else echo OK; fi
@echo -n "Checking for a appindicator.. "
@if [ -z "$(APPI)" ]; then echo " appindictor not found..thankfully."; fi