2014-09-11 12:08:44 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# dos2unix
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-05-26 21:31:23 +02:00
|
|
|
DOS2UNIX_VERSION = 7.3.4
|
2015-03-09 23:14:51 +01:00
|
|
|
DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix
|
2014-09-11 12:08:44 +02:00
|
|
|
DOS2UNIX_LICENSE = BSD-2c
|
|
|
|
DOS2UNIX_LICENSE_FILES = COPYING.txt
|
2015-09-03 06:10:50 +02:00
|
|
|
DOS2UNIX_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
|
|
|
|
2015-09-29 08:55:48 +02:00
|
|
|
ifeq ($(BR2_ENABLE_LOCALE),y)
|
|
|
|
DOS2UNIX_DEPENDENCIES += host-gettext
|
|
|
|
else
|
2015-09-03 06:10:50 +02:00
|
|
|
DOS2UNIX_MAKE_OPTS += ENABLE_NLS=
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
|
|
|
DOS2UNIX_DEPENDENCIES += gettext
|
|
|
|
DOS2UNIX_MAKE_OPTS += LIBS_EXTRA=-lintl
|
|
|
|
endif
|
|
|
|
|
2015-09-03 06:10:52 +02:00
|
|
|
ifeq ($(BR2_USE_WCHAR),)
|
|
|
|
DOS2UNIX_MAKE_OPTS += UCS=
|
|
|
|
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
|
2015-09-03 06:10:53 +02:00
|
|
|
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) ENABLE_NLS= \
|
|
|
|
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))
|