2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-28 12:48:34 +01:00
|
|
|
#
|
|
|
|
# dvb-apps
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-28 12:48:34 +01:00
|
|
|
|
2013-01-12 14:50:33 +01:00
|
|
|
DVB_APPS_VERSION = 83c746462ccb
|
2012-12-31 02:41:35 +01:00
|
|
|
DVB_APPS_SITE = http://linuxtv.org/hg/dvb-apps
|
|
|
|
DVB_APPS_SITE_METHOD = hg
|
2012-12-28 12:48:34 +01:00
|
|
|
|
|
|
|
# We just install the transponders data. As this is not a 'work' as per
|
|
|
|
# traditional copyright, but just a collection of 'facts', there's probably
|
|
|
|
# no license to apply to these data files.
|
|
|
|
# To be noted however, is that the dvb-apps package bundles a copy of the
|
|
|
|
# GPLv2 and a copy of the LGPLv2.1, and that some of the source files refer
|
|
|
|
# to either the GPLv2+ or the LGPLv2.1+.
|
|
|
|
# But since we do not use any of those source files, their license do not
|
|
|
|
# apply to us.
|
|
|
|
DVB_APPS_LICENSE = unknown (probably public domain)
|
|
|
|
|
2013-01-05 12:39:10 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DVB_APPS_UTILS),y)
|
|
|
|
# Utilitiess are selected, build and install everything
|
2013-01-12 03:53:35 +01:00
|
|
|
|
2013-01-12 14:50:32 +01:00
|
|
|
DVB_APPS_LICENSE += GPLv2 GPLv2+ LGPLv2.1+
|
|
|
|
DVB_APPS_LICENSE_FILES += COPYING COPYING.LGPL
|
|
|
|
|
2013-01-12 03:53:35 +01:00
|
|
|
DVB_APPS_LDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_ENABLE_LOCALE),)
|
|
|
|
DVB_APPS_DEPENDENCIES = libiconv
|
|
|
|
DVB_APPS_LDFLAGS += -liconv
|
|
|
|
endif
|
|
|
|
|
2013-01-05 12:39:10 +01:00
|
|
|
DVB_APPS_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
define DVB_APPS_BUILD_CMDS
|
2013-01-12 03:53:35 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) LDFLAGS="$(DVB_APPS_LDFLAGS)" $(MAKE) -C $(@D) V=1
|
2013-01-05 12:39:10 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DVB_APPS_INSTALL_STAGING_CMDS
|
|
|
|
$(MAKE) -C $(@D) V=1 DESTDIR=$(STAGING_DIR) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define DVB_APPS_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) -C $(@D) V=1 DESTDIR=$(TARGET_DIR) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
else
|
|
|
|
# Utilities are not selected, just install the scan files
|
2012-12-28 12:48:34 +01:00
|
|
|
define DVB_APPS_INSTALL_TARGET_CMDS
|
|
|
|
for i in atsc dvb-c dvb-s dvb-t; do \
|
2013-01-05 12:39:10 +01:00
|
|
|
mkdir -p $(TARGET_DIR)/usr/share/dvb/$$i; \
|
|
|
|
$(INSTALL) $(@D)/util/scan/$$i/* $(TARGET_DIR)/usr/share/dvb/$$i; \
|
2012-12-28 12:48:34 +01:00
|
|
|
done
|
|
|
|
endef
|
2013-01-05 12:39:10 +01:00
|
|
|
endif
|
2012-12-28 12:48:34 +01:00
|
|
|
|
|
|
|
$(eval $(generic-package))
|