aboutsummaryrefslogtreecommitdiffstats
path: root/package/tn5250/tn5250.mk
blob: 4890f35d35cc0a1e45f667b7cf0ab39d26ff9f06 (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
################################################################################
#
# tn5250
#
################################################################################

TN5250_VERSION = 0.17.4
TN5250_SITE = http://downloads.sourceforge.net/project/tn5250/tn5250/$(TN5250_VERSION)
TN5250_MAKE_OPT = CPPFLAGS=""
TN5250_DEPENDENCIES = ncurses
TN5250_LICENSE = LGPLv2.1+
TN5250_LICENSE_FILES = COPYING

ifeq ($(BR2_PACKAGE_OPENSSL),y)
	TN5250_CONF_OPT += --with-ssl
	TN5250_DEPENDENCIES += openssl
else
	TN5250_CONF_OPT += --without-ssl
endif

define TN5250_INSTALL_FIXES
	rm -f $(TARGET_DIR)/usr/bin/5250keys
	rm -f $(TARGET_DIR)/usr/bin/xt5250
endef

TN5250_POST_INSTALL_TARGET_HOOKS += TN5250_INSTALL_FIXES

define TN5250_UNINSTALL_TARGET_CMDS
	$(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(TN5250_DIR)
	rm -f $(TARGET_DIR)/usr/lib/lib5250.*
	rm -rf $(TARGET_DIR)/usr/share/tn5250
endef

$(eval $(autotools-package))