remove PKG_CAT from packages
[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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/serdisplib
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=A display control library
27 URL:=http://serdisplib.sourceforge.net/
28 endef
29
30 define Package/serdisplib/description
31 serdisplib is a library to drive serial and parallel displays
32 with built-in controllers.
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --enable-shared \
38 --enable-static \
39 )
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) 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 Build/UninstallDev
54 rm -rf \
55 $(STAGING_DIR)/usr/include/serdisplib \
56 $(STAGING_DIR)/usr/lib/libserdisp.{a,so*}
57 endef
58
59 define Package/serdisplib/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
62 endef
63
64 $(eval $(call BuildPackage,serdisplib))