gcc: preserve CXXFLAGS_FOR_TARGET
[buildroot-gz.git] / package / dos2unix / dos2unix.mk
blob21e03aecb07cca7d3c2b733aeb4b833a56512b75
1 ################################################################################
3 # dos2unix
5 ################################################################################
7 DOS2UNIX_VERSION = 7.3.1
8 DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix
9 DOS2UNIX_LICENSE = BSD-2c
10 DOS2UNIX_LICENSE_FILES = COPYING.txt
11 DOS2UNIX_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox)
12 HOST_DOS2UNIX_DEPENDENCIES =
14 ifeq ($(BR2_ENABLE_LOCALE),y)
15 DOS2UNIX_DEPENDENCIES += host-gettext
16 else
17 DOS2UNIX_MAKE_OPTS += ENABLE_NLS=
18 endif
20 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
21 DOS2UNIX_DEPENDENCIES += gettext
22 DOS2UNIX_MAKE_OPTS += LIBS_EXTRA=-lintl
23 endif
25 ifeq ($(BR2_USE_WCHAR),)
26 DOS2UNIX_MAKE_OPTS += UCS=
27 endif
29 define DOS2UNIX_BUILD_CMDS
30 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(DOS2UNIX_MAKE_OPTS)
31 endef
33 define DOS2UNIX_INSTALL_TARGET_CMDS
34 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
35 $(DOS2UNIX_MAKE_OPTS) install
36 endef
38 define HOST_DOS2UNIX_BUILD_CMDS
39 $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) ENABLE_NLS=
40 endef
42 define HOST_DOS2UNIX_INSTALL_CMDS
43 $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) ENABLE_NLS= \
44 install
45 endef
47 $(eval $(generic-package))
48 $(eval $(host-generic-package))