[package] update st2205tool to 1.4.3 (#5731)
[openwrt/svn-archive/archive.git] / libs / st2205tool / Makefile
1 #
2 # Copyright (C) 2008-2009 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.4.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=st2205tool-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.neophob.com/files/
16 PKG_MD5SUM:=c87f05a5f692e869d2d050aa3d4fd6c5
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="$(TARGET_LDFLAGS)" \
40 SETPICLIBS="$(TARGET_LDFLAGS) -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)/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))