diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2010-06-02 11:54:14 -0300 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-06-06 20:56:17 +0200 |
commit | 8ac2bba9bbaee491ddb083d8ce80abf3130e2f2c (patch) | |
tree | 273a56947799a522c34e16910be2d0a0c1f0ce21 /package/tn5250/tn5250.mk | |
parent | 3638e528e0e308d18e62f03c57aeb01079c12956 (diff) | |
download | buildroot-novena-8ac2bba9bbaee491ddb083d8ce80abf3130e2f2c.tar.gz buildroot-novena-8ac2bba9bbaee491ddb083d8ce80abf3130e2f2c.zip |
tn5250: bump version and convert to autotargets
Closes #1903
[Peter: add --without-ssl when openssl isn't enabled]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/tn5250/tn5250.mk')
-rw-r--r-- | package/tn5250/tn5250.mk | 86 |
1 files changed, 26 insertions, 60 deletions
diff --git a/package/tn5250/tn5250.mk b/package/tn5250/tn5250.mk index 205cd3029..ac9c1f1fb 100644 --- a/package/tn5250/tn5250.mk +++ b/package/tn5250/tn5250.mk @@ -1,65 +1,31 @@ -TN5250_VERSION:=0.16.4 -TN5250_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/tn5250 -TN5250_DIR:=$(BUILD_DIR)/tn5250-$(TN5250_VERSION) -TN5250_SOURCE:=tn5250-$(TN5250_VERSION).tar.gz -TN5250_CAT:=$(ZCAT) - -$(DL_DIR)/$(TN5250_SOURCE): - $(call DOWNLOAD,$(TN5250_SITE),$(TN5250_SOURCE)) - -$(TN5250_DIR)/.dist: $(DL_DIR)/$(TN5250_SOURCE) - $(TN5250_CAT) $(DL_DIR)/$(TN5250_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(TN5250_DIR) package/tn5250 tn5250\*.patch - -touch $(TN5250_DIR)/.dist - -$(TN5250_DIR)/.configured: $(TN5250_DIR)/.dist - (cd $(TN5250_DIR); rm -rf config.cache; \ - $(TARGET_CONFIGURE_OPTS) \ - $(TARGET_CONFIGURE_ARGS) \ - ./configure $(QUIET) \ - --target=$(GNU_TARGET_NAME) \ - --host=$(GNU_TARGET_NAME) \ - --build=$(GNU_HOST_NAME) \ - --prefix=/usr \ - --exec-prefix=/usr \ - --bindir=/usr/bin \ - --sbindir=/usr/sbin \ - --libdir=/lib \ - --libexecdir=/usr/lib \ - --sysconfdir=/etc \ - --datadir=/usr/share \ - --localstatedir=/var \ - --mandir=/usr/man \ - --infodir=/usr/info \ - $(DISABLE_NLS) \ - --with-slang --without-x --without-ssl \ - ) - touch $(TN5250_DIR)/.configured - -$(TN5250_DIR)/src/tn5250: $(TN5250_DIR)/.configured - $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(TN5250_DIR) - -$(TARGET_DIR)/usr/bin/tn5250: $(TN5250_DIR)/src/tn5250 - install -c $(TN5250_DIR)/src/tn5250 $(TARGET_DIR)/usr/bin/tn5250 - -tn5250: slang $(TARGET_DIR)/usr/bin/tn5250 - -tn5250-source: $(DL_DIR)/$(TN5250_SOURCE) - -tn5250-clean: - -$(MAKE) -C $(TN5250_DIR) clean - rm -f $(TARGET_DIR)/usr/bin/tn5250 - -tn5250-dirclean: - rm -rf $(TN5250_DIR) - - - ############################################################# # -# Toplevel Makefile options +# tn5250 # ############################################################# -ifeq ($(BR2_PACKAGE_TN5250),y) -TARGETS+=tn5250 + +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 endif + +$(eval $(call AUTOTARGETS,package,tn5250)) + +$(TN5250_HOOK_POST_INSTALL): + rm -f $(TARGET_DIR)/usr/bin/5250keys + rm -f $(TARGET_DIR)/usr/bin/xt5250 + touch $@ + +$(TN5250_TARGET_UNINSTALL): + $(call MESSAGE,"Uninstalling") + $(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(TN5250_DIR) + rm -f $(TARGET_DIR)/usr/lib/lib5250.* + rm -rf $(TARGET_DIR)/usr/share/tn5250 + rm -f $(TN5250_TARGET_INSTALL_TARGET) $(TN5250_HOOK_POST_INSTALL) |