summaryrefslogtreecommitdiffstats
path: root/rules/xorg-proto-dmx.make
blob: f1059e7c24bf412262a948d4f978df7e5ca6698a (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
# -*-makefile-*-
# $Id: template 4565 2006-02-10 14:23:10Z mkl $
#
# Copyright (C) 2006 by Erwin Rol
#          
# 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_PROTO_DMX) += xorg-proto-dmx

#
# Paths and names
#
XORG_PROTO_DMX_VERSION	:= 2.2.2
XORG_PROTO_DMX		:= dmxproto-X11R7.0-$(XORG_PROTO_DMX_VERSION)
XORG_PROTO_DMX_SUFFIX	:= tar.bz2
XORG_PROTO_DMX_URL	:= $(PTXCONF_SETUP_XORGMIRROR)/X11R7.0/src/proto/$(XORG_PROTO_DMX).$(XORG_PROTO_DMX_SUFFIX)
XORG_PROTO_DMX_SOURCE	:= $(SRCDIR)/$(XORG_PROTO_DMX).$(XORG_PROTO_DMX_SUFFIX)
XORG_PROTO_DMX_DIR	:= $(BUILDDIR)/$(XORG_PROTO_DMX)


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

xorg-proto-dmx_get: $(STATEDIR)/xorg-proto-dmx.get

$(STATEDIR)/xorg-proto-dmx.get: $(xorg-proto-dmx_get_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

$(XORG_PROTO_DMX_SOURCE):
	@$(call targetinfo, $@)
	@$(call get, XORG_PROTO_DMX)

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

xorg-proto-dmx_extract: $(STATEDIR)/xorg-proto-dmx.extract

$(STATEDIR)/xorg-proto-dmx.extract: $(xorg-proto-dmx_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(XORG_PROTO_DMX_DIR))
	@$(call extract, XORG_PROTO_DMX)
	@$(call patchin, XORG_PROTO_DMX)
	@$(call touch, $@)

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

xorg-proto-dmx_prepare: $(STATEDIR)/xorg-proto-dmx.prepare

XORG_PROTO_DMX_PATH	:=  PATH=$(CROSS_PATH)
XORG_PROTO_DMX_ENV 	:=  $(CROSS_ENV)

#
# autoconf
#
XORG_PROTO_DMX_AUTOCONF := $(CROSS_AUTOCONF_USR)

$(STATEDIR)/xorg-proto-dmx.prepare: $(xorg-proto-dmx_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(XORG_PROTO_DMX_DIR)/config.cache)
	cd $(XORG_PROTO_DMX_DIR) && \
		$(XORG_PROTO_DMX_PATH) $(XORG_PROTO_DMX_ENV) \
		./configure $(XORG_PROTO_DMX_AUTOCONF)
	@$(call touch, $@)

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

xorg-proto-dmx_compile: $(STATEDIR)/xorg-proto-dmx.compile

$(STATEDIR)/xorg-proto-dmx.compile: $(xorg-proto-dmx_compile_deps_default)
	@$(call targetinfo, $@)
	cd $(XORG_PROTO_DMX_DIR) && $(XORG_PROTO_DMX_PATH) make
	@$(call touch, $@)

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

xorg-proto-dmx_install: $(STATEDIR)/xorg-proto-dmx.install

$(STATEDIR)/xorg-proto-dmx.install: $(xorg-proto-dmx_install_deps_default)
	@$(call targetinfo, $@)
	@$(call install, XORG_PROTO_DMX)
	@$(call touch, $@)

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

xorg-proto-dmx_targetinstall: $(STATEDIR)/xorg-proto-dmx.targetinstall

$(STATEDIR)/xorg-proto-dmx.targetinstall: $(xorg-proto-dmx_targetinstall_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

xorg-proto-dmx_clean:
	rm -rf $(STATEDIR)/xorg-proto-dmx.*
	rm -rf $(IMAGEDIR)/xorg-proto-dmx_*
	rm -rf $(XORG_PROTO_DMX_DIR)

# vim: syntax=make