summaryrefslogtreecommitdiff
path: root/Vars.make
Unidiff
Diffstat (limited to 'Vars.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Vars.make63
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 @@
1ifndef QTDIR
2$(error QTDIR not set)
3endif
4
5prefix=/opt/QtPalmtop
6
7ifeq ($(OPIEDIR),)
8 export OPIEDIR:=$(TOPDIR)
9endif
10ifeq ($(IPK_DIR),)
11 export IPK_DIR:=$(OPIEDIR)
12endif
13
14export QMAKE:=$(OPIEDIR)/qmake/qmake
15export QMAKESPECSDIR=$(OPIEDIR)/mkspecs
16
17ifeq ($(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
26endif
27export QPE_VERSION
28
29SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h))
30ifeq ($(VERSION_CVS),)
31 VERSION_CVS:=$(shell date +%Y%m%d)
32endif
33ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),)
34 SUB_VERSION:=$(VERSION_CVS)
35endif
36export SUB_VERSION
37
38ifeq ($(QTE_REVISION),)
39 QTE_REVISION=4
40endif
41export QTE_REVISION
42
43export DEB_VERSION=2.0
44
45ifeq ($(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
51endif
52export QTE_BASEVERSION
53
54ifeq ($(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
60endif
61export QTE_VERSION
62
63export PATH:=$(OPIEDIR)/scripts:$(PATH)