mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fixx
This commit is contained in:
parent
dacb6205fb
commit
b3d17da339
14 changed files with 417 additions and 281 deletions
|
@ -1,83 +1,58 @@
|
|||
#
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
# Copyright (C) 2019 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=serdisplib
|
||||
PKG_VERSION:=2.02
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=2.01
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/serdisplib
|
||||
PKG_HASH:=447b74007dc157b0378044245649850b26432b9185b6540ff681fcb0765c4d8b
|
||||
|
||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
||||
PKG_LICENSE:=GPL-2.0-or-later
|
||||
PLG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_BUILD_DEPENDS:=libusb-compat
|
||||
PKG_MD5SUM:=4eb17cd70aa963c30a237d426ac24449
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/serdisplib
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=serdisplib
|
||||
TITLE:=A display control library
|
||||
URL:=http://serdisplib.sourceforge.net/
|
||||
DEPENDS:=+libusb-1.0 +libusb-compat
|
||||
endef
|
||||
|
||||
define Package/serdisplib/description
|
||||
serdisplib started as a library to drive serial displays with
|
||||
built-in controllers. It can optionally dynamically link with
|
||||
libusb-compat, libgd and libpthread, some features require having
|
||||
those packages installed as well.
|
||||
serdisplib is a library to drive serial and parallel displays
|
||||
with built-in controllers.
|
||||
endef
|
||||
|
||||
define Package/serdisplib-tools
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=serdisplib tools
|
||||
URL:=http://serdisplib.sourceforge.net/
|
||||
DEPENDS:=+serdisplib +libgd
|
||||
CONFIGURE_ARGS+= \
|
||||
--enable-shared \
|
||||
--enable-static \
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
CFLAGS="$(TARGET_CFLAGS) -Wall -Wno-implicit -I../include -I.." \
|
||||
all
|
||||
endef
|
||||
|
||||
define Package/serdisplib-tools/description
|
||||
serdisplib started as a library to drive serial displays with
|
||||
built-in controllers. This package contains tools for serdisplib:
|
||||
* l4m132c_tool
|
||||
* l4m320t_tool
|
||||
* multidisplay
|
||||
* sdcmegtron_tool
|
||||
* touchscreen_tool
|
||||
endef
|
||||
|
||||
CONFIGURE_VARS += \
|
||||
ac_cv_build=$(GNU_TARGET_NAME)
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-dynloading \
|
||||
--disable-statictools
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/serdisplib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/serdisplib/*.h $(1)/usr/include/serdisplib
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_BUILD_DIR)/include/serdisplib $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libserdisp.{a,so*} $(1)/usr/lib/
|
||||
$(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/serdisplib/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libserdisp.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/serdisplib-tools/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/l4m132c_tool $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/l4m320t_tool $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/multidisplay $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sdcmegtron_tool $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/touchscreen_tool $(1)/usr/bin
|
||||
$(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,serdisplib))
|
||||
$(eval $(call BuildPackage,serdisplib-tools))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue