summaryrefslogtreecommitdiffstats
path: root/rules/xorg-app-xdm.make
blob: cfcd0b0d4ba46b8e7db15c51127491a5cfc3a68a (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
137
138
139
140
141
142
143
144
145
146
147
# -*-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_APP_XDM) += xorg-app-xdm

#
# Paths and names
#
XORG_APP_XDM_VERSION	:= 1.0.4
XORG_APP_XDM		:= xdm-X11R7.1-$(XORG_APP_XDM_VERSION)
XORG_APP_XDM_SUFFIX	:= tar.bz2
XORG_APP_XDM_URL	:= $(PTXCONF_SETUP_XORGMIRROR)/X11R7.1/src/app/$(XORG_APP_XDM).$(XORG_APP_XDM_SUFFIX)
XORG_APP_XDM_SOURCE	:= $(SRCDIR)/$(XORG_APP_XDM).$(XORG_APP_XDM_SUFFIX)
XORG_APP_XDM_DIR	:= $(BUILDDIR)/$(XORG_APP_XDM)


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

xorg-app-xdm_get: $(STATEDIR)/xorg-app-xdm.get

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

$(XORG_APP_XDM_SOURCE):
	@$(call targetinfo, $@)
	@$(call get, XORG_APP_XDM)

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

xorg-app-xdm_extract: $(STATEDIR)/xorg-app-xdm.extract

$(STATEDIR)/xorg-app-xdm.extract: $(xorg-app-xdm_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(XORG_APP_XDM_DIR))
	@$(call extract, XORG_APP_XDM)
	@$(call patchin, XORG_APP_XDM)
	@$(call touch, $@)

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

xorg-app-xdm_prepare: $(STATEDIR)/xorg-app-xdm.prepare

XORG_APP_XDM_PATH	:=  PATH=$(CROSS_PATH)
XORG_APP_XDM_ENV 	:=  $(CROSS_ENV)

#
# autoconf
#
XORG_APP_XDM_AUTOCONF := \
	$(CROSS_AUTOCONF_USR) \
	$(XORG_OPTIONS_TRANS) \
	--datadir=$(PTXCONF_XORG_DEFAULT_DATA_DIR) \
	--disable-dependency-tracking \
	--with-random-device=$(XORG_APP_XDM_DEV_RANDOM)

ifdef PTXCONF_XORG_SERVER_OPT_SECURE_RPC
XORG_APP_XDM_AUTOCONF += --enable-secure-rpc
else
XORG_APP_XDM_AUTOCONF += --disable-secure-rpc
endif

XORG_APP_XDM_AUTOCONF += --enable-xpm-logos	# Display xpm logos in greeter
XORG_APP_XDM_AUTOCONF += --disable-xprint	# FIXME XPrint support
XORG_APP_XDM_AUTOCONF += --enable-dynamic-greeter # Build greeter as dynamically loaded shared object
XORG_APP_XDM_AUTOCONF += --without-pam		# FXIME


$(STATEDIR)/xorg-app-xdm.prepare: $(xorg-app-xdm_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(XORG_APP_XDM_DIR)/config.cache)
	cd $(XORG_APP_XDM_DIR) && \
		$(XORG_APP_XDM_PATH) $(XORG_APP_XDM_ENV) \
		./configure $(XORG_APP_XDM_AUTOCONF)
	@$(call touch, $@)

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

xorg-app-xdm_compile: $(STATEDIR)/xorg-app-xdm.compile

$(STATEDIR)/xorg-app-xdm.compile: $(xorg-app-xdm_compile_deps_default)
	@$(call targetinfo, $@)
	cd $(XORG_APP_XDM_DIR) && $(XORG_APP_XDM_PATH) $(MAKE)
	@$(call touch, $@)

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

xorg-app-xdm_install: $(STATEDIR)/xorg-app-xdm.install

$(STATEDIR)/xorg-app-xdm.install: $(xorg-app-xdm_install_deps_default)
	@$(call targetinfo, $@)
	@$(call install, XORG_APP_XDM)
	@$(call touch, $@)

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

xorg-app-xdm_targetinstall: $(STATEDIR)/xorg-app-xdm.targetinstall

$(STATEDIR)/xorg-app-xdm.targetinstall: $(xorg-app-xdm_targetinstall_deps_default)
	@$(call targetinfo, $@)

	@$(call install_init, xorg-app-xdm)
	@$(call install_fixup, xorg-app-xdm,PACKAGE,xorg-app-xdm)
	@$(call install_fixup, xorg-app-xdm,PRIORITY,optional)
	@$(call install_fixup, xorg-app-xdm,VERSION,$(XORG_APP_XDM_VERSION))
	@$(call install_fixup, xorg-app-xdm,SECTION,base)
	@$(call install_fixup, xorg-app-xdm,AUTHOR,"Erwin Rol <ero\@pengutronix.de>")
	@$(call install_fixup, xorg-app-xdm,DEPENDS,)
	@$(call install_fixup, xorg-app-xdm,DESCRIPTION,missing)

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

	@$(call touch, $@)

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

xorg-app-xdm_clean:
	rm -rf $(STATEDIR)/xorg-app-xdm.*
	rm -rf $(IMAGEDIR)/xorg-app-xdm_*
	rm -rf $(XORG_APP_XDM_DIR)

# vim: syntax=make