150b9d10ce7b2f6d92e8e0ecddfead9ee73354b9
[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 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 define Build/Configure
34 $(call Build/Configure/Default, \
35 --enable-shared \
36 --enable-static \
37 )
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 CFLAGS="$(TARGET_CFLAGS) -Wall -Wno-implicit -fPIC -I../include -I.." \
43 all
44 endef
45
46 define Build/InstallDev
47 mkdir -p $(1)/usr/include
48 $(CP) $(PKG_BUILD_DIR)/include/serdisplib $(1)/usr/include/
49 mkdir -p $(1)/usr/lib
50 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(1)/usr/lib/
51 endef
52
53 define Package/serdisplib/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
56 endef
57
58 $(eval $(call BuildPackage,serdisplib))