af31c309e7
We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# ushare
|
|
#
|
|
################################################################################
|
|
|
|
USHARE_VERSION = 1.1a
|
|
USHARE_SOURCE = ushare-$(USHARE_VERSION).tar.bz2
|
|
USHARE_SITE = http://ushare.geexbox.org/releases
|
|
USHARE_DEPENDENCIES = host-pkgconf libupnp
|
|
USHARE_LICENSE = GPL-2.0+
|
|
USHARE_LICENSE_FILES = COPYING
|
|
|
|
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
|
|
$(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))
|