Browse Source

- introduce package/pkg-configuration.mk

master
vanhofen 3 years ago
parent
commit
ddd81fa3c6
  1. 1
      make/environment-build.mk
  2. 3
      make/target-ffmpeg.mk
  3. 23
      make/target-neutrino.mk
  4. 35
      package/pkg-configuration.mk
  5. 10
      support/config.example

1
make/environment-build.mk

@ -187,6 +187,7 @@ PKG_CONFIG_SYSROOT_DIR=$(TARGET_DIR)
# -----------------------------------------------------------------------------
include package/pkg-utils.mk
include package/pkg-configuration.mk
# -----------------------------------------------------------------------------

3
make/target-ffmpeg.mk

@ -307,8 +307,7 @@ FFMPEG_CONF_OPTS = \
--enable-swresample \
--enable-hardcoded-tables
BS_PACKAGE_FFMPEG_FFPLAY = no
ifeq ($(BS_PACKAGE_FFMPEG_FFPLAY),yes)
ifeq ($(BS_PACKAGE_FFMPEG_FFPLAY),y)
FFMPEG_DEPENDENCIES += sdl2
FFMPEG_CONF_OPTS += --enable-ffplay
FFMPEG_CONF_ENV += SDL_CONFIG=$(HOST_DIR)/bin/sdl2-config

23
make/target-neutrino.mk

@ -67,14 +67,6 @@ NEUTRINO_LDFLAGS += -lcrypto -ldl -lz
# -----------------------------------------------------------------------------
NEUTRINO_OMDB_API_KEY ?= 20711f9e
NEUTRINO_SHOUTCAST_DEV_KEY ?= fa1669MuiRPorUBw
NEUTRINO_TMDB_DEV_KEY ?= 7270f1b571c4ecbb5b204ddb7f8939b1
NEUTRINO_YOUTUBE_DEV_KEY ?= AIzaSyBLdZe7M3rpNMZqSj-3IEvjbb2hATWJIdM
NEUTRINO_WEATHER_DEV_KEY ?=
# -----------------------------------------------------------------------------
NEUTRINO_CONF_ENV = \
$(TARGET_MAKE_OPTS) \
\
@ -105,11 +97,11 @@ NEUTRINO_CONF_OPTS = \
--enable-mdev \
--enable-pugixml \
\
--with-omdb-api-key="$(NEUTRINO_OMDB_API_KEY)" \
--with-shoutcast-dev-key="$(NEUTRINO_SHOUTCAST_DEV_KEY)" \
--with-tmdb-dev-key="$(NEUTRINO_TMDB_DEV_KEY)" \
--with-youtube-dev-key="$(NEUTRINO_YOUTUBE_DEV_KEY)" \
--with-weather-dev-key="$(NEUTRINO_WEATHER_DEV_KEY)" \
--with-omdb-api-key="$(BS_PACKAGE_NEUTRINO_OMDB_API_KEY)" \
--with-shoutcast-dev-key="$(BS_PACKAGE_NEUTRINO_SHOUTCAST_DEV_KEY)" \
--with-tmdb-dev-key="$(BS_PACKAGE_NEUTRINO_TMDB_DEV_KEY)" \
--with-youtube-dev-key="$(BS_PACKAGE_NEUTRINO_YOUTUBE_DEV_KEY)" \
--with-weather-dev-key="$(BS_PACKAGE_NEUTRINO_WEATHER_DEV_KEY)" \
\
--with-target=cdk \
--with-targetprefix=$(prefix) \
@ -156,10 +148,7 @@ endif
NEUTRINO_DEPENDENCIES += lcd4linux
NEUTRINO_CONF_OPTS += --enable-lcd4linux
# enable ffmpeg audio decoder in neutrino
NEUTRINO_AUDIODEC = ffmpeg
ifeq ($(NEUTRINO_AUDIODEC),ffmpeg)
ifeq ($(BS_PACKAGE_NEUTRINO_AUDIODEC_FFMPEG),y)
NEUTRINO_CONF_OPTS += --enable-ffmpegdec
else
NEUTRINO_DEPENDENCIES += libid3tag

35
package/pkg-configuration.mk

@ -0,0 +1,35 @@
################################################################################
#
# This file contains various configurations used by the packages.
# Configuration keys may be overridden in config.local
#
################################################################################
# ffmpeg: build ffplay
BS_PACKAGE_FFMPEG_FFPLAY ?= n
# ncurses: build wide-character libraries
BS_PACKAGE_NCURSES_WCHAR ?= y
# neutrino: use ffmpeg audio decoder
BS_PACKAGE_NEUTRINO_AUDIODEC_FFMPEG ?= y
# neutrino: omdb api key
BS_PACKAGE_NEUTRINO_OMDB_API_KEY ?= $(NEUTRINO_OMDB_API_KEY)
BS_PACKAGE_NEUTRINO_OMDB_API_KEY ?= 20711f9e
# neutrino: shoutcast api key
BS_PACKAGE_NEUTRINO_SHOUTCAST_DEV_KEY ?= $(NEUTRINO_SHOUTCAST_DEV_KEY)
BS_PACKAGE_NEUTRINO_SHOUTCAST_DEV_KEY ?= fa1669MuiRPorUBw
# neutrino: tmdb api key
BS_PACKAGE_NEUTRINO_TMDB_DEV_KEY ?= $(NEUTRINO_TMDB_DEV_KEY)
BS_PACKAGE_NEUTRINO_TMDB_DEV_KEY ?= 7270f1b571c4ecbb5b204ddb7f8939b1
# neutrino: youtube api key
BS_PACKAGE_NEUTRINO_YOUTUBE_DEV_KEY ?= $(NEUTRINO_YOUTUBE_DEV_KEY)
BS_PACKAGE_NEUTRINO_YOUTUBE_DEV_KEY ?= AIzaSyBLdZe7M3rpNMZqSj-3IEvjbb2hATWJIdM
# neutrino: weather api key
BS_PACKAGE_NEUTRINO_WEATHER_DEV_KEY ?= $(NEUTRINO_WEATHER_DEV_KEY)
BS_PACKAGE_NEUTRINO_WEATHER_DEV_KEY ?=

10
support/config.example

@ -59,11 +59,11 @@ MAINTAINER = $(shell whoami)
# -----------------------------------------------------------------------------
# Neutrino API keys
#NEUTRINO_OMDB_API_KEY =
#NEUTRINO_SHOUTCAST_DEV_KEY =
#NEUTRINO_TMDB_DEV_KEY =
#NEUTRINO_YOUTUBE_DEV_KEY =
#NEUTRINO_WEATHER_DEV_KEY =
#BS_PACKAGE_NEUTRINO_OMDB_API_KEY =
#BS_PACKAGE_NEUTRINO_SHOUTCAST_DEV_KEY =
#BS_PACKAGE_NEUTRINO_TMDB_DEV_KEY =
#BS_PACKAGE_NEUTRINO_YOUTUBE_DEV_KEY =
#BS_PACKAGE_NEUTRINO_WEATHER_DEV_KEY =
# -----------------------------------------------------------------------------

Loading…
Cancel
Save