2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-04-11 16:36:22 +02:00
|
|
|
#
|
|
|
|
# ushare
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-04-11 16:36:22 +02:00
|
|
|
|
|
|
|
USHARE_VERSION = 1.1a
|
|
|
|
USHARE_SOURCE = ushare-$(USHARE_VERSION).tar.bz2
|
|
|
|
USHARE_SITE = http://ushare.geexbox.org/releases
|
2017-07-03 23:20:33 +02:00
|
|
|
USHARE_DEPENDENCIES = host-pkgconf libupnp $(TARGET_NLS_DEPENDENCIES)
|
2017-03-30 15:43:32 +02:00
|
|
|
USHARE_LICENSE = GPL-2.0+
|
2013-07-10 19:25:49 +02:00
|
|
|
USHARE_LICENSE_FILES = COPYING
|
2017-07-03 23:20:33 +02:00
|
|
|
USHARE_LDFLAGS = $(TARGET_NLS_LIBS)
|
2012-04-11 16:36:22 +02:00
|
|
|
|
2017-07-04 16:47:44 +02:00
|
|
|
USHARE_CONF_OPTS = \
|
|
|
|
--prefix=/usr \
|
|
|
|
--cross-compile \
|
|
|
|
--cross-prefix="$(TARGET_CROSS)" \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--disable-strip
|
|
|
|
|
2017-07-03 23:20:33 +02:00
|
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
|
2017-07-04 16:47:44 +02:00
|
|
|
USHARE_CONF_OPTS += --disable-nls
|
|
|
|
endif
|
|
|
|
|
2012-04-11 16:36:22 +02:00
|
|
|
define USHARE_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2017-07-04 16:47:44 +02:00
|
|
|
./configure \
|
|
|
|
$(USHARE_CONF_OPTS) \
|
2012-04-11 16:36:22 +02:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define USHARE_BUILD_CMDS
|
2016-10-14 00:13:51 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) LDFLAGS="$(TARGET_LDFLAGS) $(USHARE_LDFLAGS)" -C $(@D)
|
2012-04-11 16:36:22 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define USHARE_INSTALL_TARGET_CMDS
|
2016-10-14 00:13:51 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
2012-04-11 16:36:22 +02:00
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/ushare
|
|
|
|
endef
|
|
|
|
|
|
|
|
# Even though configure is called it's not autoconf
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|