nuke $Id$ in /packages as well
[packages.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=st2205tool
11 PKG_VERSION:=1.4pre1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=st2205tool-v$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://spritesmods.com/picframe/
16 PKG_MD5SUM:=bf602227bce9c4365e5ae5e9b383d8d9
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/st2205tool
23   SECTION:=libs
24   CATEGORY:=Libraries
25   TITLE:=ST220xu powered photo-frames library
26   DEPENDS:=+libgd
27   URL:=http://picframe.spritesserver.nl/wiki/
28 endef
29
30 define Package/st2205tool/description
31   Library for hacked photo-frames based on st220xu chipset. You may use those photo-frames with
32   mplayer or LCD4Linux
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 MAKE_FLAGS += \
38         CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/libst2205/" \
39         LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
40         SETPICLIBS="-L$(STAGING_DIR)/usr/lib -lgd -ljpeg -lpng -lz -L../libst2205 -lst2205" \
41
42
43 define Build/InstallDev
44         $(INSTALL_DIR) $(1)/usr/include
45         $(CP) $(PKG_BUILD_DIR)/libst2205/st2205.h $(1)/usr/include/
46         $(INSTALL_DIR) $(1)/usr/lib
47         $(CP) $(PKG_BUILD_DIR)/libst2205/libst2205.{a,so*} $(1)/usr/lib/
48 endef
49
50
51 define Package/st2205tool/install
52         $(INSTALL_DIR) $(1)/usr/sbin
53         $(INSTALL_BIN) $(PKG_BUILD_DIR)/{bgrep,phack,splice,hackfw.sh} $(1)/usr/sbin/
54         $(INSTALL_BIN) $(PKG_BUILD_DIR)/setpic/setpic $(1)/usr/sbin/
55         $(INSTALL_DIR) $(1)/usr/lib
56         $(CP) $(PKG_BUILD_DIR)/libst2205/libst2205.so* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,st2205tool))