2007-07-11 16:06:06 +02:00
|
|
|
TN5250_VERSION:=0.16.4
|
2005-06-09 14:15:00 +02:00
|
|
|
TN5250_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/tn5250
|
2007-07-11 16:06:06 +02:00
|
|
|
TN5250_DIR:=$(BUILD_DIR)/tn5250-$(TN5250_VERSION)
|
|
|
|
TN5250_SOURCE:=tn5250-$(TN5250_VERSION).tar.gz
|
2006-11-17 16:43:51 +01:00
|
|
|
TN5250_CAT:=$(ZCAT)
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(TN5250_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(TN5250_SITE),$(TN5250_SOURCE))
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
$(TN5250_DIR)/.dist: $(DL_DIR)/$(TN5250_SOURCE)
|
2006-11-17 16:43:51 +01:00
|
|
|
$(TN5250_CAT) $(DL_DIR)/$(TN5250_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-07-25 19:37:50 +02:00
|
|
|
toolchain/patch-kernel.sh $(TN5250_DIR) package/tn5250 tn5250\*.patch
|
2003-01-18 22:27:22 +01:00
|
|
|
-touch $(TN5250_DIR)/.dist
|
|
|
|
|
|
|
|
$(TN5250_DIR)/.configured: $(TN5250_DIR)/.dist
|
|
|
|
(cd $(TN5250_DIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2003-01-18 22:27:22 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2003-03-04 20:16:19 +01:00
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2003-01-18 22:27:22 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2003-01-18 22:27:22 +01:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2003-09-03 09:18:18 +02:00
|
|
|
$(DISABLE_NLS) \
|
2003-01-18 22:27:22 +01:00
|
|
|
--with-slang --without-x --without-ssl \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(TN5250_DIR)/.configured
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2007-07-25 19:37:50 +02:00
|
|
|
$(TN5250_DIR)/src/tn5250: $(TN5250_DIR)/.configured
|
2007-07-27 09:35:49 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(TN5250_DIR)
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2007-07-25 19:37:50 +02:00
|
|
|
$(TARGET_DIR)/usr/bin/tn5250: $(TN5250_DIR)/src/tn5250
|
|
|
|
install -c $(TN5250_DIR)/src/tn5250 $(TARGET_DIR)/usr/bin/tn5250
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
tn5250: slang $(TARGET_DIR)/usr/bin/tn5250
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
tn5250-source: $(DL_DIR)/$(TN5250_SOURCE)
|
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
tn5250-clean:
|
2008-03-27 16:42:42 +01:00
|
|
|
-$(MAKE) -C $(TN5250_DIR) clean
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/tn5250
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
tn5250-dirclean:
|
|
|
|
rm -rf $(TN5250_DIR)
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_TN5250),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=tn5250
|
|
|
|
endif
|