2012-04-11 16:36:22 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ushare
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
USHARE_VERSION = 1.1a
|
|
|
|
USHARE_SOURCE = ushare-$(USHARE_VERSION).tar.bz2
|
|
|
|
USHARE_SITE = http://ushare.geexbox.org/releases
|
2012-10-22 17:47:52 +02:00
|
|
|
USHARE_DEPENDENCIES = host-pkgconf libupnp
|
2012-04-11 16:36:22 +02:00
|
|
|
|
2012-05-03 05:25:37 +02:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
2012-09-16 14:57:49 +02:00
|
|
|
USHARE_DEPENDENCIES += gettext
|
2012-05-03 05:25:37 +02:00
|
|
|
USHARE_LDFLAGS += -lintl
|
|
|
|
endif
|
|
|
|
|
2012-04-11 16:36:22 +02:00
|
|
|
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
|
2012-05-03 05:25:37 +02:00
|
|
|
$(MAKE) LDFLAGS="$(TARGET_LDFLAGS) $(USHARE_LDFLAGS)" -C $(@D)
|
2012-04-11 16:36:22 +02:00
|
|
|
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
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|