diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2013-01-05 11:39:10 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-01-06 21:53:47 +0100 |
commit | 38cdf82a761f15754c609441028ec82d7886bdf8 (patch) | |
tree | 7edff21c948245923e7ae9c6ee815e1a0ab77d3d /package/dvb-apps | |
parent | 4b2a40b6d7d6ce9a892c6230e3b41e8e0b252896 (diff) | |
download | buildroot-novena-38cdf82a761f15754c609441028ec82d7886bdf8.tar.gz buildroot-novena-38cdf82a761f15754c609441028ec82d7886bdf8.zip |
package/dvb-apps: add option to install utilities
Previously, dvb-apps was a 'blind' package that would install
only the transponders data files for use by external packages
(namely tvheadend).
Now, we add an option to also install the DVB utilities.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/dvb-apps')
-rw-r--r-- | package/dvb-apps/Config.in | 17 | ||||
-rw-r--r-- | package/dvb-apps/dvb-apps.mk | 23 |
2 files changed, 38 insertions, 2 deletions
diff --git a/package/dvb-apps/Config.in b/package/dvb-apps/Config.in new file mode 100644 index 000000000..5d0b6f5ba --- /dev/null +++ b/package/dvb-apps/Config.in @@ -0,0 +1,17 @@ +config BR2_PACKAGE_DVB_APPS + bool "dvb-apps (transponders data)" + help + Install the DVB-C, DVB-S, DVB-T and ATSC transponders data. + + http://linuxtv.org/projects.php + http://linuxtv.org/hg/dvb-apps + +if BR2_PACKAGE_DVB_APPS + +config BR2_PACKAGE_DVB_APPS_UTILS + bool "dvb-apps utilities" + help + A small number of DVB test and utility programs, + including szap and dvbscan. + +endif diff --git a/package/dvb-apps/dvb-apps.mk b/package/dvb-apps/dvb-apps.mk index 5db81483b..f914799fd 100644 --- a/package/dvb-apps/dvb-apps.mk +++ b/package/dvb-apps/dvb-apps.mk @@ -18,11 +18,30 @@ DVB_APPS_SITE_METHOD = hg # apply to us. DVB_APPS_LICENSE = unknown (probably public domain) +ifeq ($(BR2_PACKAGE_DVB_APPS_UTILS),y) +# Utilitiess are selected, build and install everything +DVB_APPS_INSTALL_STAGING = YES + +define DVB_APPS_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) V=1 +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 define DVB_APPS_INSTALL_TARGET_CMDS for i in atsc dvb-c dvb-s dvb-t; do \ - mkdir -p $(TARGET_DIR)/usr/share/dvb-apps/scan/$$i; \ - $(INSTALL) $(@D)/util/scan/$$i/* $(TARGET_DIR)/usr/share/dvb-apps/scan/$$i; \ + mkdir -p $(TARGET_DIR)/usr/share/dvb/$$i; \ + $(INSTALL) $(@D)/util/scan/$$i/* $(TARGET_DIR)/usr/share/dvb/$$i; \ done endef +endif $(eval $(generic-package)) |