summaryrefslogtreecommitdiffstats
path: root/package/tslib/tslib.mk
blob: ccc2671c6a251ef30015f86033b363b8f2383918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
################################################################################
#
# tslib
#
################################################################################

TSLIB_VERSION = 1.19
TSLIB_SITE = https://github.com/kergoth/tslib/releases/download/$(TSLIB_VERSION)
TSLIB_SOURCE = tslib-$(TSLIB_VERSION).tar.xz
TSLIB_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries)
TSLIB_LICENSE_FILES = COPYING

TSLIB_INSTALL_STAGING = YES
TSLIB_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install

ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6),)
TSLIB_CONF_OPTS += --disable-tools
endif

ifeq ($(BR2_STATIC_LIBS),y)
TSLIB_CONF_OPTS += \
	--enable-input=static \
	--enable-linear=static \
	--enable-median=static \
	--enable-pthres=static \
	--enable-iir=static \
	--enable-dejitter=static \
	--enable-debounce=static \
	--enable-skip=static \
	--enable-lowpass=static \
	--enable-invert=static
endif

$(eval $(autotools-package))
OpenPOWER on IntegriCloud