kumquat-buildroot/package/ushare/ushare.mk
Fabrice Fontaine 7bbd1c62c4 package/ushare: bump to release 2.0
As suggested by Yann E. Morin, switch to an active fork with all our
patches as upstream seems pretty dead, and they even acknowledge that
status:

    https://ushare.geexbox.org/

    By lack of spare time, motivation and interest, uShare development
    is currently discontinued (this may change though). Don't expect
    release anytime soon :-(

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-01-26 18:07:01 +01:00

44 lines
1.1 KiB
Makefile

################################################################################
#
# ushare
#
################################################################################
USHARE_VERSION = 2.0
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
ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
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) LDFLAGS="$(TARGET_LDFLAGS) $(USHARE_LDFLAGS)" -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))