xref: /OK3568_Linux_fs/buildroot/package/tslib/tslib.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# tslib
4#
5################################################################################
6
7TSLIB_VERSION = 1.22
8TSLIB_SITE = https://github.com/libts/tslib/releases/download/$(TSLIB_VERSION)
9TSLIB_SOURCE = tslib-$(TSLIB_VERSION).tar.xz
10TSLIB_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries)
11TSLIB_LICENSE_FILES = COPYING
12
13TSLIB_INSTALL_STAGING = YES
14TSLIB_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install
15
16ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6),)
17TSLIB_CONF_OPTS += --disable-tools
18endif
19
20ifeq ($(BR2_STATIC_LIBS),y)
21TSLIB_CONF_OPTS += \
22	--enable-input=static \
23	--enable-linear=static \
24	--enable-median=static \
25	--enable-pthres=static \
26	--enable-iir=static \
27	--enable-dejitter=static \
28	--enable-debounce=static \
29	--enable-skip=static \
30	--enable-lowpass=static \
31	--enable-invert=static \
32	--enable-evthres=static
33endif
34
35$(eval $(autotools-package))
36