2 # Copyright (C) 2008-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=st2205tool-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.neophob.com/files/
16 PKG_MD5SUM:=c87f05a5f692e869d2d050aa3d4fd6c5
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20 include $(INCLUDE_DIR)/package.mk
22 define Package/st2205tool
25 TITLE:=ST220xu powered photo-frames library
27 URL:=http://picframe.spritesserver.nl/wiki/
30 define Package/st2205tool/description
31 Library for hacked photo-frames based on st220xu chipset. You may use those photo-frames with
35 TARGET_CFLAGS += $(FPIC)
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" \
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/
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/
58 $(eval $(call BuildPackage,st2205tool))