-rw-r--r-- | Vars.make | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Vars.make b/Vars.make new file mode 100644 index 0000000..eac5cea --- a/dev/null +++ b/Vars.make | |||
@@ -0,0 +1,63 @@ | |||
1 | ifndef QTDIR | ||
2 | $(error QTDIR not set) | ||
3 | endif | ||
4 | |||
5 | prefix=/opt/QtPalmtop | ||
6 | |||
7 | ifeq ($(OPIEDIR),) | ||
8 | export OPIEDIR:=$(TOPDIR) | ||
9 | endif | ||
10 | ifeq ($(IPK_DIR),) | ||
11 | export IPK_DIR:=$(OPIEDIR) | ||
12 | endif | ||
13 | |||
14 | export QMAKE:=$(OPIEDIR)/qmake/qmake | ||
15 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs | ||
16 | |||
17 | ifeq ($(QPE_VERSION),) | ||
18 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) | ||
19 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) | ||
20 | VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) | ||
21 | QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) | ||
22 | |||
23 | ifeq ($(QPE_VERSION),..) | ||
24 | QPE_VERSION=0.9.3 | ||
25 | endif | ||
26 | endif | ||
27 | export QPE_VERSION | ||
28 | |||
29 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) | ||
30 | ifeq ($(VERSION_CVS),) | ||
31 | VERSION_CVS:=$(shell date +%Y%m%d) | ||
32 | endif | ||
33 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) | ||
34 | SUB_VERSION:=$(VERSION_CVS) | ||
35 | endif | ||
36 | export SUB_VERSION | ||
37 | |||
38 | ifeq ($(QTE_REVISION),) | ||
39 | QTE_REVISION=4 | ||
40 | endif | ||
41 | export QTE_REVISION | ||
42 | |||
43 | export DEB_VERSION=2.0 | ||
44 | |||
45 | ifeq ($(QTE_BASEVERSION),) | ||
46 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) | ||
47 | QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;') | ||
48 | else | ||
49 | QTE_BASEVERSION=2.3.5 | ||
50 | endif | ||
51 | endif | ||
52 | export QTE_BASEVERSION | ||
53 | |||
54 | ifeq ($(QTE_VERSION),) | ||
55 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) | ||
56 | QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') | ||
57 | else | ||
58 | QTE_VERSION=2.3.5 | ||
59 | endif | ||
60 | endif | ||
61 | export QTE_VERSION | ||
62 | |||
63 | export PATH:=$(OPIEDIR)/scripts:$(PATH) | ||