libs/libpam: port some uclibc xdr code to yppasswd_xdr.c
[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:=2
13
14 PKG_SOURCE:=st2205tool-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
16 PKG_MD5SUM:=827e3b719ebaf6bc537f2ce0ece3fccb
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19 PKG_BUILD_PARALLEL:=1
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="$(TARGET_LDFLAGS)" \
41 SETPICLIBS="$(TARGET_LDFLAGS) -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)/setpic/setpic $(1)/usr/sbin/
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_BUILD_DIR)/libst2205/libst2205.so $(1)/usr/lib/libst2205.so.1
57 endef
58
59 $(eval $(call BuildPackage,st2205tool))