bandwidthd: moved to github
[packages.git] / utils / psplash / Makefile
1 #
2 # Copyright (C) 2007-2011 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:=2
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 ifeq ($(CONFIG_TARGET_s3c24xx),y)
22   IMAGE_FILE:=480x640
23 endif
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/psplash
28   SECTION:=utils
29   CATEGORY:=Utilities
30   TITLE:=A boot splash screen
31   URL:=http://projects.o-hand.com/psplash
32 endef
33
34 define Package/psplash/description
35 PSplash is a userspace graphical boot splash screen.
36 endef
37
38 define Build/Configure
39         $(CP) \
40                 ./files/image_$(IMAGE_FILE).h \
41                 $(PKG_BUILD_DIR)/psplash-owrt-img.h
42         $(call Build/Configure/Default)
43 endef
44
45 define Package/psplash/install
46         $(INSTALL_DIR) $(1)/bin $(1)/etc/init.d
47         $(CP) \
48                 $(PKG_INSTALL_DIR)/usr/bin/psplash* \
49                 $(1)/bin/
50         $(INSTALL_BIN) \
51                 ./files/psplash.init \
52                 $(1)/etc/init.d/psplash
53 endef
54
55 $(eval $(call BuildPackage,psplash))