2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
2010-06-02 16:54:14 +02:00
|
|
|
# tn5250
|
2005-02-10 04:06:39 +01:00
|
|
|
#
|
|
|
|
#############################################################
|
2010-06-02 16:54:14 +02:00
|
|
|
|
|
|
|
TN5250_VERSION = 0.17.4
|
|
|
|
TN5250_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/tn5250
|
|
|
|
TN5250_MAKE_OPT = CPPFLAGS=""
|
|
|
|
TN5250_DEPENDENCIES = ncurses
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
TN5250_CONF_OPT += --with-ssl
|
|
|
|
TN5250_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
TN5250_CONF_OPT += --without-ssl
|
2005-02-10 04:06:39 +01:00
|
|
|
endif
|
2010-06-02 16:54:14 +02:00
|
|
|
|
2010-09-01 17:06:45 +02:00
|
|
|
define TN5250_INSTALL_FIXES
|
2010-06-02 16:54:14 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/5250keys
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/xt5250
|
2010-09-01 17:06:45 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
TN5250_POST_INSTALL_TARGET_HOOKS += TN5250_INSTALL_FIXES
|
2010-06-02 16:54:14 +02:00
|
|
|
|
2010-09-01 17:06:45 +02:00
|
|
|
define TN5250_UNINSTALL_TARGET_CMDS
|
2010-06-02 16:54:14 +02:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(TN5250_DIR)
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/lib5250.*
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/tn5250
|
2010-09-01 17:06:45 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,tn5250))
|