packages: disable mips16 support on a number of packages that fail to build with it
[openwrt/svn-archive/archive.git] / multimedia / tvheadend / Makefile
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=tvheadend
11 PKG_VERSION:=3.2
12 PKG_RELEASE:=0.1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/downloads/tvheadend/tvheadend/
16 PKG_MD5SUM:=4f7faa75c4ea24942c5a12a77ebdcdf0
17
18 PKG_USE_MIPS16:=0
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/tvheadend
23 SECTION:=multimedia
24 CATEGORY:=Multimedia
25 TITLE:=Tvheadend is a TV streaming server for Linux
26 DEPENDS:=+libopenssl +librt +zlib +TVHEADEND_AVAHI_SUPPORT:libavahi-client
27 URL:=http://www.lonelycoder.com/hts/tvheadend_overview.html
28 endef
29
30 define Package/tvheadend/description
31 Tvheadend is a TV streaming server for Linux supporting DVB, ATSC, IPTV,
32 and Analog video (V4L) as input sources.
33 Can be used as a backend to Showtime, XBMC and various other clients.
34 endef
35
36 define Package/tvheadend/config
37 menu "Configuration"
38 depends on PACKAGE_tvheadend
39 source "$(SOURCE)/Config.in"
40 endmenu
41 endef
42
43 ifeq ($(CONFIG_TVHEADEND_CWC_SUPPORT),)
44 CONFIGURE_ARGS += --disable-cwc
45 endif
46
47 ifeq ($(CONFIG_TVHEADEND_V4L_SUPPORT),)
48 CONFIGURE_ARGS += --disable-v4l
49 endif
50
51 ifeq ($(CONFIG_TVHEADEND_LINUXDVB_SUPPORT),)
52 CONFIGURE_ARGS += --disable-linuxdvb
53 endif
54
55 ifeq ($(CONFIG_TVHEADEND_DVBSCAN_SUPPORT),)
56 CONFIGURE_ARGS += --disable-dvbscan
57 endif
58
59 ifeq ($(CONFIG_TVHEADEND_AVAHI_SUPPORT),)
60 CONFIGURE_ARGS += --disable-avahi
61 else
62 CONFIGURE_ARGS += --enable-avahi
63 endif
64
65 CONFIGURE_ARGS += \
66 --release \
67 --enable-bundle
68
69 define Package/tvheadend/install
70 $(INSTALL_DIR) $(1)/etc/tvheadend
71 $(INSTALL_DIR) $(1)/etc/init.d
72 $(INSTALL_BIN) ./files/tvheadend.init $(1)/etc/init.d/tvheadend
73 $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
74 $(INSTALL_DATA) ./files/tvheadend.upgrade $(1)/lib/upgrade/keep.d/tvheadend
75
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(INSTALL_BIN) $(PKG_BUILD_DIR)/build.linux/tvheadend $(1)/usr/bin/
78 endef
79
80 $(eval $(call BuildPackage,tvheadend))