c4e1a07510
Fix the following build failure without /usr/bin/msgfmt raised since the
addition of ushare in commit 74097fd659
:
make[3]: Entering directory `/home/buildroot/autobuild/run/instance-3/output-1/build/ushare-2.1/po'
/usr/bin/msgfmt -c --statistics -o fr.gmo fr.po
make[3]: /usr/bin/msgfmt: Command not found
To fix this build failure, set GMSGFMT to $(HOST_DIR)/bin/msgfmt and
don't build po files if NLS is disabled
Fixes:
- http://autobuild.buildroot.org/results/9f6b5b8f38386135bacd2d8f6e97c1fea77bbe69
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# ushare
|
|
#
|
|
################################################################################
|
|
|
|
USHARE_VERSION = 2.1
|
|
USHARE_SITE = $(call github,ddugovic,uShare,v$(USHARE_VERSION))
|
|
USHARE_DEPENDENCIES = host-pkgconf libupnp $(TARGET_NLS_DEPENDENCIES)
|
|
USHARE_LICENSE = GPL-2.0+
|
|
USHARE_LICENSE_FILES = COPYING
|
|
USHARE_LDFLAGS = $(TARGET_NLS_LIBS)
|
|
|
|
USHARE_CONF_OPTS = \
|
|
--prefix=/usr \
|
|
--cross-compile \
|
|
--cross-prefix="$(TARGET_CROSS)" \
|
|
--sysconfdir=/etc \
|
|
--disable-strip
|
|
|
|
USHARE_MAKE_OPTS = LDFLAGS="$(TARGET_LDFLAGS) $(USHARE_LDFLAGS)"
|
|
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
|
USHARE_CONF_OPTS += --enable-nls
|
|
USHARE_MAKE_OPTS += GMSGFMT="$(HOST_DIR)/bin/msgfmt"
|
|
else
|
|
USHARE_CONF_OPTS += --disable-nls
|
|
endif
|
|
|
|
define USHARE_CONFIGURE_CMDS
|
|
(cd $(@D); \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
./configure \
|
|
$(USHARE_CONF_OPTS) \
|
|
)
|
|
endef
|
|
|
|
define USHARE_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(USHARE_MAKE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define USHARE_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
rm -f $(TARGET_DIR)/etc/init.d/ushare
|
|
endef
|
|
|
|
# Even though configure is called it's not autoconf
|
|
$(eval $(generic-package))
|