Loading

Paste #pcigltq7s

  1. #
  2. # Copyright (C) 2011 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:=oscam
  11. PKG_REV:=8850
  12. PKG_VERSION:=$(PKG_REV)
  13. PKG_RELEASE:=1
  14.  
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_PROTO:=svn
  18. PKG_SOURCE_URL:=http://www.streamboard.tv/svn/oscam/trunk
  19. PKG_SOURCE_VERSION:=$(PKG_REV)
  20.  
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/cmake.mk
  23.  
  24. define Package/oscam
  25.   SECTION:=custom
  26.   CATEGORY:=Custom packages
  27.   DEPENDS:=+libpthread +libopenssl +librt
  28.   TITLE:=OSCam is an Open Source Conditional Access Module software
  29.   URL:=http://streamboard.gmc.to:8001/
  30. endef
  31.  
  32. define Package/oscam/description
  33.   OSCam is an Open Source Conditional Access Module software nx111 mod
  34. endef
  35.  
  36. CMAKE_OPTIONS += \
  37.         -DCS_CONFDIR=/etc/oscam
  38.  
  39. CONFIGURE_ARGS += --with-ssl=openssl
  40.  
  41. define Build/Prepare
  42.     $(call Build/Prepare/Default)
  43.     sed -i 's:(svnversion.*:echo "$(PKG_REV)":g'  $(PKG_BUILD_DIR)/config.sh
  44. endef
  45.  
  46.  
  47. define Package/oscam/install
  48.  
  49.     $(INSTALL_DIR) $(1)/usr/bin
  50.     $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oscam $(1)/usr/bin/
  51.  
  52.  
  53. endef
  54.  
  55. $(eval $(call BuildPackage,oscam))