summaryrefslogtreecommitdiffstats
path: root/rules/pekwm.make
blob: 17c181c4b0c562e3fbac61f41be5f160eec56e89 (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
# -*-makefile-*-
#
# Copyright (C) 2006 by Sascha Hauer
#               2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_PEKWM) += pekwm

#
# Paths and names
#
PEKWM_VERSION	:= 0.1.12
PEKWM_MD5	:= 1f7f9ed32cc03f565a3ad30fd6045c1f
PEKWM		:= pekwm-$(PEKWM_VERSION)
PEKWM_SUFFIX	:= tar.gz
PEKWM_URL	:= http://www.pekwm.org/projects/pekwm/files/$(PEKWM).$(PEKWM_SUFFIX)
PEKWM_SOURCE	:= $(SRCDIR)/$(PEKWM).$(PEKWM_SUFFIX)
PEKWM_DIR	:= $(BUILDDIR)/$(PEKWM)

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

PEKWM_CONF_TOOL := autoconf

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

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

	@$(call install_init, pekwm)
	@$(call install_fixup, pekwm,PRIORITY,optional)
	@$(call install_fixup, pekwm,SECTION,base)
	@$(call install_fixup, pekwm,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, pekwm,DESCRIPTION,missing)

	@$(call install_copy, pekwm, 0, 0, 0755, -, /usr/bin/pekwm)

ifdef PTXCONF_PEKWM_INSTALL_CONFIG
	@for file in /etc/pekwm/{autoproperties,config,keys,menu,mouse,start,vars}; do \
		$(call install_copy, pekwm, 0, 0, 0644, -, $$file); \
	done
endif

ifdef  PTXCONF_PEKWM_INSTALL_THEME
	@$(call install_copy, pekwm, 0, 0, 0644, -, \
		/usr/share/pekwm/themes/default/theme)
	@cd $(PEKWM_PKGDIR) && \
	find usr/share/pekwm/themes/default -type f | while read file; do \
		$(call install_copy, pekwm, 0, 0, 0644, -, /$$file); \
	done
endif
ifdef  PTXCONF_PEKWM_INSTALL_SCRIPTS
	@cd $(PEKWM_PKGDIR) && \
	find usr/share/pekwm/scripts -type f | while read file; do \
		$(call install_copy, pekwm, 0, 0, 0755, -, /$$file); \
	done
endif

	@$(call install_finish, pekwm)

	@$(call touch)

# vim: syntax=make