bbcbed1829
From now on, packages only need to select the BR2_PACKAGE_GETTEXT option and depend on the 'gettext' package to get the necessary i18n libraries installed on the target. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [yann.morin.1998@free.fr: remove BR2_PACKAGE_LIBINTL] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> CC: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
37 lines
929 B
Makefile
37 lines
929 B
Makefile
#############################################################
|
|
#
|
|
# ushare
|
|
#
|
|
#############################################################
|
|
|
|
USHARE_VERSION = 1.1a
|
|
USHARE_SOURCE = ushare-$(USHARE_VERSION).tar.bz2
|
|
USHARE_SITE = http://ushare.geexbox.org/releases
|
|
USHARE_DEPENDENCIES = host-pkg-config libupnp
|
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
|
USHARE_DEPENDENCIES += gettext
|
|
USHARE_LDFLAGS += -lintl
|
|
endif
|
|
|
|
define USHARE_CONFIGURE_CMDS
|
|
(cd $(@D); \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
./configure --prefix=/usr $(DISABLE_NLS) --cross-compile \
|
|
--cross-prefix="$(TARGET_CROSS)" --sysconfdir=/etc \
|
|
--disable-strip \
|
|
)
|
|
endef
|
|
|
|
define USHARE_BUILD_CMDS
|
|
$(MAKE) LDFLAGS="$(TARGET_LDFLAGS) $(USHARE_LDFLAGS)" -C $(@D)
|
|
endef
|
|
|
|
define USHARE_INSTALL_TARGET_CMDS
|
|
$(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))
|