Advertisement
svenhoefer

Untitled

Feb 3rd, 2018
658
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 2.98 KB | None | 0 0
  1. #softcams
  2. softcams: oscam oscam-smod ncam oscammon
  3.  
  4. osemu:
  5.     $(REMOVE)/osemu
  6.     cd $(BUILD_TMP) && \
  7.     git clone https://github.com/joeusercz/OSEmu osemu
  8.     pushd $(BUILD_TMP)/osemu && \
  9.     sed -i "s,^CC = .*,CC = $(TARGET)-gcc," Makefile && \
  10.     sed -i "s,^STRIP = .*,STRIP = $(TARGET)-strip," Makefile && \
  11.     $(MAKE) && \
  12.     install -m755 OSEmu $(TARGET_DIR)/var/bin/osemu
  13.     $(REMOVE)/osemu
  14.     touch $(D)/$@
  15.  
  16. WITH_EMU ?= no
  17.  
  18. USE_API =
  19. ifeq ($(BOXSERIES), hd1)
  20.   USE_API = USE_COOLAPI=1
  21. else ifeq ($(BOXSERIES), hd2)
  22.   USE_API = USE_COOLAPI2=1
  23. endif
  24.  
  25. $(D)/oscam: $(D)/openssl | $(TARGET_DIR)
  26.     $(REMOVE)/oscam
  27.     cd $(BUILD_TMP) && \
  28.     git clone http://www.oscam.cc/git/oscam-mirror oscam
  29. ifeq ($(BOXFAMILY), kronos)
  30.     pushd $(BUILD_TMP)/oscam && \
  31.     sed -i "s|^#define MAX_COOL_DMX.*|#define MAX_COOL_DMX 3|" module-dvbapi-coolapi.h
  32. endif
  33. ifeq ($(WITH_EMU), yes)
  34.     pushd $(BUILD_TMP)/oscam && \
  35.     wget -O oscam-emu.patch https://raw.githubusercontent.com/oscam-emu/oscam-emu/master/oscam-emu.patch && \
  36.     patch -p0 < oscam-emu.patch
  37. endif
  38.     pushd $(BUILD_TMP)/oscam && \
  39.     ./config.sh --enable WITH_SSL && \
  40.     $(MAKE) --no-print-directory \
  41.         CROSS=$(TARGET)- \
  42.         CC_OPTS="$(TARGET_CFLAGS)" \
  43.         LDFLAGS="-Wl,-O1 -L$(TARGET_LIB_DIR)" \
  44.         LIBS+="$(CORTEX-STRINGS)" \
  45.         $(USE_API) \
  46.         OSCAM_BIN=$(TARGET_DIR)/var/bin/oscam \
  47.         CONF_DIR="/var/tuxbox/config"
  48.     $(REMOVE)/oscam
  49.     $(TARGET)-strip $(TARGET_DIR)/var/bin/oscam
  50.     touch $@
  51.  
  52. $(D)/oscam-smod: $(D)/openssl | $(TARGET_DIR)
  53.     $(REMOVE)/oscam-smod
  54.     cd $(BUILD_TMP) && \
  55.     git clone https://github.com/oe-alliance/oscam-smod.git oscam-smod
  56. ifeq ($(BOXFAMILY), kronos)
  57.     pushd $(BUILD_TMP)/oscam-smod && \
  58.     sed -i "s|^#define MAX_COOL_DMX.*|#define MAX_COOL_DMX 3|" module-dvbapi-coolapi.h
  59. endif
  60.     pushd $(BUILD_TMP)/oscam-smod && \
  61.     ./config.sh --enable WITH_SSL && \
  62.     $(MAKE) --no-print-directory \
  63.         CROSS=$(TARGET)- \
  64.         CC_OPTS="$(TARGET_CFLAGS)" \
  65.         LDFLAGS="-Wl,-O1 -L$(TARGET_LIB_DIR)" \
  66.         LIBS+="$(CORTEX-STRINGS)" \
  67.         $(USE_API) \
  68.         OSCAM_BIN=$(TARGET_DIR)/var/bin/oscam-smod \
  69.         CONF_DIR="/var/tuxbox/config"
  70.     $(REMOVE)/oscam-smod
  71.     $(TARGET)-strip $(TARGET_DIR)/var/bin/oscam-smod
  72.     touch $@
  73.  
  74. $(D)/ncam: $(D)/openssl | $(TARGET_DIR)
  75.     $(REMOVE)/ncam
  76.     if [ -d $(SOURCE_DIR)/ncam ]; then \
  77.         cd $(SOURCE_DIR)/ncam && git pull; \
  78.     else \
  79.         git clone https://github.com/javilonas/NCam.git $(SOURCE_DIR)/ncam; \
  80.     fi
  81.     tar -C $(SOURCE_DIR) -cp ncam --exclude='cross' --exclude-vcs | tar -C $(BUILD_TMP) -x
  82. ifeq ($(BOXFAMILY), kronos)
  83.     pushd $(BUILD_TMP)/ncam && \
  84.     sed -i "s|^#define MAX_COOL_DMX.*|#define MAX_COOL_DMX 3|" module-dvbapi-coolapi.h
  85. endif
  86.     pushd $(BUILD_TMP)/ncam && \
  87.     ./config.sh --enable WITH_SSL && \
  88.     $(MAKE) --no-print-directory \
  89.         CROSS=$(TARGET)- \
  90.         CC_OPTS="$(TARGET_CFLAGS)" \
  91.         LDFLAGS="-Wl,-O1 -L$(TARGET_LIB_DIR)" \
  92.         LIBS+="$(CORTEX-STRINGS)" \
  93.         $(USE_API) \
  94.         NCAM_BIN=$(TARGET_DIR)/var/bin/ncam \
  95.         CONF_DIR="/var/tuxbox/config"
  96.     $(REMOVE)/ncam
  97.     $(TARGET)-strip $(TARGET_DIR)/var/bin/ncam
  98.     touch $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement