You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=tvheadend
  9. PKG_VERSION:=4.0.10
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/tvheadend/tvheadend/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=f610e7d9f3bf6cff05cd73830a66ee0c74bc5291c4c9d08369364c4c681ebf23
  14. PKG_LICENSE:=GPL-3.0
  15. PKG_LICENSE_FILES:=LICENSE.md
  16. PKG_FIXUP:=autoreconf
  17. PKG_USE_MIPS16:=0
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. define Package/tvheadend
  21. SECTION:=multimedia
  22. CATEGORY:=Multimedia
  23. TITLE:=Tvheadend is a TV streaming server for Linux
  24. DEPENDS:=+libopenssl +librt +zlib +TVHEADEND_AVAHI_SUPPORT:libavahi-client $(ICONV_DEPENDS)
  25. URL:=https://tvheadend.org
  26. MAINTAINER:=Jan Čermák <jan.cermak@nic.cz>
  27. endef
  28. define Package/tvheadend/description
  29. Tvheadend is a TV streaming server and recorder for Linux, FreeBSD and Android
  30. supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, SAT>IP and HDHomeRun as input sources.
  31. Tvheadend offers the HTTP (VLC, MPlayer), HTSP (Kodi, Movian) and SAT>IP streaming.
  32. endef
  33. define Package/tvheadend/config
  34. menu "Configuration"
  35. depends on PACKAGE_tvheadend
  36. source "$(SOURCE)/Config.in"
  37. endmenu
  38. endef
  39. ifeq ($(CONFIG_TVHEADEND_CWC_SUPPORT),)
  40. CONFIGURE_ARGS += --disable-cwc
  41. endif
  42. ifeq ($(CONFIG_TVHEADEND_LINUXDVB_SUPPORT),)
  43. CONFIGURE_ARGS += --disable-linuxdvb
  44. endif
  45. ifeq ($(CONFIG_TVHEADEND_DVBSCAN_SUPPORT),)
  46. CONFIGURE_ARGS += --disable-dvbscan
  47. endif
  48. ifeq ($(CONFIG_TVHEADEND_AVAHI_SUPPORT),)
  49. CONFIGURE_ARGS += --disable-avahi
  50. else
  51. CONFIGURE_ARGS += --enable-avahi
  52. endif
  53. CONFIGURE_ARGS += \
  54. --arch=$(ARCH) \
  55. --disable-dbus_1 \
  56. --disable-libav \
  57. --enable-bundle
  58. TARGET_CFLAGS += -Wno-error=pointer-compare
  59. define Build/Prepare
  60. $(call Build/Prepare/Default)
  61. echo 'Tvheadend $(shell echo $(PKG_SOURCE_VERSION) | sed "s/^v//")~openwrt$(PKG_RELEASE)' \
  62. > $(PKG_BUILD_DIR)/debian/changelog
  63. endef
  64. define Package/conffiles
  65. /etc/config/tvheadend
  66. endef
  67. define Package/tvheadend/install
  68. $(INSTALL_DIR) $(1)/etc/init.d
  69. $(INSTALL_BIN) ./files/tvheadend.init $(1)/etc/init.d/tvheadend
  70. $(INSTALL_DIR) $(1)/etc/config
  71. $(INSTALL_CONF) ./files/tvheadend.config $(1)/etc/config/tvheadend
  72. $(INSTALL_DIR) $(1)/usr/bin
  73. $(INSTALL_BIN) $(PKG_BUILD_DIR)/build.linux/tvheadend $(1)/usr/bin/
  74. endef
  75. $(eval $(call BuildPackage,tvheadend))