Modify

Opened 10 years ago

Closed 7 years ago

#2804 closed enhancement (duplicate)

[new package] dvb-apps

Reported by: carlb Owned by: developers
Priority: normal Milestone: Features Paradise
Component: packages Version: Kamikaze trunk
Keywords: Cc:

Description

#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: Makefile 0001 2007-12-03 18:00:00Z dvbapps $

include $(TOPDIR)/rules.mk

PKG_NAME:=dvbapps
PKG_VERSION:=1.1.1
PKG_RELEASE:=1

PKG_SOURCE:=linuxtv-dvb-apps-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= http://www.linuxtv.org/downloads

PKG_BUILD_DIR:=$(BUILD_DIR)/linuxtv-dvb-apps-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/dvbapps

SECTION:=utils
CATEGORY:=Multimedia
TITLE:=A set of programmes to test, tune and scan DVB input signals.
URL:=http://www.linuxtv.org

endef

define Build/Configure

$(call Build/Configure/Default)

endef

define Build/Compile

$(MAKE) -C $(PKG_BUILD_DIR)

endef

define Package/dvbapps/install

$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/av7110_loadkeys/av7110_loadkeys $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/av7110_loadkeys/evtest $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/dvbdate/dvbdate $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/dvbnet/dvbnet $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/dvbnet/net_start.pl $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/dvbnet/net_start.sh $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/dvbtraffic/dvbtraffic $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/scan/scan $(1)/usr/bin/dvbscan
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/szap/azap $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/szap/czap $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/szap/szap $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/szap/tzap $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/szap/femon $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/dia $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/diseqc $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/sendburst $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/set22k $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/setpid $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/setvoltage $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_av $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_av_play $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_dvr $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_dvr_play $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_pes $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_sec_ne $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_sections $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_stc $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_stillimage $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_tt $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_vevent $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/video $(1)/usr/bin/

endef

$(eval $(call BuildPackage,dvbapps))

Attachments (11)

Makefile (2.8 KB) - added by carlb 10 years ago.
module description for linuxtv.org dvb-apps port
001-test-makefile.patch (438 bytes) - added by carlb 10 years ago.
makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc
002-av7110keys-makefile.patch (413 bytes) - added by carlb 10 years ago.
makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc
003-dvbdate-makefile.patch (409 bytes) - added by carlb 10 years ago.
makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc
004-dvbnet-makefile.patch (407 bytes) - added by carlb 10 years ago.
makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc
005-dvbtraffic-makefile.patch (501 bytes) - added by carlb 10 years ago.
makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc
006-lib-makefile.patch (403 bytes) - added by carlb 10 years ago.
makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc
007-scan-makefile.patch (401 bytes) - added by carlb 10 years ago.
makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc
008-szap-makefile.patch (424 bytes) - added by carlb 10 years ago.
makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc
009-ttusbreset-makefile.patch (413 bytes) - added by carlb 10 years ago.
makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc
Makefile.2 (2.9 KB) - added by jochen@… 10 years ago.
Alternative Makefile which doesn't require any patches and doesn't hardcode the compiler to mips arch.

Download all attachments as: .zip

Change History (17)

Changed 10 years ago by carlb

module description for linuxtv.org dvb-apps port

Changed 10 years ago by carlb

makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc

Changed 10 years ago by carlb

makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc

Changed 10 years ago by carlb

makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc

Changed 10 years ago by carlb

makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc

Changed 10 years ago by carlb

makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc

Changed 10 years ago by carlb

makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc

Changed 10 years ago by carlb

makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc

comment:1 Changed 10 years ago by anonymous

You can use a foreach loop in the package install template to make the Makefile more readable and shorter. E.g.

$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(foreach i,azap czap szap tzap femon,$(PKG_BUILD_DIR)/util/szap/$(i)) $(1)/usr/bin/

instead of:

        $(INSTALL_BIN) $(PKG_BUILD_DIR)/util/szap/azap $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/util/szap/czap $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/util/szap/szap $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/util/szap/tzap $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/util/szap/femon $(1)/usr/bin/

Changed 10 years ago by carlb

makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc

Changed 10 years ago by carlb

makefile patches to force dvb-apps to build with cross-compiler instead of desktop-native gcc

comment:2 in reply to: ↑ description Changed 10 years ago by carlb

These are base utilities from linuxtv.org to select a channel or scan for signal on various USB digital TV tuners. Documentation on these devices is here http://linuxtv.org/wiki/index.php/DVB_via_USB and the utilities themselves are introduced here http://linuxtv.org/wiki/index.php/LinuxTV_dvb-apps

There are multiple small utility programs in the package, each of which has a Makefile in which (for whatever reason) $CC = 'gcc' has been hardcoded. This patch changes these references to use the cross-compile tools as otherwise a desktop PC version of the dvb-apps will be built.

This package is useful primarily on USB-capable devices such as ASUS WL500/WL700's and Linksys WRTSL54GS. It requires drivers: i2c-core, dvb-usb and the dvb-usb-* driver for the specific input device to be used.

comment:3 Changed 10 years ago by carlb

Note that this package implicitly depends on /ticket/2805.html as, without i2c-core.ko, loading the drivers for most USB TV tuners will fail.

Changed 10 years ago by jochen@…

Alternative Makefile which doesn't require any patches and doesn't hardcode the compiler to mips arch.

comment:4 Changed 8 years ago by thepeople

  • Milestone changed from Kamikaze to Kamikaze Features Paradise
  • Version set to Kamikaze trunk

Need a new patch or a confirmation that this patch is still good.

comment:5 Changed 7 years ago by vx

comment:6 Changed 7 years ago by loswillios

  • Resolution set to duplicate
  • Status changed from new to closed

tracked in #9591
thanks

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.