cleanup Makefile, extract image-data, add init-script, replace generic image with...
[packages.git] / utils / psplash / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=psplash
11 PKG_VERSION:=0.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://projects.o-hand.com/sources/psplash/
16 PKG_MD5SUM:=7649b7e0fac573eca2048a2a267e242b
17
18 PKG_INSTALL:=1
19
20 IMAGE_FILE:=generic
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/psplash
25   SECTION:=utils
26   CATEGORY:=Utilities
27   DEPENDS:=@LINUX_2_6
28   TITLE:=A boot splash screen
29   URL:=http://projects.o-hand.com/psplash
30 endef
31
32 define Package/psplash/description
33 PSplash is a userspace graphical boot splash screen.
34 endef
35
36 define Build/Configure
37         $(CP) \
38                 ./files/image_$(IMAGE_FILE).h \
39                 $(PKG_BUILD_DIR)/psplash-owrt-img.h
40         $(call Build/Configure/Default)
41 endef
42
43 define Package/psplash/install
44         $(INSTALL_DIR) $(1)/bin $(1)/etc/init.d
45         $(CP) \
46                 $(PKG_INSTALL_DIR)/usr/bin/psplash* \
47                 $(1)/bin/
48         $(INSTALL_BIN) \
49                 ./files/init \
50                 $(1)/etc/init.d/psplash
51 endef
52
53 $(eval $(call BuildPackage,psplash))