this library is useful for hacked picframe displays. you can use this lib also with...
[openwrt/svn-archive/archive.git] / libs / st2205tool / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id:
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=st2205tool
12 PKG_VERSION:=1.4pre1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=st2205tool-v$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://spritesmods.com/picframe/
17 PKG_MD5SUM:=bf602227bce9c4365e5ae5e9b383d8d9
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/st2205tool
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=ST220xu powered photo-frames library
27 DEPENDS:=libgd
28 URL:=http://picframe.spritesserver.nl/wiki/
29 endef
30
31 define Package/st2205tool/description
32 Library for hacked photo-frames based on st220xu chipset. You may use those photo-frames with
33 mplayer or LCD4Linux
34 endef
35
36 MAKE_FLAGS += \
37 CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/libst2205/" \
38 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
39 SETPICLIBS="-L$(STAGING_DIR)/usr/lib -lgd -ljpeg -lpng -lz -L../libst2205 -lst2205" \
40
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(1)/usr/include
44 $(CP) $(PKG_BUILD_DIR)/libst2205/st2205.h $(1)/usr/include/
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_BUILD_DIR)/libst2205/libst2205.{a,so*} $(1)/usr/lib/
47 endef
48
49
50 define Package/st2205tool/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/{bgrep,phack,splice,hackfw.sh} $(1)/usr/sbin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/setpic/setpic $(1)/usr/sbin/
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_BUILD_DIR)/libst2205/libst2205.so* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,st2205tool))