Browse Source

- neutrino.mk: make usage of gstreamer configurable

master
vanhofen 7 years ago
parent
commit
0362352d7c
  1. 23
      make/neutrino.mk

23
make/neutrino.mk

@ -9,8 +9,13 @@ ifeq ($(USE_LIBSTB-HAL), yes)
NEUTRINO_DEPS += libstb-hal NEUTRINO_DEPS += libstb-hal
endif endif
USE_GSTREAMER = yes
ifeq ($(BOXSERIES), hd51) ifeq ($(BOXSERIES), hd51)
ifeq ($(USE_GSTREAMER), yes)
NEUTRINO_DEPS += $(D)/gst_plugins_dvbmediasink NEUTRINO_DEPS += $(D)/gst_plugins_dvbmediasink
else
NEUTRINO_DEPS += $(D)/alsa-lib
endif
endif endif
# uncomment next line to build neutrino without --enable-ffmpegdec # uncomment next line to build neutrino without --enable-ffmpegdec
@ -23,11 +28,14 @@ endif
ifeq ($(BOXSERIES), hd2) ifeq ($(BOXSERIES), hd2)
N_CFLAGS += -DFB_HW_ACCELERATION N_CFLAGS += -DFB_HW_ACCELERATION
endif endif
ifeq ($(BOXSERIES), hd51) ifeq ($(BOXSERIES), hd51)
ifeq ($(USE_GSTREAMER), yes)
N_CFLAGS += $(shell $(PKG_CONFIG) --cflags --libs gstreamer-1.0) N_CFLAGS += $(shell $(PKG_CONFIG) --cflags --libs gstreamer-1.0)
N_CFLAGS += $(shell $(PKG_CONFIG) --cflags --libs gstreamer-audio-1.0) N_CFLAGS += $(shell $(PKG_CONFIG) --cflags --libs gstreamer-audio-1.0)
N_CFLAGS += $(shell $(PKG_CONFIG) --cflags --libs gstreamer-video-1.0) N_CFLAGS += $(shell $(PKG_CONFIG) --cflags --libs gstreamer-video-1.0)
N_CFLAGS += $(shell $(PKG_CONFIG) --cflags --libs glib-2.0) N_CFLAGS += $(shell $(PKG_CONFIG) --cflags --libs glib-2.0)
endif
endif endif
ifeq ($(DEBUG), yes) ifeq ($(DEBUG), yes)
@ -45,11 +53,11 @@ endif
N_CONFIGURE_DEBUG = N_CONFIGURE_DEBUG =
ifeq ($(HAS_LIBCS), yes) ifeq ($(HAS_LIBCS), yes)
ifeq ($(DEBUG), yes) ifeq ($(DEBUG), yes)
N_CONFIGURE_DEBUG += \ N_CONFIGURE_DEBUG += \
--enable-libcoolstream-static \ --enable-libcoolstream-static \
--with-libcoolstream-static-dir=$(TARGETLIB) --with-libcoolstream-static-dir=$(TARGETLIB)
endif endif
endif endif
N_CONFIGURE_LIBSTB-HAL = N_CONFIGURE_LIBSTB-HAL =
@ -127,6 +135,14 @@ endif
--with-boxtype=$(BOXTYPE) \ --with-boxtype=$(BOXTYPE) \
--with-boxmodel=$(BOXSERIES) --with-boxmodel=$(BOXSERIES)
LH_CONFIGURE_GSTREAMER =
ifeq ($(BOXSERIES), hd51)
ifeq ($(USE_GSTREAMER), yes)
LH_CONFIGURE_GSTREAMER += \
--enable-gstreamer_10
endif
endif
$(LH_OBJDIR)/config.status: $(NEUTRINO_DEPS) $(LH_OBJDIR)/config.status: $(NEUTRINO_DEPS)
rm -rf $(LH_OBJDIR) rm -rf $(LH_OBJDIR)
tar -C $(SOURCE_DIR) -cp $(NI_LIBSTB-HAL-NEXT) --exclude-vcs | tar -C $(BUILD_TMP) -x tar -C $(SOURCE_DIR) -cp $(NI_LIBSTB-HAL-NEXT) --exclude-vcs | tar -C $(BUILD_TMP) -x
@ -143,7 +159,8 @@ $(LH_OBJDIR)/config.status: $(NEUTRINO_DEPS)
--enable-maintainer-mode \ --enable-maintainer-mode \
--enable-silent-rules \ --enable-silent-rules \
--enable-shared=no \ --enable-shared=no \
--enable-gstreamer_10 \ \
$(LH_CONFIGURE_GSTREAMER) \
\ \
--with-target=cdk \ --with-target=cdk \
--with-boxtype=$(BOXMODEL) --with-boxtype=$(BOXMODEL)

Loading…
Cancel
Save