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.

69 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2020 Rafał Dzięgiel <rafostar.github@gmail.com>
  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:=libdvbcsa
  9. PKG_RELEASE:=$(AUTORELEASE)
  10. PKG_SOURCE_VERSION:=bc6c0b164a87ce05e9925785cc6fb3f54c02b026
  11. PKG_HASH:=2d761c9e094642f2c9aa7e66534c6147a59d0d0bc709ec0f2fdbb34bf020d8ec
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://code.videolan.org/videolan/libdvbcsa/-/archive/$(PKG_SOURCE_VERSION)
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  15. PKG_MAINTAINER:=Rafał Dzięgiel <rafostar.github@gmail.com>
  16. PKG_LICENSE:=GPL-2.0-or-later
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libdvbcsa
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=DVB Common Scrambling Algorithm Library
  26. URL:=https://www.videolan.org/developers/libdvbcsa.html
  27. DEPENDS:=@BUILD_PATENTED
  28. endef
  29. define Package/libdvbcsa/description
  30. Libdvbcsa is a free implementation of the DVB Common Scrambling
  31. Algorithm DVB/CSA - with encryption and decryption capabilities.
  32. endef
  33. define Package/libdvbcsa/config
  34. menu "Configuration"
  35. depends on PACKAGE_libdvbcsa
  36. source "$(SOURCE)/Config.in"
  37. endmenu
  38. endef
  39. CONFIGURE_ARGS += \
  40. --$(if $(CONFIG_LIBDVBCSA_DEBUG),en,dis)able-debug \
  41. --$(if $(CONFIG_LIBDVBCSA_MMX),en,dis)able-mmx \
  42. --$(if $(CONFIG_LIBDVBCSA_SSE2),en,dis)able-sse2 \
  43. --$(if $(CONFIG_LIBDVBCSA_ALTIVEC),en,dis)able-altivec \
  44. --$(if $(CONFIG_LIBDVBCSA_NEON),en,dis)able-neon
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include/dvbcsa
  47. $(CP) $(PKG_INSTALL_DIR)/usr/include/dvbcsa/*.h $(1)/usr/include/dvbcsa/
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  50. endef
  51. define Package/libdvbcsa/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdvbcsa.so.* $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,libdvbcsa))