002013a26e7b672b7492b4d78426c615528d29d1
[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.96
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/serdisplib
17 PKG_MD5SUM:=b074e02d8d63f34cba8ec45c23f63f78
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/serdisplib
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=A display control library
28 DESCRIPTION:=\
29 serdisplib is a library to drive serial and parallel displays \\\
30 with built-in controllers.
31 URL:=http://serdisplib.sourceforge.net/
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) all
43 endef
44
45 define Build/InstallDev
46 mkdir -p $(STAGING_DIR)/usr/include
47 $(CP) $(PKG_BUILD_DIR)/include/serdisplib $(STAGING_DIR)/usr/include/
48 mkdir -p $(STAGING_DIR)/usr/lib
49 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(STAGING_DIR)/usr/lib/
50 endef
51
52 define Build/UninstallDev
53 rm -rf \
54 $(STAGING_DIR)/usr/include/serdisplib \
55 $(STAGING_DIR)/usr/lib/libserdisp.{a,so*}
56 endef
57
58 define Package/serdisplib/install
59 install -d -m0755 $(1)/usr/lib
60 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
61 endef
62
63 $(eval $(call BuildPackage,serdisplib))