2014-03-27 07:05:17 +00:00
|
|
|
#
|
2011-02-02 18:21:44 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2006-07-28 16:15:08 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=serdisplib
|
2011-02-02 18:21:44 +00:00
|
|
|
PKG_VERSION:=1.97.9
|
2006-07-28 16:15:08 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/serdisplib
|
2011-02-02 18:21:44 +00:00
|
|
|
PKG_MD5SUM:=130552ec60d01e974712a60274f34de7
|
2006-10-28 22:43:08 +00:00
|
|
|
|
2006-07-28 16:15:08 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/serdisplib
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A display control library
|
|
|
|
URL:=http://serdisplib.sourceforge.net/
|
2013-01-29 18:09:28 +00:00
|
|
|
DEPENDS:=+libusb-compat
|
2006-07-28 16:15:08 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/serdisplib/description
|
2014-03-27 07:05:17 +00:00
|
|
|
serdisplib is a library to drive serial and parallel displays
|
2007-10-14 04:32:56 +00:00
|
|
|
with built-in controllers.
|
|
|
|
endef
|
|
|
|
|
2009-10-05 14:57:05 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
2006-07-28 16:15:08 +00:00
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2006-07-28 16:15:08 +00:00
|
|
|
define Build/Compile
|
2007-12-30 03:15:03 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2008-08-06 22:43:15 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -Wall -Wno-implicit -I../include -I.." \
|
2007-12-30 03:15:03 +00:00
|
|
|
all
|
2006-07-28 16:15:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/include/serdisplib $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(1)/usr/lib/
|
2006-07-28 16:15:08 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/serdisplib/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-28 22:43:08 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
|
|
|
|
endef
|
|
|
|
|
2006-07-28 16:15:08 +00:00
|
|
|
$(eval $(call BuildPackage,serdisplib))
|