2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/serdisplib
16 PKG_MD5SUM:=130552ec60d01e974712a60274f34de7
18 include $(INCLUDE_DIR)/package.mk
20 define Package/serdisplib
23 TITLE:=A display control library
25 URL:=http://serdisplib.sourceforge.net/
28 define Package/serdisplib/description
29 serdisplib is a library to drive serial and parallel displays
30 with built-in controllers.
37 TARGET_CFLAGS += $(FPIC)
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 CFLAGS="$(TARGET_CFLAGS) -Wall -Wno-implicit -I../include -I.." \
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/
52 define Package/serdisplib/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
57 $(eval $(call BuildPackage,serdisplib))