9ba132b371
dos2unix uses xgettext to generate its .pot file. Fixes: http://autobuild.buildroot.net/results/eda/eda7eeb2fdf7a22c299858ac99d1b1953b15575e/ http://autobuild.buildroot.net/results/aaf/aaf2b77f964eb6259e2e4b1d5a13838c3a1eef21/ http://autobuild.buildroot.net/results/922/92289b63ebdf133ab910f058ffca8ba34e574208/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# dos2unix
|
|
#
|
|
################################################################################
|
|
|
|
DOS2UNIX_VERSION = 7.3
|
|
DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix
|
|
DOS2UNIX_LICENSE = BSD-2c
|
|
DOS2UNIX_LICENSE_FILES = COPYING.txt
|
|
DOS2UNIX_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
|
HOST_DOS2UNIX_DEPENDENCIES =
|
|
|
|
ifeq ($(BR2_ENABLE_LOCALE),y)
|
|
DOS2UNIX_DEPENDENCIES += host-gettext
|
|
else
|
|
DOS2UNIX_MAKE_OPTS += ENABLE_NLS=
|
|
endif
|
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
|
DOS2UNIX_DEPENDENCIES += gettext
|
|
DOS2UNIX_MAKE_OPTS += LIBS_EXTRA=-lintl
|
|
endif
|
|
|
|
ifeq ($(BR2_USE_WCHAR),)
|
|
DOS2UNIX_MAKE_OPTS += UCS=
|
|
endif
|
|
|
|
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
|
|
|
|
define HOST_DOS2UNIX_BUILD_CMDS
|
|
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) ENABLE_NLS=
|
|
endef
|
|
|
|
define HOST_DOS2UNIX_INSTALL_CMDS
|
|
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) ENABLE_NLS= \
|
|
install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|