mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-25 14:33:29 +08:00
300f9c9c9d
Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
33 lines
823 B
Makefile
33 lines
823 B
Makefile
#############################################################
|
|
#
|
|
# 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
|
|
|
|
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 $(call AUTOTARGETS))
|