66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=tslib
|
|
PKG_VERSION:=1.15
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_MD5SUM:=6491d4fd9c7c6420690e740c4664b96b
|
|
PKG_BUILD_DIR:=$(COMPILE_DIR)/tslib-$(PKG_VERSION)
|
|
PKG_FIXUP:=libtool
|
|
PKG_INSTALL:=1
|
|
|
|
include $(BUILD_DIR)/package.mk
|
|
|
|
define Package/tslib
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=tslib is an abstraction layer for touchscreen panel events
|
|
URL:=https://github.com/kergoth/tslib
|
|
endef
|
|
|
|
define Package/tslib/description
|
|
tslib is an abstraction layer for touchscreen panel events,
|
|
as well as a filter stack for the manipulation of those events.
|
|
Examples of implemented filters include jitter smoothing and the calibration transform.
|
|
endef
|
|
|
|
define Package/tslib/conffiles
|
|
/etc/tslib-env.sh
|
|
/etc/ts.conf
|
|
/etc/pointercal
|
|
endef
|
|
|
|
EXTRA_CFLAGS+= -D__linux__
|
|
|
|
CONFIGURE_ARGS+=
|
|
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include \
|
|
$(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/** $(1)/usr/lib/pkgconfig
|
|
endef
|
|
|
|
define Package/tslib/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ts \
|
|
$(1)/usr/bin \
|
|
$(1)/etc
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ts_* $(1)/usr/bin/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ts/*.so* $(1)/usr/lib/ts/
|
|
$(CP) ./files/ts.conf $(1)/etc/ts.conf
|
|
$(CP) ./files/tslib-env.sh $(1)/etc/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,tslib))
|