serdisplib does not work on linux 2.4
[openwrt/svn-archive/archive.git] / libs / serdisplib / Makefile
1 #
2 # Copyright (C) 2006 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:=serdisplib
12 PKG_VERSION:=1.97.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/serdisplib
17 PKG_MD5SUM:=ae6ca7c14ca92b0fc9dbb5df4a05a4c7
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/serdisplib
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=A display control library
25 DEPENDS:=@!LINUX_2_4
26 URL:=http://serdisplib.sourceforge.net/
27 endef
28
29 define Package/serdisplib/description
30 serdisplib is a library to drive serial and parallel displays
31 with built-in controllers.
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --enable-shared \
37 --enable-static \
38 )
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 CFLAGS="$(TARGET_CFLAGS) -Wall -Wno-implicit -fPIC -I../include -I.." \
44 all
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(1)/usr/include
49 $(CP) $(PKG_BUILD_DIR)/include/serdisplib $(1)/usr/include/
50 mkdir -p $(1)/usr/lib
51 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(1)/usr/lib/
52 endef
53
54 define Package/serdisplib/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
57 endef
58
59 $(eval $(call BuildPackage,serdisplib))