summaryrefslogtreecommitdiffstats
path: root/rules/at-spi.make
blob: 39d77fae0727b70d1ef6f865c60fe5a0b823c018 (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
133
134
135
136
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 by BSP
#          
# 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
#
ifdef PTXCONF_AT-SPI
PACKAGES += at-spi
endif

#
# Paths and names
#
AT-SPI_VERSION	= 1.3.13
AT-SPI		= at-spi-$(AT-SPI_VERSION)
AT-SPI_SUFFIX	= tar.bz2
AT-SPI_URL	= ftp://ftp.gnome.org/pub/GNOME/sources/at-spi/1.3/$(AT-SPI).$(AT-SPI_SUFFIX)
AT-SPI_SOURCE	= $(SRCDIR)/$(AT-SPI).$(AT-SPI_SUFFIX)
AT-SPI_DIR	= $(BUILDDIR)/$(AT-SPI)

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

at-spi_get: $(STATEDIR)/at-spi.get

at-spi_get_deps = $(AT-SPI_SOURCE)

$(STATEDIR)/at-spi.get: $(at-spi_get_deps)
	@$(call targetinfo, $@)
	touch $@

$(AT-SPI_SOURCE):
	@$(call targetinfo, $@)
	@$(call get, $(AT-SPI_URL))

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

at-spi_extract: $(STATEDIR)/at-spi.extract

at-spi_extract_deps = $(STATEDIR)/at-spi.get

$(STATEDIR)/at-spi.extract: $(at-spi_extract_deps)
	@$(call targetinfo, $@)
	@$(call clean, $(AT-SPI_DIR))
	@$(call extract, $(AT-SPI_SOURCE))
	touch $@

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

at-spi_prepare: $(STATEDIR)/at-spi.prepare

#
# dependencies
#
at-spi_prepare_deps = \
	$(STATEDIR)/at-spi.extract \
	$(STATEDIR)/virtual-xchain.install

AT-SPI_PATH	=  PATH=$(CROSS_PATH)
AT-SPI_ENV 	=  $(CROSS_ENV)
#AT-SPI_ENV	+=

#
# autoconf
#
AT-SPI_AUTOCONF =  $(CROSS_AUTOCONF)
AT-SPI_AUTOCONF += --prefix=$(CROSS_LIB_DIR)

$(STATEDIR)/at-spi.prepare: $(at-spi_prepare_deps)
	@$(call targetinfo, $@)
	@$(call clean, $(AT-SPI_DIR)/config.cache)
	cd $(AT-SPI_DIR) && \
		$(AT-SPI_PATH) $(AT-SPI_ENV) \
		./configure $(AT-SPI_AUTOCONF)
	touch $@

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

at-spi_compile: $(STATEDIR)/at-spi.compile

at-spi_compile_deps = $(STATEDIR)/at-spi.prepare

$(STATEDIR)/at-spi.compile: $(at-spi_compile_deps)
	@$(call targetinfo, $@)
	cd $(AT-SPI_DIR) && \
	   $(AT-SPI_PATH) make 
	touch $@

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

at-spi_install: $(STATEDIR)/at-spi.install

$(STATEDIR)/at-spi.install: $(STATEDIR)/at-spi.compile
	@$(call targetinfo, $@)
	cd $(AT-SPI_DIR) && \       
	   $(AT-SPI_PATH) make install
	touch $@

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

at-spi_targetinstall: $(STATEDIR)/at-spi.targetinstall

at-spi_targetinstall_deps = $(STATEDIR)/at-spi.compile

$(STATEDIR)/at-spi.targetinstall: $(at-spi_targetinstall_deps)
	@$(call targetinfo, $@)
	touch $@

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

at-spi_clean:
	rm -rf $(STATEDIR)/at-spi.*
	rm -rf $(AT-SPI_DIR)

# vim: syntax=make