mirror of
https://github.com/videolan/vlc.git
synced 2025-01-22 15:47:59 +08:00
contrib: add --disable-gpl option to bootstrap
This will skip auto-select of libraries under the GPL
This commit is contained in:
parent
b87e0b07be
commit
e7403cbe50
@ -29,6 +29,7 @@ usage()
|
||||
echo " --disable-disc configure to not build optical discs 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"
|
||||
}
|
||||
|
||||
BUILD=
|
||||
@ -38,6 +39,7 @@ PKGS_ENABLE=
|
||||
PKGS_DISABLE=
|
||||
BUILD_ENCODERS="1"
|
||||
BUILD_DISCS="1"
|
||||
GPL="1"
|
||||
|
||||
if test ! -f "../../contrib/src/main.mak"
|
||||
then
|
||||
@ -70,6 +72,9 @@ do
|
||||
--enable-small)
|
||||
ENABLE_SMALL=1
|
||||
;;
|
||||
--disable-gpl)
|
||||
GPL=
|
||||
;;
|
||||
--disable-*)
|
||||
PKGS_DISABLE="${PKGS_DISABLE} ${1#--disable-}"
|
||||
;;
|
||||
@ -199,6 +204,7 @@ 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 "$ENABLE_SMALL" || add_make_enabled "ENABLE_SMALL"
|
||||
test -z "$GPL" || add_make_enabled "GPL"
|
||||
|
||||
#
|
||||
# Checks
|
||||
|
@ -3,7 +3,9 @@
|
||||
A52DEC_VERSION := 0.7.4
|
||||
A52DEC_URL := $(CONTRIB_VIDEOLAN)/a52dec-$(A52DEC_VERSION).tar.gz
|
||||
|
||||
ifdef GPL
|
||||
PKGS += a52
|
||||
endif
|
||||
|
||||
$(TARBALLS)/a52dec-$(A52DEC_VERSION).tar.gz:
|
||||
$(call download,$(A52DEC_URL))
|
||||
|
@ -4,8 +4,10 @@ DCA_VERSION := 0.0.5
|
||||
DCA_URL := $(VIDEOLAN)/libdca/$(DCA_VERSION)/libdca-$(DCA_VERSION).tar.bz2
|
||||
|
||||
ifdef HAVE_FPU
|
||||
ifdef GPL
|
||||
PKGS += dca
|
||||
endif
|
||||
endif
|
||||
ifeq ($(call need_pkg,"libdca"),)
|
||||
PKGS_FOUND += dca
|
||||
endif
|
||||
|
@ -6,8 +6,10 @@ DVDNAV_GITURL := git://github.com/microe/libdvdnav
|
||||
LIBDVDNAV_VERSION := git
|
||||
|
||||
ifdef BUILD_DISCS
|
||||
ifdef GPL
|
||||
PKGS += dvdnav
|
||||
endif
|
||||
endif
|
||||
ifeq ($(call need_pkg,"dvdnav"),)
|
||||
PKGS_FOUND += dvdnav
|
||||
endif
|
||||
|
@ -4,8 +4,10 @@ LIBDVDREAD_VERSION := 4.2.0
|
||||
LIBDVDREAD_URL := http://dvdnav.mplayerhq.hu/releases/libdvdread-$(LIBDVDREAD_VERSION).tar.bz2
|
||||
|
||||
ifdef BUILD_DISCS
|
||||
ifdef GPL
|
||||
PKGS += dvdread
|
||||
endif
|
||||
endif
|
||||
ifeq ($(call need_pkg,"dvdread"),)
|
||||
PKGS_FOUND += dvdread
|
||||
endif
|
||||
|
@ -5,8 +5,10 @@ FAAD2_URL := $(SF)/faac/faad2-$(FAAD2_VERSION).tar.gz
|
||||
|
||||
ifeq ($(findstring $(ARCH),arm),)
|
||||
# FAAD is a lot slower than lavc on ARM. Skip it.
|
||||
ifdef GPL
|
||||
PKGS += faad2
|
||||
endif
|
||||
endif
|
||||
|
||||
$(TARBALLS)/faad2-$(FAAD2_VERSION).tar.gz:
|
||||
$(call download,$(FAAD2_URL))
|
||||
|
@ -3,7 +3,9 @@
|
||||
LIBMPEG2_VERSION = 0.5.1
|
||||
LIBMPEG2_URL := http://libmpeg2.sourceforge.net/files/libmpeg2-$(LIBMPEG2_VERSION).tar.gz
|
||||
|
||||
ifdef GPL
|
||||
PKGS += libmpeg2
|
||||
endif
|
||||
ifeq ($(call need_pkg,"libmpeg2"),)
|
||||
PKGS_FOUND += libmpeg2
|
||||
endif
|
||||
|
@ -3,7 +3,9 @@
|
||||
MAD_VERSION := 0.15.1b
|
||||
MAD_URL := $(CONTRIB_VIDEOLAN)/libmad-$(MAD_VERSION).tar.gz
|
||||
|
||||
ifdef GPL
|
||||
PKGS += mad
|
||||
endif
|
||||
ifeq ($(call need_pkg,"mad"),)
|
||||
PKGS_FOUND += mad
|
||||
endif
|
||||
|
@ -84,7 +84,9 @@ POSTPROC_CFLAGS += --std=gnu99
|
||||
|
||||
# Build
|
||||
|
||||
ifdef GPL
|
||||
PKGS += postproc
|
||||
endif
|
||||
ifeq ($(call need_pkg,"libpostproc"),)
|
||||
PKGS_FOUND += postproc
|
||||
endif
|
||||
|
@ -2,7 +2,9 @@
|
||||
SAMPLERATE_VERSION := 0.1.8
|
||||
SAMPLERATE_URL := http://www.mega-nerd.com/SRC/libsamplerate-$(SAMPLERATE_VERSION).tar.gz
|
||||
|
||||
ifdef GPL
|
||||
PKGS += samplerate
|
||||
endif
|
||||
ifeq ($(call need_pkg,"samplerate"),)
|
||||
PKGS_FOUND += samplerate
|
||||
endif
|
||||
|
@ -3,7 +3,9 @@
|
||||
SID_VERSION := 2.1.1
|
||||
SID_URL := $(SF)/sidplay2/sidplay2/sidplay-libs-$(SID_VERSION)/sidplay-libs-$(SID_VERSION).tar.gz
|
||||
|
||||
ifdef GPL
|
||||
PKGS += sidplay2
|
||||
endif
|
||||
|
||||
$(TARBALLS)/sidplay-libs-$(SID_VERSION).tar.gz:
|
||||
$(call download,$(SID_URL))
|
||||
|
@ -4,8 +4,10 @@ X264_GITURL := git://git.videolan.org/x264.git
|
||||
X264_SNAPURL := http://git.videolan.org/?p=x264.git;a=snapshot;h=HEAD;sf=tgz
|
||||
|
||||
ifdef BUILD_ENCODERS
|
||||
ifdef GPL
|
||||
PKGS += x264
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(call need_pkg,"x264 >= 0.86"),)
|
||||
PKGS_FOUND += x264
|
||||
|
Loading…
Reference in New Issue
Block a user