Commit 7eecb5b7 authored by Rafaël Carré's avatar Rafaël Carré

contrib: add --disable-net to disable network related code

parent 13d6ea6c
......@@ -27,6 +27,7 @@ usage()
echo " --disable-FOO configure to not build package FOO"
echo " --enable-FOO configure to build package FOO"
echo " --disable-disc configure to not build optical discs packages"
echo " --disable-net configure to not build networking packages"
echo " --disable-sout configure to not build stream output packages"
echo " --enable-small optimize libraries for size with slight speed decrease [DANGEROUS]"
echo " --disable-gpl configure to not build viral GPL code"
......@@ -38,6 +39,7 @@ PREFIX=
PKGS_ENABLE=
PKGS_DISABLE=
BUILD_ENCODERS="1"
BUILD_NETWORK="1"
BUILD_DISCS="1"
GPL="1"
......@@ -66,6 +68,9 @@ do
--disable-disc)
BUILD_DISCS=
;;
--disable-net)
BUILD_NETWORK=
;;
--disable-sout)
BUILD_ENCODERS=
;;
......@@ -204,6 +209,7 @@ check_android_sdk()
test -z "$PREFIX" || add_make "PREFIX := $PREFIX"
test -z "$BUILD_DISCS" || add_make_enabled "BUILD_DISCS"
test -z "$BUILD_ENCODERS" || add_make_enabled "BUILD_ENCODERS"
test -z "$BUILD_NETWORK" || add_make_enabled "BUILD_NETWORK"
test -z "$ENABLE_SMALL" || add_make_enabled "ENABLE_SMALL"
test -z "$GPL" || add_make_enabled "GPL"
......
......@@ -2,9 +2,11 @@
CDDB_VERSION := 1.3.2
CDDB_URL := $(SF)/libcddb/libcddb-$(CDDB_VERSION).tar.bz2
ifdef BUILD_NETWORK
ifdef BUILD_DISCS
PKGS += cddb
endif
endif
ifeq ($(call need_pkg,"libcddb"),)
PKGS_FOUND += cddb
endif
......
......@@ -27,6 +27,9 @@ FFMPEGCONF = \
DEPS_ffmpeg = zlib gsm openjpeg
# Optional dependencies
ifndef BUILD_NETWORK
FFMPEGCONF += --disable-network
endif
ifdef BUILD_ENCODERS
FFMPEGCONF += --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx --disable-decoder=libvpx_vp8 --disable-decoder=libvpx_vp9
DEPS_ffmpeg += lame $(DEPS_lame) vpx $(DEPS_vpx)
......
......@@ -3,7 +3,9 @@
GNUTLS_VERSION := 3.1.12
GNUTLS_URL := ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/gnutls-$(GNUTLS_VERSION).tar.xz
ifdef BUILD_NETWORK
PKGS += gnutls
endif
ifeq ($(call need_pkg,"gnutls >= 3.0.20"),)
PKGS_FOUND += gnutls
endif
......
......@@ -4,7 +4,9 @@
LIVE555_FILE := live.2012.12.18.tar.gz
LIVEDOTCOM_URL := http://download.videolan.org/pub/contrib/live555/$(LIVE555_FILE)
ifdef BUILD_NETWORK
PKGS += live555
endif
$(TARBALLS)/$(LIVE555_FILE):
$(call download,$(LIVEDOTCOM_URL))
......
......@@ -4,8 +4,10 @@ SHOUT_VERSION := 2.3.1
SHOUT_URL := http://downloads.us.xiph.org/releases/libshout/libshout-$(SHOUT_VERSION).tar.gz
ifdef BUILD_ENCODERS
ifdef BUILD_NETWORK
PKGS += shout
endif
endif
ifeq ($(call need_pkg,"shout >= 2.1"),)
PKGS_FOUND += shout
endif
......
......@@ -2,7 +2,9 @@
UPNP_VERSION := 1.6.18
UPNP_URL := $(SF)/pupnp/libupnp-$(UPNP_VERSION).tar.bz2
ifdef BUILD_NETWORK
PKGS += upnp
endif
$(TARBALLS)/libupnp-$(UPNP_VERSION).tar.bz2:
$(call download,$(UPNP_URL))
......
......@@ -3,7 +3,9 @@
VNCSERVER_VERSION := 0.9.9
VNCSERVER_URL := $(SF)/libvncserver/libvncserver/$(VNCSERVER_VERSION)/LibVNCServer-$(VNCSERVER_VERSION).tar.gz
ifdef BUILD_NETWORK
PKGS += vncserver
endif
ifeq ($(call need_pkg,"libvncclient"),)
PKGS_FOUND += vncserver
endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment