summaryrefslogtreecommitdiffstats
path: root/utils/psplash/Makefile
blob: 0b563833e2fb46529ea7d1d5d3c00f95f9c93822 (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
#
# Copyright (C) 2007-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=psplash
PKG_VERSION:=0.1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://projects.o-hand.com/sources/psplash/
PKG_MD5SUM:=7649b7e0fac573eca2048a2a267e242b

PKG_INSTALL:=1

IMAGE_FILE:=generic
ifeq ($(CONFIG_TARGET_s3c24xx),y)
  IMAGE_FILE:=480x640
endif

include $(INCLUDE_DIR)/package.mk

define Package/psplash
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=A boot splash screen
  URL:=http://projects.o-hand.com/psplash
endef

define Package/psplash/description
PSplash is a userspace graphical boot splash screen.
endef

define Build/Configure
	$(CP) \
		./files/image_$(IMAGE_FILE).h \
		$(PKG_BUILD_DIR)/psplash-owrt-img.h
	$(call Build/Configure/Default)
endef

define Package/psplash/install
	$(INSTALL_DIR) $(1)/bin $(1)/etc/init.d
	$(CP) \
		$(PKG_INSTALL_DIR)/usr/bin/psplash* \
		$(1)/bin/
	$(INSTALL_BIN) \
		./files/psplash.init \
		$(1)/etc/init.d/psplash
endef

$(eval $(call BuildPackage,psplash))