summaryrefslogtreecommitdiffstats
path: root/rules/xorg-app-xrdb.make
blob: ab1eed0b1342762cf77742b56466b64b5513d692 (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
# -*-makefile-*-
# $Id: template 6001 2006-08-12 10:15:00Z mkl $
#
# Copyright (C) 2006 by Luotao Fu <lfu@pengutronix.de>
#          
# 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
#
PACKAGES-$(PTXCONF_XORG_APP_XRDB) += xorg-app-xrdb

#
# Paths and names
#
XORG_APP_XRDB_VERSION	:= 1.0.2
XORG_APP_XRDB		:= xrdb-X11R7.1-$(XORG_APP_XRDB_VERSION)
XORG_APP_XRDB_SUFFIX		:= tar.bz2
XORG_APP_XRDB_URL		:= $(PTXCONF_SETUP_XORGMIRROR)/X11R7.1/src/app/$(XORG_APP_XRDB).$(XORG_APP_XRDB_SUFFIX)
XORG_APP_XRDB_SOURCE		:= $(SRCDIR)/$(XORG_APP_XRDB).$(XORG_APP_XRDB_SUFFIX)
XORG_APP_XRDB_DIR		:= $(BUILDDIR)/$(XORG_APP_XRDB)

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

xorg-app-xrdb_get: $(STATEDIR)/xorg-app-xrdb.get

$(STATEDIR)/xorg-app-xrdb.get: $(xorg-app-xrdb_get_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

$(XORG_APP_XRDB_SOURCE):
	@$(call targetinfo, $@)
	@$(call get, XORG_APP_XRDB)

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

xorg-app-xrdb_extract: $(STATEDIR)/xorg-app-xrdb.extract

$(STATEDIR)/xorg-app-xrdb.extract: $(xorg-app-xrdb_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(XORG_APP_XRDB_DIR))
	@$(call extract, XORG_APP_XRDB)
	@$(call patchin, XORG_APP_XRDB)
	@$(call touch, $@)

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

xorg-app-xrdb_prepare: $(STATEDIR)/xorg-app-xrdb.prepare

XORG_APP_XRDB_PATH	:= PATH=$(CROSS_PATH)
XORG_APP_XRDB_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
XORG_APP_XRDB_AUTOCONF := $(CROSS_AUTOCONF_USR)

$(STATEDIR)/xorg-app-xrdb.prepare: $(xorg-app-xrdb_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(XORG_APP_XRDB_DIR)/config.cache)
	cd $(XORG_APP_XRDB_DIR) && \
		$(XORG_APP_XRDB_PATH) $(XORG_APP_XRDB_ENV) \
		./configure $(XORG_APP_XRDB_AUTOCONF)
	@$(call touch, $@)

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

xorg-app-xrdb_compile: $(STATEDIR)/xorg-app-xrdb.compile

$(STATEDIR)/xorg-app-xrdb.compile: $(xorg-app-xrdb_compile_deps_default)
	@$(call targetinfo, $@)
	cd $(XORG_APP_XRDB_DIR) && $(XORG_APP_XRDB_PATH) $(MAKE)
	@$(call touch, $@)

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

xorg-app-xrdb_install: $(STATEDIR)/xorg-app-xrdb.install

$(STATEDIR)/xorg-app-xrdb.install: $(xorg-app-xrdb_install_deps_default)
	@$(call targetinfo, $@)
	@$(call install, XORG_APP_XRDB)
	@$(call touch, $@)

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

xorg-app-xrdb_targetinstall: $(STATEDIR)/xorg-app-xrdb.targetinstall

$(STATEDIR)/xorg-app-xrdb.targetinstall: $(xorg-app-xrdb_targetinstall_deps_default)
	@$(call targetinfo, $@)

	@$(call install_init, xorg-app-xrdb)
	@$(call install_fixup,xorg-app-xrdb,PACKAGE,xorg-app-xrdb)
	@$(call install_fixup,xorg-app-xrdb,PRIORITY,optional)
	@$(call install_fixup,xorg-app-xrdb,VERSION,$(XORG_APP_XRDB_VERSION))
	@$(call install_fixup,xorg-app-xrdb,SECTION,base)
	@$(call install_fixup,xorg-app-xrdb,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
	@$(call install_fixup,xorg-app-xrdb,DEPENDS,)
	@$(call install_fixup,xorg-app-xrdb,DESCRIPTION,missing)

	@$(call install_copy, xorg-app-xrdb, 0, 0, 0755, $(XORG_APP_XRDB_DIR)/xrdb, $(XORG_PREFIX)/bin/xrdb)

	@$(call install_finish,xorg-app-xrdb)

	@$(call touch, $@)

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

xorg-app-xrdb_clean:
	rm -rf $(STATEDIR)/xorg-app-xrdb.*
	rm -rf $(IMAGEDIR)/xorg-app-xrdb_*
	rm -rf $(XORG_APP_XRDB_DIR)

# vim: syntax=make