[Lunar-commits] <moonbase-other> Merge pull request #16 from elangelo/master

Auke Kok sofar+github at foo-projects.org
Thu Jul 19 18:17:26 CEST 2012


commit 6669df1bb0e6e5707f9b3188604933b583de4e8d
Author: Auke Kok <sofar+github at foo-projects.org>
Date: Thu, 19 Jul 2012 09:17:26 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/6669df1bb0e6e5707f9b3188604933b583de4e8d

Merge pull request #16 from elangelo/master

Chromium
---
  web/chromium/BUILD                                           +32/-54   
  web/chromium/DEPENDS                                         +0/-1     
  web/chromium/DETAILS                                         +2/-2     
  3 files changed, 0 insertions (+), 0 deletions (-)

--- a/web/chromium/BUILD
+++ b/web/chromium/BUILD
@@ -1,11 +1,10 @@
 (
-
   sedit "s/'-Werror'/''/" build/common.gypi  &&
 
   cp -f $SCRIPT_DIRECTORY/nacl.gypi chrome/  &&
 
   echo Fixing dumb CPU optimizations please wait in patience...
-  find . -type f -exec sed -i \
+  find . -type f -print0 | xargs -0 sed -i \
   -e 's/-mcpu=/-march=/g' \
   -e 's/-mtune=/-march=/g' \
   -e 's/=pentium4/=native/g' \
@@ -14,9 +13,9 @@
   -e 's/=core2/=native/g' \
   -e 's/=pentiumpro/=native/g' \
   -e 's/=pentium/=native/g' \
-  -e 's/=k6/=native/g' {} \; &&
+  -e 's/=k6/=native/g' &&
 
-  export CHROMIUM_HOME=/usr/lib/$MODULE
+  export CHROMIUM_HOME=/usr/lib/$MODULE &&
 
   mkdir -p "${SOURCE_DIRECTORY}"/.gyp  &&
   cat << EOF > "${SOURCE_DIRECTORY}"/.gyp/include.gypi
@@ -25,29 +24,17 @@
                  'cflags': [ '${CFLAGS// /','}' ],
                 'ldflags': [ '${LDFLAGS// /','}' ],
         },
+        'variables': {
+  q              'remove_webcore_debug_symbols' : 1,
+        },
 }
 EOF
 
   if module_installed libjpeg-turbo; then
-  OPTS+=" -Duse_libjpeg_turbo=1"
+    OPTS+=" -Duse_libjpeg_turbo=1"
   fi &&
 
-#  if module_installed libvpx; then
-#  patch_it $SOURCE2 0
-#  sedit 's at third_party/libvpx/source/libvpx/@@' remoting/base/*coder_vp8.cc
-#  sedit 's at third_party/libvpx/include/@@' third_party/ffmpeg/ffmpeg_stub_headers.fragment
-#  fi &&
-
-#  if module_installed speex; then
-#  sedit 's at third_party/speex/include/@@' chrome/browser/speech/speech_recognizer.cc
-#  cp $SOURCE_CACHE/$SOURCE3 third_party/speex
-#  fi &&
-
-  OPTS+=" -Duse_system_bzip2=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 \
-  -Duse_system_libxml=1 -Duse_system_libxslt=1 -Duse_system_zlib=1 -Dproprietary_codecs=1 -Dwerror= -Ddisable_sse2=1 \
-  -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome -Duse_system_zlib=1 \
-  -Dfastbuild=1 -Dlinux_strip_binary=1 -Dlinux_use_seccomp_sandbox=1 \
-  -Dlinux_use_gold_binary=0 -Dlinux_use_gold_flags=0"
+  OPTS+=" -Duse_system_bzip2=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libxml=1 -Duse_system_libxslt=1 -Duse_system_zlib=1 -Duse_system_zlib=1 -Duse_system_ffmpeg=0 -Dproprietary_codecs=1 -Dwerror= -Ddisable_sse2=1 -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome -Dfastbuild=1 -Dlinux_strip_binary=1 -Dlinux_use_seccomp_sandbox=1 -Dlinux_use_gold_binary=0 -Dlinux_use_gold_flags=0 -Drelease_extra_cflags=$CFLAGS -Dffmpeg_branding=Chrome"
 
   # set the target arch here
   if [ "`arch`" == "x86_64" ]; then
@@ -67,54 +54,45 @@ EOF
   # This is the make step
   make V=1 chrome chrome_sandbox BUILDTYPE=Release &&
 
-  # Make missing libffmpegsumo.so
   make -C third_party/ffmpeg -f ffmpeg.Makefile &&
 
   prepare_install &&
 
-  mkdir -p ${CHROMIUM_HOME} &&
-  cp -a out/Release/chrome ${CHROMIUM_HOME} &&
-  cp -a out/Release/chrome_sandbox ${CHROMIUM_HOME} &&
-  chmod 4755 ${CHROMIUM_HOME}/chrome_sandbox &&
-  cp -a out/Release/xdg-settings ${CHROMIUM_HOME} &&
-  install -m 755 $SCRIPT_DIRECTORY/chromium-launcher.sh ${CHROMIUM_HOME} &&
-  cp -a out/Release/chrome.pak ${CHROMIUM_HOME} &&
-  cp -a out/Release/resources.pak ${CHROMIUM_HOME} &&
-  cp -a out/Release/locales ${CHROMIUM_HOME} &&
-  cp -a out/Release/resources ${CHROMIUM_HOME} &&
-  install -m 644 out/Release/chrome.1 /usr/share/man/man1/ &&
-  install -m 644 out/Release/chrome.1 /usr/share/man/man1/chromium.1 &&
-  install -m 644 third_party/ffmpeg/out/Debug/libffmpegsumo.so ${CHROMIUM_HOME} &&
-  if module_installed ffmpeg; then
-    ln -sf /usr/lib/libavcodec.so.52 ${CHROMIUM_HOME}/libavcodec.so.52
-    ln -sf /usr/lib/libavformat.so.52 ${CHROMIUM_HOME}/libavformat.so.52
-    ln -sf /usr/lib/libavutil.so.50 ${CHROMIUM_HOME}/libavutil.so.50
-  fi &&
+  # installing
+  install -D out/Release/chrome ${CHROMIUM_HOME}/chrome &&
+  install -Dm4755 -o root -g root out/Release/chrome_sandbox ${CHROMIUM_HOME}/chrome_sandbox &&
 
-  # symlink to lunar location for browser plugins, should be /usr/lib/lunar/plugins
-  ln -sf /usr/lib/lunar/plugins ${CHROMIUM_HOME}/plugins &&
+  cp out/Release/{*.pak,libffmpegsumo.so} ${CHROMIUM_HOME} &&
 
-  # icon installation
-  mkdir -p /usr/share/pixmaps &&
-  install -m644 out/Release/product_logo_48.png /usr/share/pixmaps/chromium-browser.png &&
+  cp -a out/Release/locales out/Release/resources ${CHROMIUM_HOME}/ &&
 
-  # theme installation
-  mkdir -p /usr/share/themes/Chromium &&
-  cp -a $SOURCE_DIRECTORY/chrome/app/theme /usr/share/themes/Chromium/ &&
+  find ${CHROMIUM_HOME}/ -name '*.d' -type f -delete &&
 
-  ln -sf ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium &&
+  install -Dm644 out/Release/chrome.1 /usr/share/man/man1/chromium.1 &&
 
   install -m 0644 -D $SCRIPT_DIRECTORY/chromium.desktop /usr/share/applications/chromium.desktop &&
 
   if [ -d /usr/share/icons/hicolor/ ] ; then 
     for size in 16 22 24 32 48 64 128 256; do
       install -m 0644 -D \
-        chrome/app/theme/chromium/product_logo_${size}.png \
-        /usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
+        chrome/app/theme/chromium/product_logo_${size}.png /usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
     done
-  fi  &&
+  fi &&
+
+  install -m 755 $SCRIPT_DIRECTORY/chromium-launcher.sh ${CHROMIUM_HOME} &&
+  ln -sf ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium &&
+
+  install -Dm644 LICENSE /usr/share/licenses/chromium/LICENSE &&
+
+  install -m 755 out/Release/xdg-settings ${CHROMIUM_HOME} &&
+
+  # symlink to lunar location for browser plugins, should be /usr/lib/lunar/plugins
+  ln -sf /usr/lib/lunar/plugins ${CHROMIUM_HOME}/plugins &&
+
+  # theme installation
+  mkdir -p /usr/share/themes/Chromium &&
+  cp -a $SOURCE_DIRECTORY/chrome/app/theme /usr/share/themes/Chromium/ &&
 
-  # write permissions for /dev/shm are needed
-  chmod 777 /dev/shm
+  ln -sf ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium
 
 ) > $C_FIFO 2>&1
--- a/web/chromium/DEPENDS
+++ b/web/chromium/DEPENDS
@@ -16,7 +16,6 @@ depends Switch
 
 optional_depends "yasm"   "-Duse_system_yasm=1"   "-Duse_system_yasm=0"   "To use system yasm to compile assembler parts"
 optional_depends "cups"   "-Duse_cups=1"          "-Duse_cups=0"          "To use cups printing"
-optional_depends "ffmpeg" "-Duse_system_ffmpeg=1" "-Duse_system_ffmpeg=0" "To enable system ffmpeg"
 optional_depends "GConf"  "-Duse_gconf=1"         "-Duse_gconf=0"         "To use cups printing"
 optional_depends "speex"  ""                      ""                      "To use system speex"
 
--- a/web/chromium/DETAILS
+++ b/web/chromium/DETAILS
@@ -1,10 +1,10 @@
           MODULE=chromium
-         VERSION=19.0.1084.52
+         VERSION=20.0.1132.57
           SOURCE=$MODULE-$VERSION.tar.bz2
          SOURCE2=$MODULE-fixes-1.patch.bz2
       SOURCE_URL=http://commondatastorage.googleapis.com/chromium-browser-official
      SOURCE2_URL=$PATCH_URL
-      SOURCE_VFY=sha1:e27acc2cdef9f47b0d8a136b3c5867d86e9317b6
+      SOURCE_VFY=sha1:3209d2ba19b4112fbae66580c319039199261e9d
      SOURCE2_VFY=sha1:99a61908c84fca43766c64835f345eff05fee5b1
         WEB_SITE=http://www.chromium.org/Home
          ENTERED=20100104




More information about the Lunar-commits mailing list