Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #softcams
- softcams: oscam oscam-smod ncam oscammon
- osemu:
- $(REMOVE)/osemu
- cd $(BUILD_TMP) && \
- git clone https://github.com/joeusercz/OSEmu osemu
- pushd $(BUILD_TMP)/osemu && \
- sed -i "s,^CC = .*,CC = $(TARGET)-gcc," Makefile && \
- sed -i "s,^STRIP = .*,STRIP = $(TARGET)-strip," Makefile && \
- $(MAKE) && \
- install -m755 OSEmu $(TARGET_DIR)/var/bin/osemu
- $(REMOVE)/osemu
- touch $(D)/$@
- WITH_EMU ?= no
- USE_API =
- ifeq ($(BOXSERIES), hd1)
- USE_API = USE_COOLAPI=1
- else ifeq ($(BOXSERIES), hd2)
- USE_API = USE_COOLAPI2=1
- endif
- $(D)/oscam: $(D)/openssl | $(TARGET_DIR)
- $(REMOVE)/oscam
- cd $(BUILD_TMP) && \
- git clone http://www.oscam.cc/git/oscam-mirror oscam
- ifeq ($(BOXFAMILY), kronos)
- pushd $(BUILD_TMP)/oscam && \
- sed -i "s|^#define MAX_COOL_DMX.*|#define MAX_COOL_DMX 3|" module-dvbapi-coolapi.h
- endif
- ifeq ($(WITH_EMU), yes)
- pushd $(BUILD_TMP)/oscam && \
- wget -O oscam-emu.patch https://raw.githubusercontent.com/oscam-emu/oscam-emu/master/oscam-emu.patch && \
- patch -p0 < oscam-emu.patch
- endif
- pushd $(BUILD_TMP)/oscam && \
- ./config.sh --enable WITH_SSL && \
- $(MAKE) --no-print-directory \
- CROSS=$(TARGET)- \
- CC_OPTS="$(TARGET_CFLAGS)" \
- LDFLAGS="-Wl,-O1 -L$(TARGET_LIB_DIR)" \
- LIBS+="$(CORTEX-STRINGS)" \
- $(USE_API) \
- OSCAM_BIN=$(TARGET_DIR)/var/bin/oscam \
- CONF_DIR="/var/tuxbox/config"
- $(REMOVE)/oscam
- $(TARGET)-strip $(TARGET_DIR)/var/bin/oscam
- touch $@
- $(D)/oscam-smod: $(D)/openssl | $(TARGET_DIR)
- $(REMOVE)/oscam-smod
- cd $(BUILD_TMP) && \
- git clone https://github.com/oe-alliance/oscam-smod.git oscam-smod
- ifeq ($(BOXFAMILY), kronos)
- pushd $(BUILD_TMP)/oscam-smod && \
- sed -i "s|^#define MAX_COOL_DMX.*|#define MAX_COOL_DMX 3|" module-dvbapi-coolapi.h
- endif
- pushd $(BUILD_TMP)/oscam-smod && \
- ./config.sh --enable WITH_SSL && \
- $(MAKE) --no-print-directory \
- CROSS=$(TARGET)- \
- CC_OPTS="$(TARGET_CFLAGS)" \
- LDFLAGS="-Wl,-O1 -L$(TARGET_LIB_DIR)" \
- LIBS+="$(CORTEX-STRINGS)" \
- $(USE_API) \
- OSCAM_BIN=$(TARGET_DIR)/var/bin/oscam-smod \
- CONF_DIR="/var/tuxbox/config"
- $(REMOVE)/oscam-smod
- $(TARGET)-strip $(TARGET_DIR)/var/bin/oscam-smod
- touch $@
- $(D)/ncam: $(D)/openssl | $(TARGET_DIR)
- $(REMOVE)/ncam
- if [ -d $(SOURCE_DIR)/ncam ]; then \
- cd $(SOURCE_DIR)/ncam && git pull; \
- else \
- git clone https://github.com/javilonas/NCam.git $(SOURCE_DIR)/ncam; \
- fi
- tar -C $(SOURCE_DIR) -cp ncam --exclude='cross' --exclude-vcs | tar -C $(BUILD_TMP) -x
- ifeq ($(BOXFAMILY), kronos)
- pushd $(BUILD_TMP)/ncam && \
- sed -i "s|^#define MAX_COOL_DMX.*|#define MAX_COOL_DMX 3|" module-dvbapi-coolapi.h
- endif
- pushd $(BUILD_TMP)/ncam && \
- ./config.sh --enable WITH_SSL && \
- $(MAKE) --no-print-directory \
- CROSS=$(TARGET)- \
- CC_OPTS="$(TARGET_CFLAGS)" \
- LDFLAGS="-Wl,-O1 -L$(TARGET_LIB_DIR)" \
- LIBS+="$(CORTEX-STRINGS)" \
- $(USE_API) \
- NCAM_BIN=$(TARGET_DIR)/var/bin/ncam \
- CONF_DIR="/var/tuxbox/config"
- $(REMOVE)/ncam
- $(TARGET)-strip $(TARGET_DIR)/var/bin/ncam
- touch $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement