fixes samba3 to use gawk instead of mawk
[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 TARGET_CFLAGS += $(FPIC)
37
38 MAKE_FLAGS += \
39 CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/libst2205/" \
40 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
41 SETPICLIBS="-L$(STAGING_DIR)/usr/lib -lgd -ljpeg -lpng -lz -L../libst2205 -lst2205" \
42
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_BUILD_DIR)/libst2205/st2205.h $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_BUILD_DIR)/libst2205/libst2205.{a,so*} $(1)/usr/lib/
49 endef
50
51
52 define Package/st2205tool/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/{bgrep,phack,splice,hackfw.sh} $(1)/usr/sbin/
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/setpic/setpic $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_BUILD_DIR)/libst2205/libst2205.so* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,st2205tool))