summaryrefslogtreecommitdiffstats
path: root/rules/usplash.make
blob: b5902737dbbafea19120059d431ca5d3619bdd77 (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
# -*-makefile-*-
#
# Copyright (C) 2008 by Robert Schwebel
#               2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#               2011 by Michael Olbrich <m.olbrich@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
#
ifndef PTXCONF_ARCH_X86_64
PACKAGES-$(PTXCONF_ARCH_X86)-$(PTXCONF_USPLASH) += usplash
endif

#
# Paths and names
#
USPLASH_VERSION	:= 0.5.49
USPLASH_MD5	:= 6b1fd6c109456f47cbad1b1ccaa2bf53
USPLASH		:= usplash_$(USPLASH_VERSION)
USPLASH_SUFFIX	:= tar.gz
USPLASH_URL	:= http://usplash.sourcearchive.com/downloads/$(USPLASH_VERSION)/$(USPLASH).$(USPLASH_SUFFIX)
USPLASH_SOURCE	:= $(SRCDIR)/$(USPLASH).$(USPLASH_SUFFIX)
USPLASH_DIR	:= $(BUILDDIR)/$(USPLASH)

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

#
# autoconf
#
USPLASH_CONF_TOOL	:= autoconf
USPLASH_CONF_OPT	:= \
	$(CROSS_AUTOCONF_ROOT) \
	--enable-static \
	--enable-svga-backend \
	--disable-convert-tools

$(STATEDIR)/usplash.prepare:
	@$(call targetinfo)
	@chmod +x $(USPLASH_DIR)/configure
	@$(call world/prepare, USPLASH)
	@$(call touch)

USPLASH_MAKE_PAR	:= NO

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

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

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

	@$(call install_copy, usplash, 0, 0, 0755, -, /sbin/usplash)
	@$(call install_copy, usplash, 0, 0, 0755, -, /sbin/usplash_write)
	@$(call install_copy, usplash, 0, 0, 0755, -, /sbin/usplash_down)
	@$(call install_copy, usplash, 0, 0, 0755, -, /sbin/update-usplash-theme)
	@$(call install_copy, usplash, 0, 0, 0644, -, /lib/libusplash.so.0)
	@$(call install_link, usplash, libusplash.so.0, /lib/libusplash.so)

	@$(call install_finish, usplash)

	@$(call touch)

# vim: syntax=make