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
|
# -*-makefile-*-
#
# Copyright (C) 2009 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
#
PACKAGES-$(PTXCONF_SPLASHUTILS) += splashutils
#
# Paths and names
#
SPLASHUTILS_VERSION := 1.5.4.3
SPLASHUTILS_MD5 := 206da4493c4c511ddda507e20217369b
SPLASHUTILS := splashutils-$(SPLASHUTILS_VERSION)
SPLASHUTILS_SUFFIX := tar.bz2
SPLASHUTILS_URL := http://download.berlios.de/fbsplash/splashutils-lite-$(SPLASHUTILS_VERSION).$(SPLASHUTILS_SUFFIX)
SPLASHUTILS_SOURCE := $(SRCDIR)/splashutils-lite-$(SPLASHUTILS_VERSION).$(SPLASHUTILS_SUFFIX)
SPLASHUTILS_DIR := $(BUILDDIR)/$(SPLASHUTILS)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(SPLASHUTILS_SOURCE):
@$(call targetinfo)
@$(call get, SPLASHUTILS)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
SPLASHUTILS_PATH := PATH=$(CROSS_PATH)
SPLASHUTILS_ENV := $(CROSS_ENV)
SPLASHUTILS_MAKE_PAR := NO
#
# autoconf
#
SPLASHUTILS_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
--without-gpm \
--disable-helper \
--disable-fbcondecor
ifdef PTXCONF_SPLASHUTILS_MNG
SPLASHUTILS_AUTOCONF += --with-mng
else
SPLASHUTILS_AUTOCONF += --without-mng
endif
ifdef PTXCONF_SPLASHUTILS_PNG
SPLASHUTILS_AUTOCONF += --with-png
else
SPLASHUTILS_AUTOCONF += --without-png
endif
ifdef PTXCONF_SPLASHUTILS_TTG
SPLASHUTILS_AUTOCONF += --with-ttf --with-ttf-kernel
else
SPLASHUTILS_AUTOCONF += --without-ttf --without-ttf-kernel
endif
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/splashutils.install:
@$(call targetinfo)
@$(call install, SPLASHUTILS)
. ${PTXDIST_PTXCONFIG}; \
sed -e "s/@PTXCONF_SPLASHUTILS_THEME@/$$PTXCONF_SPLASHUTILS_THEME/g" \
-e "s/@PTXCONF_SPLASHUTILS_BOOTMSG@/$$PTXCONF_SPLASHUTILS_BOOTMSG/" \
-i $(SPLASHUTILS_PKGDIR)/sbin/splash-functions.sh
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/splashutils.targetinstall:
@$(call targetinfo)
@$(call install_init, splashutils)
@$(call install_fixup, splashutils,PRIORITY,optional)
@$(call install_fixup, splashutils,SECTION,base)
@$(call install_fixup, splashutils,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
@$(call install_fixup, splashutils,DESCRIPTION,missing)
@$(call install_copy, splashutils, 0, 0, 0755, /lib/splash/cache)
@$(call install_copy, splashutils, 0, 0, 0755, -, /usr/sbin/fbsplashd)
@$(call install_lib, splashutils, 0, 0, 0644, libfbsplashrender)
@$(call install_lib, splashutils, 0, 0, 0644, libfbsplash)
@$(call install_copy, splashutils, 0, 0, 0755, -, /sbin/fbsplashctl)
@$(call install_link, splashutils, fbsplashctl, /sbin/fbcondecor_ctl.static)
@$(call install_link, splashutils, fbsplashctl, /sbin/fbsplashd.static)
@$(call install_link, splashutils, fbsplashctl, /sbin/splash_util.static)
@$(call install_copy, splashutils, 0, 0, 0755, -, /sbin/splash-functions.sh,n)
ifdef PTXCONF_ROOTFS_DEV_INITIAL
@$(call install_copy, splashutils, 0, 0, 0755, /dev)
@$(call install_node, splashutils, 0, 0, 0600, c, 29, 0, /dev/fb0)
@$(call install_node, splashutils, 0, 0, 0600, c, 4, 0, /dev/tty0)
@$(call install_node, splashutils, 0, 0, 0600, c, 4, 16, /dev/tty16)
endif
@$(call install_alternative, splashutils, 0, 0, 0755, /etc/init.d/splashutils)
ifneq ($(call remove_quotes,$(PTXCONF_SPLASHUTILS_BBINIT_LINK)),)
@$(call install_link, splashutils, \
../init.d/splashutils, \
/etc/rc.d/$(PTXCONF_SPLASHUTILS_BBINIT_LINK))
endif
@$(call install_finish, splashutils)
@$(call touch)
# vim: syntax=make
|