2007-08-12 13:34:03 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libts
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
TSLIB_VERSION:=1.0
|
|
|
|
TSLIB_SOURCE:=tslib-$(TSLIB_VERSION).tar.bz2
|
|
|
|
TSLIB_SITE:=http://download.berlios.de/tslib
|
|
|
|
TSLIB_CAT:=$(BZCAT)
|
|
|
|
TSLIB_DIR:=$(BUILD_DIR)/tslib-$(TSLIB_VERSION)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(TSLIB_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(TSLIB_SITE)/$(TSLIB_SOURCE)
|
|
|
|
|
|
|
|
tslib-source: $(DL_DIR)/$(TSLIB_SOURCE)
|
|
|
|
|
|
|
|
$(TSLIB_DIR)/.patched: $(DL_DIR)/$(TSLIB_SOURCE)
|
|
|
|
$(TSLIB_CAT) $(DL_DIR)/$(TSLIB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(TSLIB_DIR) package/tslib/ tslib\*.patch
|
|
|
|
touch $(TSLIB_DIR)/.patched
|
|
|
|
|
|
|
|
$(TSLIB_DIR)/.configured: $(TSLIB_DIR)/.patched
|
2008-07-05 06:30:05 +02:00
|
|
|
(cd $(TSLIB_DIR); rm -rf config.cache; ./autogen.sh)
|
|
|
|
$(CONFIG_UPDATE) $(TSLIB_DIR)
|
|
|
|
(cd $(TSLIB_DIR) && \
|
2007-08-12 13:34:03 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) " \
|
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=$(STAGING_DIR)/usr \
|
|
|
|
--exec_prefix=$(STAGING_DIR)/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--includedir=$(STAGING_DIR)/usr/include \
|
|
|
|
--libdir=$(STAGING_DIR)/usr/lib \
|
|
|
|
--disable-static \
|
|
|
|
--disable-linear-h2200 \
|
|
|
|
--disable-ucb1x00 \
|
|
|
|
--disable-corgi \
|
|
|
|
--disable-collie \
|
|
|
|
--disable-h3600 \
|
|
|
|
--disable-mk712 \
|
|
|
|
--disable-arctic2 \
|
|
|
|
--enable-input \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-08-12 13:34:03 +02:00
|
|
|
$(SED) 's:rpl\_malloc:malloc:g' $(TSLIB_DIR)/config.h
|
2007-08-22 14:35:41 +02:00
|
|
|
touch $(TSLIB_DIR)/.configured
|
2007-08-12 13:34:03 +02:00
|
|
|
|
|
|
|
$(TSLIB_DIR)/.compiled: $(TSLIB_DIR)/.configured
|
2007-08-22 14:35:41 +02:00
|
|
|
$(MAKE) -C $(TSLIB_DIR)
|
2007-08-12 13:34:03 +02:00
|
|
|
touch $(TSLIB_DIR)/.compiled
|
|
|
|
|
|
|
|
$(STAGING_DIR)/usr/lib/libts.so: $(TSLIB_DIR)/.compiled
|
|
|
|
$(MAKE) -C $(TSLIB_DIR) \
|
|
|
|
prefix=$(STAGING_DIR)/usr \
|
|
|
|
exec_prefix=$(STAGING_DIR)/usr \
|
|
|
|
bindir=$(STAGING_DIR)/usr/bin \
|
|
|
|
sbindir=$(STAGING_DIR)/usr/sbin \
|
|
|
|
libexecdir=$(STAGING_DIR)/usr/libexec \
|
|
|
|
datadir=$(STAGING_DIR)/usr/share \
|
|
|
|
sysconfdir=$(STAGING_DIR)/etc \
|
|
|
|
localstatedir=$(STAGING_DIR)/var \
|
|
|
|
libdir=$(STAGING_DIR)/usr/lib \
|
|
|
|
includedir=$(STAGING_DIR)/usr/include \
|
|
|
|
infodir=$(STAGING_DIR)/info \
|
|
|
|
mandir=$(STAGING_DIR)/man \
|
|
|
|
install
|
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/lib/libts.so: $(STAGING_DIR)/usr/lib/libts.so
|
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libts*.so* $(TARGET_DIR)/usr/lib/
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libts.so*
|
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(STAGING_DIR)/usr/lib/ts/*.so
|
2007-08-12 13:34:03 +02:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/ts/*.so $(TARGET_DIR)/usr/lib/
|
|
|
|
cp -dpf $(STAGING_DIR)/usr/bin/ts_calibrate $(TARGET_DIR)/usr/bin/
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/ts_calibrate
|
2007-08-12 13:34:03 +02:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/bin/ts_finddev $(TARGET_DIR)/usr/bin/
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/ts_finddev
|
2007-08-12 13:34:03 +02:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/bin/inputattach $(TARGET_DIR)/usr/bin/
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/inputattach
|
2007-12-11 21:11:19 +01:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/bin/ts_test $(TARGET_DIR)/usr/bin/
|
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/ts_test
|
2007-08-12 13:34:03 +02:00
|
|
|
cp -dpf package/tslib/ts.conf $(TARGET_DIR)/etc/
|
|
|
|
|
|
|
|
tslib: uclibc $(TARGET_DIR)/usr/lib/libts.so
|
|
|
|
|
|
|
|
tslib-build: uclibc $(TSLIB_DIR)/.configured
|
|
|
|
rm -f $(TSLIB_DIR)/.compiled
|
2007-08-22 14:35:41 +02:00
|
|
|
$(MAKE) -C $(TSLIB_DIR)
|
2007-08-12 13:34:03 +02:00
|
|
|
touch $(TSLIB_DIR)/.compiled
|
|
|
|
|
|
|
|
tslib-clean:
|
2008-04-01 09:03:07 +02:00
|
|
|
-$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(TSLIB_DIR) uninstall
|
|
|
|
rm -f $(STAGING_DIR)/lib/libts.* $(STAGING_DIR)/usr/lib/libts.*
|
2007-08-12 13:34:03 +02:00
|
|
|
-$(MAKE) -C $(TSLIB_DIR) clean
|
|
|
|
|
|
|
|
tslib-dirclean:
|
|
|
|
rm -rf $(TSLIB_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_TSLIB)),y)
|
|
|
|
TARGETS+=tslib
|
|
|
|
endif
|