2014-09-11 12:08:44 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# dos2unix
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-01-23 14:28:14 +01:00
|
|
|
DOS2UNIX_VERSION = 7.4.0
|
2015-03-09 23:14:51 +01:00
|
|
|
DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix
|
2017-03-30 15:43:39 +02:00
|
|
|
DOS2UNIX_LICENSE = BSD-2-Clause
|
2014-09-11 12:08:44 +02:00
|
|
|
DOS2UNIX_LICENSE_FILES = COPYING.txt
|
2018-07-08 11:46:05 +02:00
|
|
|
DOS2UNIX_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
2015-09-03 06:10:50 +02:00
|
|
|
|
2017-07-03 16:59:50 +02:00
|
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
|
|
|
DOS2UNIX_MAKE_OPTS += ENABLE_NLS=1
|
|
|
|
DOS2UNIX_MAKE_OPTS += LIBS_EXTRA=$(TARGET_NLS_LIBS)
|
2015-09-29 08:55:48 +02:00
|
|
|
else
|
2017-07-03 16:59:50 +02:00
|
|
|
# Should be defined to empty to disable NLS support
|
2015-09-03 06:10:50 +02:00
|
|
|
DOS2UNIX_MAKE_OPTS += ENABLE_NLS=
|
|
|
|
endif
|
|
|
|
|
2015-09-03 06:10:52 +02:00
|
|
|
ifeq ($(BR2_USE_WCHAR),)
|
|
|
|
DOS2UNIX_MAKE_OPTS += UCS=
|
|
|
|
endif
|
|
|
|
|
2018-06-24 20:15:00 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
DOS2UNIX_MAKE_OPTS += LDFLAGS_USER=-static
|
|
|
|
endif
|
|
|
|
|
2015-09-03 06:10:50 +02:00
|
|
|
define DOS2UNIX_BUILD_CMDS
|
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(DOS2UNIX_MAKE_OPTS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define DOS2UNIX_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
|
|
|
$(DOS2UNIX_MAKE_OPTS) install
|
|
|
|
endef
|
2014-09-11 12:08:44 +02:00
|
|
|
|
|
|
|
define HOST_DOS2UNIX_BUILD_CMDS
|
2015-09-03 06:10:53 +02:00
|
|
|
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) ENABLE_NLS=
|
2014-09-11 12:08:44 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_DOS2UNIX_INSTALL_CMDS
|
2017-07-05 13:14:45 +02:00
|
|
|
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) prefix=$(HOST_DIR) ENABLE_NLS= \
|
2015-09-03 06:10:53 +02:00
|
|
|
install
|
2014-09-11 12:08:44 +02:00
|
|
|
endef
|
|
|
|
|
2015-09-03 06:10:50 +02:00
|
|
|
$(eval $(generic-package))
|
2014-09-11 12:08:44 +02:00
|
|
|
$(eval $(host-generic-package))
|