summaryrefslogtreecommitdiffstats
path: root/rules/fluxbox.make
blob: 7c649993bcd0c2d2c179f205160d85e6097757a9 (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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
# -*-makefile-*-
#
# Copyright (C) 2011 by Juergen Beisert <jbe@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_FLUXBOX) += fluxbox

#
# Paths and names
#
FLUXBOX_VERSION	:= 1.3.2
FLUXBOX_MD5	:= f95b0bdb9ee41bfac124bd0fc601f248
FLUXBOX		:= fluxbox-$(FLUXBOX_VERSION)
FLUXBOX_SUFFIX	:= tar.bz2
FLUXBOX_URL	:= $(call ptx/mirror, SF, fluxbox/$(FLUXBOX).$(FLUXBOX_SUFFIX))
FLUXBOX_SOURCE	:= $(SRCDIR)/$(FLUXBOX).$(FLUXBOX_SUFFIX)
FLUXBOX_DIR	:= $(BUILDDIR)/$(FLUXBOX)
FLUXBOX_LICENSE	:= unknown

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

FLUXBOX_CONF_TOOL := autoconf
FLUXBOX_CONF_OPT := $(CROSS_AUTOCONF_USR) \
	--disable-randr \
	--disable-randr1.2 \
	--disable-xrender \
	--disable-debug \
	--disable-test \
	--enable-newwmspec \
	--disable-shape \
	--disable-slit \
	--enable-remember \
	--disable-nls \
	--disable-timed-cache \
	--disable-xmb \
	--disable-fribidi

# force specific path
FLUXBOX_CONF_OPT += \
	--with-menu=/usr/share/fluxbox/menu \
	--with-windowmenu=/usr/share/fluxbox/windowmenu \
	--with-keys=/usr/share/fluxbox/keys \
	--with-apps=/usr/share/fluxbox/apps \
	--with-overlay=/usr/share/fluxbox/overlay \
	--with-init=/usr/share/fluxbox/init

ifdef PTXCONF_FLUXBOX_XINERAMA
FLUXBOX_CONF_OPT += --enable-xinerama
else
FLUXBOX_CONF_OPT += --disable-xinerama
endif

ifdef PTXCONF_FLUXBOX_THEMES
ifdef PTXCONF_FLUXBOX_DEFAULT_THEME_BLOE
FLUXBOX_CONF_OPT += --with-style=/usr/share/fluxbox/styles/bloe
endif
ifdef PTXCONF_FLUXBOX_DEFAULT_THEME_ARCH
FLUXBOX_CONF_OPT += --with-style=/usr/share/fluxbox/styles/arch
endif
ifdef PTXCONF_FLUXBOX_DEFAULT_THEME_BLUEFLUX
FLUXBOX_CONF_OPT += --with-style=/usr/share/fluxbox/styles/BlueFlux
endif
ifdef PTXCONF_FLUXBOX_DEFAULT_THEME_EMERGE
FLUXBOX_CONF_OPT += --with-style=/usr/share/fluxbox/styles/Emerge
endif
endif


ifdef PTXCONF_FLUXBOX_IMLIB2
FLUXBOX_CONF_OPT += --enable-imlib2
else
FLUXBOX_CONF_OPT += --disable-imlib2
endif

ifdef PTXCONF_FLUXBOX_XPM
FLUXBOX_CONF_OPT += --enable-xpm
else
FLUXBOX_CONF_OPT += --disable-xpm
endif

ifdef PTXCONF_FLUXBOX_XFT
FLUXBOX_CONF_OPT += --enable-xft
else
FLUXBOX_CONF_OPT += --disable-xft
endif

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

$(STATEDIR)/fluxbox.targetinstall:
	@$(call targetinfo)

	@$(call install_init, fluxbox)
	@$(call install_fixup, fluxbox,PRIORITY,optional)
	@$(call install_fixup, fluxbox,SECTION,base)
	@$(call install_fixup, fluxbox,AUTHOR,"Juergen Beisert <jbe@pengutronix.de>")
	@$(call install_fixup, fluxbox,DESCRIPTION,missing)


	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/bin/fbrun)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/bin/fbsetbg)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/bin/fbsetroot)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/bin/fluxbox)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/bin/fluxbox-generate_menu)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/bin/fluxbox-remote)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/bin/fluxbox-update_configs)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/bin/startfluxbox)

	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox)
	@$(call install_copy, fluxbox, 0, 0, 0644, -, /usr/share/fluxbox/apps)
	@$(call install_copy, fluxbox, 0, 0, 0644, -, /usr/share/fluxbox/init)
	@$(call install_copy, fluxbox, 0, 0, 0644, -, /usr/share/fluxbox/keys)
	@$(call install_copy, fluxbox, 0, 0, 0644, -, /usr/share/fluxbox/menu)
	@$(call install_copy, fluxbox, 0, 0, 0644, -, /usr/share/fluxbox/overlay)
	@$(call install_copy, fluxbox, 0, 0, 0644, -, /usr/share/fluxbox/windowmenu)

	@for i in Artwiz BlueNight Flux LemonSpace Makro Operation Results \
		MerleyKay Shade Flux Meta Outcomes Twice Nyz qnx-photon; do \
		$(call install_copy, fluxbox, 0, 0, 0644, -, \
			/usr/share/fluxbox/styles/$$i); \
	done

ifdef PTXCONF_FLUXBOX_THEMES
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles)

ifdef PTXCONF_FLUXBOX_THEMES_ARCH
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/arch)
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/arch/pixmaps)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/arch/theme.cfg)
	@for i in `find $(FLUXBOX_PKGDIR)/usr/share/fluxbox/styles/arch/pixmaps -name *.xpm`; do \
		file=`basename $$i`; \
		$(call install_copy, fluxbox, 0, 0, 0644, -, \
			/usr/share/fluxbox/styles/arch/pixmaps/$$file); \
	done
endif

ifdef PTXCONF_FLUXBOX_THEMES_BLOE
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/bloe)
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/bloe/pixmaps)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/bloe/theme.cfg)
	@for i in `find $(FLUXBOX_PKGDIR)/usr/share/fluxbox/styles/bloe/pixmaps -name *.xpm`; do \
		file=`basename $$i`; \
		$(call install_copy, fluxbox, 0, 0, 0644, -, \
			/usr/share/fluxbox/styles/bloe/pixmaps/$$file); \
	done
endif

ifdef PTXCONF_FLUXBOX_THEMES_BLUEFLUX
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/BlueFlux)
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/BlueFlux/pixmaps)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/BlueFlux/theme.cfg)
	@for i in `find $(FLUXBOX_PKGDIR)/usr/share/fluxbox/styles/BlueFlux/pixmaps -name *.xpm`; do \
		file=`basename $$i`; \
		$(call install_copy, fluxbox, 0, 0, 0644, -, \
			/usr/share/fluxbox/styles/BlueFlux/pixmaps/$$file); \
	done
endif

ifdef PTXCONF_FLUXBOX_THEMES_BORABLACK
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/bora_black)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/bora_black/theme.cfg)
endif

ifdef PTXCONF_FLUXBOX_THEMES_BORABLUE
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/bora_blue)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/bora_blue/theme.cfg)
endif

ifdef PTXCONF_FLUXBOX_THEMES_BORAGREEN
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/bora_green)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/bora_green/theme.cfg)
endif

ifdef PTXCONF_FLUXBOX_THEMES_CARP
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/carp)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/carp/theme.cfg)
endif

ifdef PTXCONF_FLUXBOX_THEMES_EMERGE
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/Emerge)
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/Emerge/pixmaps)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/Emerge/theme.cfg)
	@for i in `find $(FLUXBOX_PKGDIR)/usr/share/fluxbox/styles/Emerge/pixmaps -name *.xpm`; do \
		file=`basename $$i`; \
		$(call install_copy, fluxbox, 0, 0, 0644, -, \
			/usr/share/fluxbox/styles/Emerge/pixmaps/$$file); \
	done
endif

ifdef PTXCONF_FLUXBOX_THEMES_GREENTEA
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/green_tea)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/green_tea/theme.cfg)
endif

ifdef PTXCONF_FLUXBOX_THEMES_OSTRICH
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/ostrich)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/ostrich/theme.cfg)
endif

ifdef PTXCONF_FLUXBOX_THEMES_ZIMEKBISQUE
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/zimek_bisque)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/zimek_bisque/theme.cfg)
endif

ifdef PTXCONF_FLUXBOX_THEMES_ZIMEKDARKBLUE
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/zimek_darkblue)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/zimek_darkblue/theme.cfg)
endif

ifdef PTXCONF_FLUXBOX_THEMES_ZIMEKGREEN
	@$(call install_copy, fluxbox, 0, 0, 0755, /usr/share/fluxbox/styles/zimek_green)
	@$(call install_copy, fluxbox, 0, 0, 0755, -, /usr/share/fluxbox/styles/zimek_green/theme.cfg)
endif

endif
	@$(call install_finish, fluxbox)

	@$(call touch)

# vim: syntax=make