Commit e7403cbe authored by Rafaël Carré's avatar Rafaël Carré

contrib: add --disable-gpl option to bootstrap

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