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