]> git.sesse.net Git - vlc/commitdiff
contrib: add --disable-net to disable network related code
authorRafaël Carré <funman@videolan.org>
Mon, 22 Jul 2013 15:48:18 +0000 (17:48 +0200)
committerRafaël Carré <funman@videolan.org>
Mon, 22 Jul 2013 15:48:46 +0000 (17:48 +0200)
contrib/bootstrap
contrib/src/cddb/rules.mak
contrib/src/ffmpeg/rules.mak
contrib/src/gnutls/rules.mak
contrib/src/live555/rules.mak
contrib/src/shout/rules.mak
contrib/src/upnp/rules.mak
contrib/src/vncserver/rules.mak

index 6bf7bd5520e0b40d32b436973322144ffc2032e0..5246200d46811c44c0cba40e96fc68f236533d5c 100755 (executable)
@@ -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"
 
index 6370d8560fb8289275196a744257601b46ec4a55..1adaf89d4ccb78ec4cda419c7026d3fe3cc9d52f 100644 (file)
@@ -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
index 31ef69a7246ae220de163a9cde5a205fe4ab7aaf..e9899b6ddb53b99d903dea9424c8441a8fb64c5f 100644 (file)
@@ -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)
index 55e235f7059351950f31e6196dc2820842c2665b..7c2c9625112a93b2b8a75c51daa62df1b109b3a3 100644 (file)
@@ -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
index 840f80805403a1cbd14fca9f7e9f66c2807fa7de..9e94cca8eb8f97f6e997f56367637e2498047efe 100644 (file)
@@ -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))
index dcffaa7a7534081a2d64de3025078dd3423aedad..5dcbedc41f553b7d09af4903cc65386053d15dcc 100644 (file)
@@ -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
index 7fa2359d276e2bfc5de4fd6ee134001be02ff73b..b28303207563493faa43961099b7629771a338bd 100644 (file)
@@ -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))
index 1a7c47fa5ae669031820cd24b11502532d93c037..e4991b0a8f1c0379bb4944051447838dbcc8c0a4 100644 (file)
@@ -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