From 0cf41ebb7d217ee4bc614cfda54310137151cd25 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 9 Mar 2015 11:13:40 +0000 Subject: Test build of 41.0.2251.0 (never uploaded) --- chromium-dev/build/chromium-dev.SlackBuild | 38 +++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'chromium-dev') diff --git a/chromium-dev/build/chromium-dev.SlackBuild b/chromium-dev/build/chromium-dev.SlackBuild index 5b487de1..c3973b0f 100755 --- a/chromium-dev/build/chromium-dev.SlackBuild +++ b/chromium-dev/build/chromium-dev.SlackBuild @@ -46,6 +46,9 @@ # 41.0.2236.0-1: # 09/dec/2014 by Eric Hameleers # * Update. +# 41.0.2251.0-1: +# 31/dec/2014 by Eric Hameleers +# * Update. # # Run 'sh chromium-dev.SlackBuild' to build a Slackware package. # The package (.txz) and .txt file as well as build logs are created in /tmp . @@ -56,7 +59,7 @@ SRCNAM=chromium SRCEXT=${SRCEXT:-"-dev"} PRGNAM=${SRCNAM}${SRCEXT} # chromium or chromium-dev -VERSION=${VERSION:-41.0.2236.0} +VERSION=${VERSION:-41.0.2251.0} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:" -j4 "} TAG=${TAG:-alien} @@ -69,6 +72,12 @@ USE_NACL=${USE_NACL:-1} # I default this to "off" because it is untested: USE_CLANG=${USE_CLANG:-0} +# If you don't want to enable support for Widevine CDM +# (content decryption module) say "0" here. +USE_CDM=${USE_CDM:-1} +WIDEVINE_VERSION="1.4.6.703" +CHROME_VERSION="39.0.2171.95" + DOCS="AUTHORS DEPS LICENSE README*" # Where do we look for sources? @@ -241,6 +250,26 @@ touch $OUTPUT/patch-${PRGNAM}.log cat $SRCDIR/patches/chromium_secure_referrer.patch | patch -p1 --verbose \ 2>&1 | tee -a $OUTPUT/patch-${PRGNAM}.log +if [ $USE_CDM -eq 1 ]; then + # Add support for widevine cdm to this build: + cat $SRCDIR/patches/chromium_widevine.patch \ + | sed -e "s/@WIDEVINE_VERSION@/$WIDEVINE_VERSION/" \ + | patch -p1 --verbose \ + 2>&1 | tee -a $OUTPUT/patch-${PRGNAM}.log + mkdir -p third_party/widevine/cdm/linux/${TARGETARCH} + cp third_party/widevine/cdm/widevine_cdm_*.h \ + third_party/widevine/cdm/linux/${TARGETARCH}/ + ## Grab the Widevine CDM library from the Chrome .deb package: + ## Find the version of Widevine using this line: + ## strings /opt/google/chrome/chrome | grep -C 1 " (version:" | tail -1 + # + #ar p ${SOURCE[1]} data.tar.lzma |lzma -d |tar xv --strip-components=4 \ + # -C third_party/widevine/cdm/linux/${TARGETARCH}/ \ + # ./opt/google/chrome/libwidevinecdm.so + cp $SRCDIR/libwidevinecdm.so \ + third_party/widevine/cdm/linux/${TARGETARCH}/ +fi + # Save configuration in ~/.config/chromium-dev": sed -e "s|'filename': 'chromium-browser'|'filename': '${PRGNAM}'|" \ -e "s|'confdir': 'chromium'|'confdir': '${PRGNAM}'|" \ @@ -281,6 +310,7 @@ _chromium_conf=( ${CLANG_OPTS} -Ddisable_glibc=1 -Denable_pepper_cdms=1 + -Denable_webrtc=1 -Dffmpeg_branding=Chrome -Dgoogle_api_key=$_google_api_key -Dgoogle_default_client_id=$_google_default_client_id @@ -375,6 +405,12 @@ if [ ${USE_NACL} -eq 1 ]; then # No longer built: #out/Release/libppGoogleNaClPluginChrome.so \ fi +if [ $USE_CDM -eq 1 ]; then + # Widevine CDM adapter: + cp -a \ + out/Release/libwidevinecdmadapter.so \ + $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/ +fi # Manually strip binaries so that 'nacl_irt_*.nexe' is left intact strip --strip-unneeded \ -- cgit v1.2.3-79-gdb01