logrotate: fix build with gcc 6
[buildroot-gz.git] / package / ushare / ushare.mk
blob25f880c35f2150ee5788f602b0d89acb18e2d378
1 ################################################################################
3 # ushare
5 ################################################################################
7 USHARE_VERSION = 1.1a
8 USHARE_SOURCE = ushare-$(USHARE_VERSION).tar.bz2
9 USHARE_SITE = http://ushare.geexbox.org/releases
10 USHARE_DEPENDENCIES = host-pkgconf libupnp
11 USHARE_LICENSE = GPLv2+
12 USHARE_LICENSE_FILES = COPYING
14 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
15 USHARE_DEPENDENCIES += gettext
16 USHARE_LDFLAGS += -lintl
17 endif
19 define USHARE_CONFIGURE_CMDS
20 (cd $(@D); \
21 $(TARGET_CONFIGURE_OPTS) \
22 ./configure --prefix=/usr $(DISABLE_NLS) --cross-compile \
23 --cross-prefix="$(TARGET_CROSS)" --sysconfdir=/etc \
24 --disable-strip \
26 endef
28 define USHARE_BUILD_CMDS
29 $(MAKE) LDFLAGS="$(TARGET_LDFLAGS) $(USHARE_LDFLAGS)" -C $(@D)
30 endef
32 define USHARE_INSTALL_TARGET_CMDS
33 $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
34 rm -f $(TARGET_DIR)/etc/init.d/ushare
35 endef
37 # Even though configure is called it's not autoconf
38 $(eval $(generic-package))