]> git.sesse.net Git - vlc/commitdiff
contrib: depollute Makefile variables name space
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 19 Aug 2012 21:56:10 +0000 (00:56 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 19 Aug 2012 21:56:10 +0000 (00:56 +0300)
contrib/src/caca/rules.mak
contrib/src/gcrypt/rules.mak
contrib/src/growl/rules.mak
contrib/src/qt4/rules.mak
contrib/src/speex/rules.mak
contrib/src/vpx/rules.mak

index 74776752e3e48fd272f7bf1aeba1e3612c0fe251..5a9a2cebafaeace6c3bbf223b2b569b9e2fc28f3 100644 (file)
@@ -24,12 +24,18 @@ ifdef HAVE_WIN32
 endif
        $(MOVE)
 
-CONFIGURE_FLAGS := --disable-imlib2 --disable-doc --disable-ruby --disable-csharp --disable-cxx --disable-java
+CACA_CONF := \
+       --disable-imlib2 \
+       --disable-doc \
+       --disable-ruby \
+       --disable-csharp \
+       --disable-cxx \
+       --disable-java
 ifdef HAVE_MACOSX
-CONFIGURE_FLAGS += --disable-x11
+CACA_CONF += --disable-x11
 endif
 
 .caca: caca
-       cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(CONFIGURE_FLAGS)
+       cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(CACA_CONF)
        cd $< && $(MAKE) -C $< install
        touch $@
index 6b37a71bc324a2a996fb6a3ee08bf717257bd491..d7eb67328d6de3f5dbe1e4985c40b9579795b615 100644 (file)
@@ -15,29 +15,28 @@ libgcrypt: libgcrypt-$(GCRYPT_VERSION).tar.bz2 .sum-gcrypt
 
 DEPS_gcrypt = gpg-error
 
-CONFIGURE_OPTS =
+GCRYPT_CONF = \
+       --enable-ciphers=aes,des,rfc2268,arcfour \
+       --enable-digests=sha1,md5,rmd160,sha512 \
+       --enable-pubkey-ciphers=dsa,rsa,ecc
 ifdef HAVE_WIN64
-CONFIGURE_OPTS += --disable-asm
+GCRYPT_CONF += --disable-asm
 endif
 ifdef HAVE_MACOSX
-CONFIGURE_OPTS += --disable-aesni-support
+GCRYPT_CONF += --disable-aesni-support
 else
 ifdef HAVE_BSD
-CONFIGURE_OPTS += --disable-asm --disable-aesni-support
+GCRYPT_CONF += --disable-asm --disable-aesni-support
 endif
 endif
 ifdef HAVE_ANDROID
 ifeq ($(ANDROID_ABI), x86)
-CONFIGURE_OPTS += ac_cv_sys_symbol_underscore=no
+GCRYPT_CONF += ac_cv_sys_symbol_underscore=no
 endif
 endif
 
 .gcrypt: libgcrypt
        #$(RECONF)
-       cd $< && $(HOSTVARS) ./configure $(HOSTCONF) \
-               --enable-ciphers=aes,des,rfc2268,arcfour \
-               --enable-digests=sha1,md5,rmd160,sha512 \
-               --enable-pubkey-ciphers=dsa,rsa,ecc \
-               $(CONFIGURE_OPTS)
+       cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(GCRYPT_CONF)
        cd $< && $(MAKE) install
        touch $@
index 3f22708ba22bc30cc057a9eb4318f9557ad82106..6ed549d7db3983a9b188f32d079d8bfa87ab76c4 100644 (file)
@@ -13,17 +13,17 @@ $(TARBALLS)/growl-$(GROWL_VERSION).tar.bz2:
 .sum-growl: growl-$(GROWL_VERSION).tar.bz2
 
 ifeq ($(shell clang -v 2>/dev/null || echo FAIL),)
-COMPILER=com.apple.compilers.llvm.clang.1_0
+GROWL_COMPILER=com.apple.compilers.llvm.clang.1_0
 else
-COMPILER=com.apple.compilers.gcc.4_2
+GROWL_COMPILER=com.apple.compilers.gcc.4_2
 endif
 
 growl: growl-$(GROWL_VERSION).tar.bz2 .sum-growl
        $(UNPACK)
        mv Growl-1.2.2-src $@
        sed -i.orig -e s/"SDKROOT = macosx10.5"/"SDKROOT = macosx$(OSX_VERSION)"/g \
-               -e s/"GCC_VERSION = 4.0"/"GCC_VERSION = $(COMPILER)"/g \
-               -e s/com.apple.compilers.gcc.4_0/$(COMPILER)/g \
+               -e s/"GCC_VERSION = 4.0"/"GCC_VERSION = $(GROWL_COMPILER)"/g \
+               -e s/com.apple.compilers.gcc.4_0/$(GROWL_COMPILER)/g \
                $@/Growl.xcodeproj/project.pbxproj
        sed -i.orig -e s/"REVISION \$$REV"/"REVISION 0x\$$REV"/g $@/generateHgRevision.sh
        touch $@
index 2c97b77cde0d91df44772f20dff124a5c625ca91..0c28175934c96a7eb3995de9e1cd2589e879792e 100644 (file)
@@ -31,14 +31,14 @@ qt4: qt-$(QT4_VERSION).tar.gz .sum-qt4
 XTOOLS := XCC="$(CC)" XCXX="$(CXX)" XSTRIP="$(STRIP)" XAR="$(AR)"
 
 ifdef HAVE_MACOSX
-PLATFORM := -platform darwin-g++
+QT_PLATFORM := -platform darwin-g++
 endif
 ifdef HAVE_WIN32
-PLATFORM := -xplatform win32-g++
+QT_PLATFORM := -xplatform win32-g++
 endif
 
 .qt4: qt4
-       cd $< && $(XTOOLS) ./configure $(PLATFORM) -static -release -fast -no-exceptions -no-stl -no-sql-sqlite -no-qt3support -no-gif -no-libmng -qt-libjpeg -no-libtiff -no-qdbus -no-openssl -no-webkit -sse -no-script -no-multimedia -no-phonon -opensource -no-scripttools -no-opengl -no-script -no-scripttools -no-declarative -no-declarative-debug -opensource -no-s60 -host-little-endian -confirm-license
+       cd $< && $(XTOOLS) ./configure $(QT_PLATFORM) -static -release -fast -no-exceptions -no-stl -no-sql-sqlite -no-qt3support -no-gif -no-libmng -qt-libjpeg -no-libtiff -no-qdbus -no-openssl -no-webkit -sse -no-script -no-multimedia -no-phonon -opensource -no-scripttools -no-opengl -no-script -no-scripttools -no-declarative -no-declarative-debug -opensource -no-s60 -host-little-endian -confirm-license
        cd $< && $(MAKE) $(XTOOLS) sub-src
        # BUILDING QT BUILD TOOLS
 ifdef HAVE_CROSS_COMPILE
index 1bb9402560c35367c81e2bce939ae1826bcfd9ec..fb96a6b1978e429e6621b29d9624472c128971eb 100644 (file)
@@ -28,17 +28,17 @@ speex: speex-$(SPEEX_VERSION).tar.gz .sum-speex
        $(APPLY) $(SRC)/speex/neon.patch
        $(MOVE)
 
-CONFIG_OPTS := --without-ogg --enable-resample-full-sinc-table
+SPEEX_CONF := --without-ogg --enable-resample-full-sinc-table
 ifndef HAVE_FPU
-CONFIG_OPTS += --enable-fixed-point
+SPEEX_CONF += --enable-fixed-point
 ifeq ($(ARCH),arm)
-CONFIG_OPTS += --enable-arm5e-asm
+SPEEX_CONF += --enable-arm5e-asm
 endif
 endif
 
 .speex: speex
        $(RECONF)
-       cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(CONFIG_OPTS)
+       cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(SPEEX_CONF)
        cd $< && $(MAKE) install
        touch $@
 
index 9950bab5e5c09b6c0652f91f177660c4cee80658..76f1430ae7a79d598902a8dc8a940678236e8440 100644 (file)
@@ -8,12 +8,6 @@ $(TARBALLS)/libvpx-$(VPX_VERSION).tar.bz2:
 
 .sum-vpx: libvpx-$(VPX_VERSION).tar.bz2
 
-ifneq ($(which bash),/bin/bash)
-PATCH_BASH_LOCATION=sed -i.orig s,^\#!/bin/bash,\#!`which bash`,g `grep -Rl ^\#!/bin/bash libvpx-$(VPX_VERSION)`
-else
-PATCH_BASH_LOCATION=true #bash is in /bin
-endif
-
 libvpx: libvpx-$(VPX_VERSION).tar.bz2 .sum-vpx
        $(UNPACK)
        $(APPLY) $(SRC)/vpx/libvpx-no-cross.patch
@@ -22,7 +16,11 @@ ifdef HAVE_MACOSX
        $(APPLY) $(SRC)/vpx/libvpx-mac.patch
        $(APPLY) $(SRC)/vpx/libvpx-mac-mountain-lion.patch
 endif
-       $(PATCH_BASH_LOCATION)
+ifneq ($(which bash),/bin/bash)
+       sed -i.orig \
+               s,^\#!/bin/bash,\#!`which bash`,g \
+               `grep -Rl ^\#!/bin/bash libvpx-$(VPX_VERSION)`
+endif
        $(MOVE)
 
 DEPS_vpx =