summaryrefslogtreecommitdiffstats
path: root/rules/host-qte.make
blob: b861076a500ab7acab83c79551f960037a98ccfb (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2005 by Sascha Hauer
#          
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
HOST_PACKAGES-$(PTXCONF_HOST_QTE) += host-qte

#
# Paths and names
#
HOST_QTE_VERSION	:= 3.3.4
HOST_QTE		:= qt-embedded-free-$(HOST_QTE_VERSION)
HOST_QTE_SUFFIX		:= tar.gz
HOST_QTE_URL		:= ftp://ftp.trolltech.com/qt/source/$(HOST_QTE).$(HOST_QTE_SUFFIX)
HOST_QTE_SOURCE		:= $(SRCDIR)/$(HOST_QTE).$(HOST_QTE_SUFFIX)
HOST_QTE_DIR		:= $(HOST_BUILDDIR)/$(HOST_QTE)

-include $(call package_depfile)

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

host-qte_get: $(STATEDIR)/host-qte.get

$(STATEDIR)/host-qte.get: $(host-qte_get_deps_default_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------

host-qte_extract: $(STATEDIR)/host-qte.extract

$(STATEDIR)/host-qte.extract: $(host-qte_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_QTE_DIR))
	@$(call extract, $(HOST_QTE_SOURCE), $(HOST_BUILDDIR))
	@$(call patchin, $(HOST_QTE), $(HOST_QTE_DIR))
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

host-qte_prepare: $(STATEDIR)/host-qte.prepare

HOST_QTE_PATH	=  PATH=$(HOST_PATH)
HOST_QTE_ENV 	=  $(HOSTCC_ENV)

#
# qte does not use autoconf, but something that looks similar
#
# disable all we can - we need only uic
HOST_QTE_CONF := -prefix=$(PTXCONF_PREFIX) \
	-platform=$(GNU_HOST) \
	-disable styles \
	-disable tools \
	-disable kernel \
	-disable widgets \
	-disable dialogs \
	-disable iconview \
	-disable workspace \
	-disable network \
	-disable canvas \
	-disable table \
	-disable xml \
	-disable opengl \
	-disable sql \
	-embedded x86 \
	-no-gif \
	-qt-libpng \
	-no-libjpeg \
	-no-thread \
	-no-cups \
	-no-stl \
	-no-qvfb 

$(STATEDIR)/host-qte.prepare: $(host-qte_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_QTE_DIR)/config.cache)
	cd $(HOST_QTE_DIR) && \
		echo yes | $(HOST_QTE_PATH) $(HOST_QTE_ENV) \
		./configure $(HOST_QTE_AUTOCONF)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

host-qte_compile: $(STATEDIR)/host-qte.compile

$(STATEDIR)/host-qte.compile: $(host-qte_compile_deps_default)
	@$(call targetinfo, $@)
	cd $(HOST_QTE_DIR) && $(HOST_QTE_ENV) $(HOST_QTE_PATH) make sub-src
	cd $(HOST_QTE_DIR)/tools/designer/uic && $(HOST_QTE_ENV) $(HOST_QTE_PATH) make
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

host-qte_install: $(STATEDIR)/host-qte.install

$(STATEDIR)/host-qte.install: $(host-qte_install_deps_default)
	@$(call targetinfo, $@)
	cp $(HOST_QTE_DIR)/bin/uic $(PTXCONF_PREFIX)/bin
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Tagetinstall
# ----------------------------------------------------------------------------

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

host-qte_clean:
	rm -rf $(STATEDIR)/host-qte.*
	rm -rf $(HOST_QTE_DIR)

# vim: syntax=make