]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
fix build with system flac
authorElan Ruusamäe <glen@delfi.ee>
Tue, 13 Nov 2012 12:10:04 +0000 (14:10 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 13 Nov 2012 12:10:04 +0000 (14:10 +0200)
chromium-browser.spec
clean-source.sh

index c6236643c1cac01b7dc57c6ad2c39464fa454943..9b81f2644a2c751702b29afc4fe01a4aa989d7ad 100644 (file)
@@ -108,7 +108,7 @@ BuildRequires:      bzip2-devel
 %{?with_cups:BuildRequires:    cups-devel}
 BuildRequires: dbus-glib-devel
 BuildRequires: expat-devel
-%{?with_system_flac:BuildRequires:     flac-devel}
+%{?with_system_flac:BuildRequires:     flac-devel >= 1.2.1-7}
 BuildRequires: flex
 BuildRequires: fontconfig-devel
 BuildRequires: glib2-devel
@@ -159,6 +159,7 @@ BuildRequires:      xz
 %{?with_system_zlib:BuildRequires:     zlib-devel}
 Requires:      browser-plugins >= 2.0
 Requires:      desktop-file-utils
+%{?with_system_flac:Requires:  flac >= 1.2.1-7}
 Requires:      hicolor-icon-theme
 %{?with_libjpegturbo:Requires: libjpeg-turbo >= 1.2.0}
 %{?with_system_vpx:Requires:   libvpx >= 0.9.5-2}
@@ -334,11 +335,11 @@ test -e Makefile || %{__python} build/gyp_chromium --format=make build/all.gyp \
        %{!?with_sse2:-Ddisable_sse2=1} \
        %{?with_selinux:-Dselinux=1} \
        %{gyp_with cups} \
-       %{gyp_with flac} \
        %{gyp_with gconf} \
        %{gyp_with kerberos} -Dlinux_link_kerberos=0 \
        %{gyp_with keyring gnome_keyring} -Dlinux_link_gnome_keyring=0 \
        %{gyp_with pulseaudio} \
+       %{gyp_with system_flac} \
        %{gyp_with system_libwebp} \
        %{gyp_with system_speex} \
        %{gyp_with system_sqlite} \
index 4d946606c7a442150b9a145064c3ce3e7d7cf1e7..d30a5301abc08c5127a5e5cae106a76a44eddc20 100755 (executable)
@@ -1,6 +1,5 @@
 #!/bin/sh
-set -e
-set -x
+set -xe
 
 # import options
 # remove everything unless it's remove has been disabled with "0"
@@ -426,7 +425,7 @@ strip_system_dirs() {
                test -d $dir || continue
 
                # here we ignore errors, as some dirs contain README.chromium after removal
-               find $dir -depth -mindepth 1 \! \( -name \*.gyp -o -name \*.gypi -o -name README.chromium -o -name \*.patch \) -print -delete || :
+               find $dir -depth -mindepth 1 \! \( -name '*.gyp' -o -name '*.gypi' -o -name README.chromium -o -name '*.patch' -o -path $dir/$lib.h \) -print -delete || :
        done
 }
 
@@ -435,7 +434,7 @@ strip_system_dirs() {
 almost_strip_dirs() {
        local dir
        for dir in "$@"; do
-               find $dir -depth -mindepth 1 \! \( -name \*.gyp -o -name \*.gypi -o -name README.chromium \) -print -delete || :
+               find $dir -depth -mindepth 1 \! \( -name '*.gyp' -o -name '*.gypi' -o -name README.chromium \) -print -delete || :
        done
 }
 
@@ -463,6 +462,7 @@ strip_system_dirs \
        _third_party/libvpx \
        native_client/src/third_party_mod/jsoncpp \
        third_party/jsoncpp \
+       third_party/flac \
        v8 \
 | tee -a REMOVED-stripped.txt
 
This page took 0.038919 seconds and 4 git commands to generate.