2011-06-18 17:45:42 +02:00
|
|
|
# Template file for 'chromium'
|
|
|
|
pkgname=chromium
|
2013-04-18 15:26:29 +02:00
|
|
|
#See http://www.chromium.org/developers/calendar for the latest version
|
2014-04-10 15:17:25 +02:00
|
|
|
version=34.0.1847.116
|
2014-02-27 17:12:15 +01:00
|
|
|
revision=1
|
2011-06-18 17:45:42 +02:00
|
|
|
short_desc="Google's attempt at creating a safer, faster, and more stable browser"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.chromium.org/"
|
|
|
|
license="BSD"
|
2012-11-05 22:21:25 +01:00
|
|
|
|
2013-10-03 14:11:40 +02:00
|
|
|
_url_base="https://commondatastorage.googleapis.com"
|
2014-04-10 15:17:25 +02:00
|
|
|
_toolchains_rev=12773
|
2013-10-03 14:11:40 +02:00
|
|
|
|
2014-03-13 09:57:36 +01:00
|
|
|
lib32disabled=yes
|
2013-10-03 14:11:40 +02:00
|
|
|
|
|
|
|
distfiles="
|
|
|
|
${_url_base}/${pkgname}-browser-official/${pkgname}-${version}.tar.xz
|
|
|
|
${_url_base}/nativeclient-archive2/toolchain/${_toolchains_rev}/naclsdk_linux_x86.tgz
|
|
|
|
${_url_base}/nativeclient-archive2/toolchain/${_toolchains_rev}/naclsdk_pnacl_linux_x86.tgz
|
|
|
|
${_url_base}/nativeclient-archive2/toolchain/${_toolchains_rev}/naclsdk_pnacl_translator.tgz
|
|
|
|
${_url_base}/nativeclient-archive2/toolchain/${_toolchains_rev}/naclsdk_pnacl_translator.tgz.sha1hash"
|
2014-02-27 17:12:15 +01:00
|
|
|
|
2013-10-03 14:11:40 +02:00
|
|
|
checksum="
|
2014-04-10 15:17:25 +02:00
|
|
|
dd6579c170eecd8d1f366461575e9754e44200e0b9fefde20941e15cb6729711
|
|
|
|
4c2adc718e53f36e38202aabf6518ceaa0244e281567433489b0a4e6dab1dc2f
|
|
|
|
13cf0e23176787fcaa039c0bd230745e5cf5699877a51e77694c97392dc0973d
|
|
|
|
3a087d34cf2890d85d1e2fad0d63e9db82d47c400994dfe6f0e2ee8bcedb4195
|
|
|
|
581fb67410dad60fbe484294e4da2fed0de2487caabe33d595fa7abdf72e0f59"
|
2014-02-27 17:12:15 +01:00
|
|
|
|
2013-10-03 14:11:40 +02:00
|
|
|
skip_extraction="
|
|
|
|
naclsdk_linux_x86.tgz
|
|
|
|
naclsdk_pnacl_linux_x86.tgz
|
|
|
|
naclsdk_pnacl_translator.tgz
|
|
|
|
naclsdk_pnacl_translator.tgz.sha1hash"
|
|
|
|
|
2013-06-24 16:33:07 +02:00
|
|
|
hostmakedepends="which yasm python pkg-config perl gperf bison"
|
2014-02-03 12:43:01 +01:00
|
|
|
makedepends="libpng-devel>=1.6 gtk+-devel nss-devel pciutils-devel
|
2013-04-20 17:07:44 +02:00
|
|
|
libXi-devel libgcrypt-devel libgnome-keyring-devel cups-devel elfutils-devel
|
|
|
|
libXcomposite-devel speech-dispatcher-devel libXrandr-devel mit-krb5-devel
|
2013-06-24 16:33:07 +02:00
|
|
|
libXScrnSaver-devel alsa-lib-devel icu-devel protobuf-devel snappy-devel
|
2013-08-21 12:48:49 +02:00
|
|
|
libxml2-devel libxslt-devel opus-devel pulseaudio-devel nss-devel
|
2014-02-03 12:38:25 +01:00
|
|
|
libXcursor-devel libflac-devel speex-devel libmtp-devel libwebp-devel>=0.4.0
|
2013-06-24 16:33:07 +02:00
|
|
|
libjpeg-turbo-devel libevent-devel json-c-devel re2-devel harfbuzz-devel
|
2014-04-10 15:17:25 +02:00
|
|
|
minizip-devel jsoncpp-devel zlib-devel libcap-devel v8-devel>=3.24 hwids"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
|
|
nostrip_files="nacl_irt_x86_64.nexe nacl_irt_x86_32.nexe"
|
2012-02-22 17:38:34 +01:00
|
|
|
|
2014-01-30 20:47:48 +01:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2013-10-03 14:11:40 +02:00
|
|
|
makedepends+=" gcc-c++-multilib"
|
|
|
|
fi
|
|
|
|
|
2012-02-22 17:38:34 +01:00
|
|
|
do_configure() {
|
2013-08-21 12:48:49 +02:00
|
|
|
local conf=""
|
|
|
|
|
2013-10-03 14:11:40 +02:00
|
|
|
# XXX xtraeme: fix gcc{,-c++}-multilib instead.
|
|
|
|
ldconfig &>/dev/null
|
|
|
|
|
|
|
|
mkdir native_client/toolchain/{.tars,pnacl_translator}
|
|
|
|
ln -sf ${XBPS_SRCDISTDIR}/${pkgver%_*}/naclsdk_linux_x86.tgz \
|
|
|
|
native_client/toolchain/.tars/naclsdk_linux_x86.tgz
|
|
|
|
ln -sf ${XBPS_SRCDISTDIR}/${pkgver%_*}/naclsdk_pnacl_linux_x86.tgz \
|
|
|
|
native_client/toolchain/.tars/naclsdk_pnacl_linux_x86.tgz
|
|
|
|
ln -sf ${XBPS_SRCDISTDIR}/${pkgver%_*}/naclsdk_pnacl_translator.tgz \
|
|
|
|
native_client/toolchain/.tars/naclsdk_pnacl_translator.tgz
|
|
|
|
ln -sf ${XBPS_SRCDISTDIR}/${pkgver%_*}/naclsdk_pnacl_translator.tgz.sha1hash \
|
|
|
|
native_client/toolchain/pnacl_translator/SOURCE_SHA1
|
|
|
|
|
2013-08-21 12:48:49 +02:00
|
|
|
export LD="$CXX"
|
|
|
|
|
2013-08-22 18:28:59 +02:00
|
|
|
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
|
|
|
|
# Note: These are for Void Linux use ONLY.
|
|
|
|
conf+="
|
|
|
|
-Dgoogle_api_key=AIzaSyCIFdBA7eQP43R6kXRwTq7j6Mvj1ITze90
|
|
|
|
-Dgoogle_default_client_id=858256686058.apps.googleusercontent.com
|
|
|
|
-Dgoogle_default_client_secret=sMVx271L_MAz23TW2ek3AASn"
|
|
|
|
|
2013-10-03 14:11:40 +02:00
|
|
|
# Disable glibc Native Client toolchain.
|
2013-08-21 12:48:49 +02:00
|
|
|
conf+=" -Ddisable_glibc=1"
|
2014-01-30 22:28:55 +01:00
|
|
|
conf+=" -Dlinux_use_tcmalloc=0"
|
2013-08-21 12:48:49 +02:00
|
|
|
|
|
|
|
# Use system-provided libraries.
|
|
|
|
# TODO: use_system_hunspell (upstream changes needed).
|
2013-10-03 14:11:40 +02:00
|
|
|
# TODO: use_system_libsrtp.
|
|
|
|
# TODO: use_system_libusb (http://crbug.com/266149).
|
2013-08-21 12:48:49 +02:00
|
|
|
# TODO: use_system_ssl (http://crbug.com/58087).
|
|
|
|
# TODO: use_system_sqlite (http://crbug.com/22208).
|
|
|
|
conf+="
|
2014-01-30 20:47:48 +01:00
|
|
|
-Dpython_ver=2.7
|
2014-04-10 15:17:25 +02:00
|
|
|
-Duse_system_v8=1
|
2013-08-21 12:48:49 +02:00
|
|
|
-Duse_system_bzip2=1
|
|
|
|
-Duse_system_flac=1
|
|
|
|
-Duse_system_harfbuzz=1
|
|
|
|
-Duse_system_icu=1
|
|
|
|
-Duse_system_jsoncpp=1
|
|
|
|
-Duse_system_libevent=1
|
|
|
|
-Duse_system_libjpeg=1
|
|
|
|
-Duse_system_libpng=1
|
|
|
|
-Duse_system_libxml=1
|
|
|
|
-Duse_system_libxslt=1
|
2014-02-03 12:38:25 +01:00
|
|
|
-Duse_system_libwebp=1
|
2013-08-21 12:48:49 +02:00
|
|
|
-Duse_system_minizip=1
|
|
|
|
-Duse_system_nspr=1
|
|
|
|
-Duse_system_opus=1
|
|
|
|
-Duse_system_protobuf=1
|
|
|
|
-Duse_system_re2=1
|
|
|
|
-Duse_system_snappy=1
|
|
|
|
-Duse_system_speex=1
|
|
|
|
-Duse_system_xdg_utils=1
|
|
|
|
-Duse_system_zlib=1
|
|
|
|
-Duse_system_yasm=1
|
|
|
|
-Duse_cups=1
|
|
|
|
-Dlinux_link_cups=1
|
|
|
|
-Duse_pulseaudio=1
|
|
|
|
-Dlinux_link_pulseaudio=1
|
|
|
|
-Duse_gconf=0"
|
|
|
|
|
|
|
|
# TODO: re-enable on vp9 libvpx release (http://crbug.com/174287).
|
|
|
|
# conf+=" -Dmedia_use_libvpx=0"
|
|
|
|
|
|
|
|
# Use explicit library dependencies instead of dlopen.
|
|
|
|
conf+="
|
|
|
|
-Dlinux_link_gsettings=1
|
|
|
|
-Dlinux_link_libpci=1
|
|
|
|
-Dlinux_link_libspeechd=1
|
|
|
|
-Dlibspeechd_h_prefix=speech-dispatcher/"
|
|
|
|
|
|
|
|
# TODO: use the file at run time instead of effectively compiling it in.
|
|
|
|
conf+=" -Dusb_ids_path=/usr/share/hwdata/usb.ids"
|
|
|
|
|
|
|
|
# Never use bundled gold binary. Disable gold linker flags for now.
|
|
|
|
conf+=" -Dlinux_use_gold_binary=0 -Dlinux_use_gold_flags=0"
|
|
|
|
|
|
|
|
# Always support proprietary codecs.
|
|
|
|
conf+=" -Dproprietary_codecs=1"
|
|
|
|
|
|
|
|
# Enable H.264 support in bundled ffmpeg.
|
|
|
|
conf+=" -Dffmpeg_branding=Chrome"
|
|
|
|
|
|
|
|
# Make sure that -Werror doesn't get added to CFLAGS by the build system.
|
|
|
|
# Depending on GCC version the warnings are different and we don't want
|
|
|
|
# the build to fail because of that.
|
|
|
|
conf+=" -Dwerror="
|
|
|
|
|
2013-10-03 14:11:40 +02:00
|
|
|
# Save space by removing DLOG and DCHECK messages (about 6% reduction).
|
|
|
|
conf+=" -Dlogging_like_official_build=1"
|
|
|
|
|
2013-08-21 12:48:49 +02:00
|
|
|
build/linux/unbundle/replace_gyp_files.py ${conf}
|
|
|
|
build/gyp_chromium --depth=. -f make ${conf} -Drelease_extra_cflags="$CFLAGS"
|
2011-08-10 11:21:31 +02:00
|
|
|
}
|
2011-06-18 17:45:42 +02:00
|
|
|
|
2012-02-22 17:38:34 +01:00
|
|
|
do_build() {
|
2011-08-10 11:21:31 +02:00
|
|
|
make BUILDTYPE=Release ${makejobs} chrome chrome_sandbox
|
2011-06-18 17:45:42 +02:00
|
|
|
}
|
|
|
|
|
2012-02-22 17:38:34 +01:00
|
|
|
do_install() {
|
2011-08-10 11:21:31 +02:00
|
|
|
vinstall out/Release/chrome 755 usr/lib/${pkgname} ${pkgname}
|
2013-10-03 14:11:40 +02:00
|
|
|
vinstall out/Release/chrome_sandbox 4755 usr/lib/${pkgname} chrome-sandbox
|
2012-08-18 12:24:04 +02:00
|
|
|
|
2013-10-03 14:11:40 +02:00
|
|
|
cp out/Release/{*.pak,libffmpegsumo.so,nacl_helper{,_bootstrap}} \
|
|
|
|
out/Release/{libppGoogleNaClPluginChrome.so,nacl_irt_*.nexe} \
|
|
|
|
${DESTDIR}/usr/lib/chromium
|
2012-08-18 12:24:04 +02:00
|
|
|
|
|
|
|
cp -a out/Release/locales ${DESTDIR}/usr/lib/chromium
|
|
|
|
|
2011-08-10 11:21:31 +02:00
|
|
|
vinstall out/Release/chrome.1 644 usr/share/man/man1 chromium.1
|
|
|
|
vinstall ${FILESDIR}/chromium.desktop 644 usr/share/applications
|
2012-08-18 12:24:04 +02:00
|
|
|
|
|
|
|
for size in 22 24 48 64 128 256; do
|
2011-09-19 11:25:31 +02:00
|
|
|
install -Dm644 "chrome/app/theme/chromium/product_logo_${size}.png" \
|
2011-06-18 17:45:42 +02:00
|
|
|
${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
|
|
|
|
done
|
2012-08-18 12:24:04 +02:00
|
|
|
for size in 16 32; do
|
|
|
|
install -Dm644 "chrome/app/theme/default_100_percent/chromium/product_logo_${size}.png" \
|
|
|
|
${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
|
|
|
|
done
|
|
|
|
|
2011-08-10 11:21:31 +02:00
|
|
|
vinstall ${FILESDIR}/chromium.sh 755 usr/bin chromium
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
2011-06-18 17:45:42 +02:00
|
|
|
}
|