2011-06-18 15:45:42 +00:00
|
|
|
# Template file for 'chromium'
|
2012-11-05 21:21:25 +00:00
|
|
|
#
|
|
|
|
# Disable NaCL for now, broken with glibc-2.16.
|
|
|
|
#_build_nacl=1
|
2011-06-18 15:45:42 +00:00
|
|
|
pkgname=chromium
|
2012-11-30 05:29:25 +00:00
|
|
|
version=23.0.1271.95
|
2012-11-05 21:21:25 +00:00
|
|
|
patch_args="-Np0"
|
2012-08-18 10:24:04 +00:00
|
|
|
revision=1
|
2011-06-18 15:45:42 +00: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-06-28 06:34:00 +00:00
|
|
|
_url_base="http://commondatastorage.googleapis.com"
|
2012-11-05 21:21:25 +00:00
|
|
|
distfiles="${_url_base}/chromium-browser-official/${pkgname}-${version}.tar.bz2"
|
2012-11-30 05:29:25 +00:00
|
|
|
checksum="30097d21dfff134cbdc0ebe6bb848558d4854f725322aa26b25f83741279f13c"
|
2012-11-05 21:21:25 +00:00
|
|
|
|
|
|
|
if [ -n "${_build_nacl}" ]; then
|
|
|
|
distfiles="${distfiles} ${_url_base}/nacl/nacl_sdk/${version}/naclsdk_linux.tar.bz2"
|
|
|
|
checksum="${checksum} 85d0a9e2903a1d82b40c5e5a54350df6a5171eb1831f42e1f0e22f3a42e3ca13"
|
|
|
|
fi
|
|
|
|
|
2011-06-18 15:45:42 +00:00
|
|
|
long_desc="
|
|
|
|
Chromium is an open-source browser project that aims to build a safer,
|
|
|
|
faster, and more stable way for all Internet users to experience the web.
|
|
|
|
|
|
|
|
Chromium serves as a base for Google Chrome, which is Chromium rebranded
|
|
|
|
(name and logo) with very few additions such as usage tracking and an
|
2012-11-05 21:21:25 +00:00
|
|
|
auto-updater system."
|
|
|
|
|
|
|
|
wrksrc=${pkgname}
|
|
|
|
create_wrksrc=yes
|
|
|
|
create_srcdir=yes
|
|
|
|
build_wrksrc=${pkgname}-${version}
|
2011-06-18 15:45:42 +00:00
|
|
|
|
2012-11-05 21:21:25 +00:00
|
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
|
|
makedepends="pkg-config which unzip yasm bison25 flex gperf perl python
|
|
|
|
libudev-devel>=138 libpng-devel>=1.5.10 libgcrypt-devel elfutils-devel
|
|
|
|
mit-krb5-devel libXrender-devel libXScrnSaver-devel libXcomposite-devel
|
|
|
|
libX11-devel libXi-devel gtk+-devel libevent-devel nss-devel alsa-lib-devel
|
|
|
|
dbus-glib-devel libXdamage-devel libXtst-devel pam-devel libgnome-keyring-devel
|
|
|
|
libvpx-devel speex-devel libwebp-devel>=0.2.0 pulseaudio-devel cups-devel
|
|
|
|
hunspell-devel libflac-devel icu-devel libxslt-devel libusb-devel v8-devel
|
2012-11-26 23:32:50 +00:00
|
|
|
libXrandr-devel"
|
2012-11-05 21:21:25 +00:00
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
|
|
|
makedepends="${makedepends} gcc-multilib"
|
|
|
|
fi
|
2011-06-18 15:45:42 +00:00
|
|
|
|
2012-02-22 16:38:34 +00:00
|
|
|
pre_configure() {
|
2012-05-09 17:22:12 +00:00
|
|
|
# http://code.google.com/p/chromium/issues/detail?id=109527
|
|
|
|
sed -i 's|glib/gutils.h|glib.h|' ui/base/l10n/l10n_util.cc
|
2012-02-22 16:38:34 +00:00
|
|
|
|
2012-11-05 21:21:25 +00:00
|
|
|
if [ -n "${_build_nacl}" ]; then
|
|
|
|
ln -s ${wrksrc}/pepper_${version%%.*}/toolchain/linux_x86_newlib \
|
2012-08-19 10:13:22 +00:00
|
|
|
native_client/toolchain/linux_x86_newlib
|
|
|
|
fi
|
2012-02-22 16:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
2012-11-05 21:21:25 +00:00
|
|
|
if [ -z "${_build_nacl}" ]; then
|
2012-08-19 10:13:22 +00:00
|
|
|
_nacl="-Ddisable_nacl=1"
|
|
|
|
fi
|
|
|
|
|
2012-02-22 16:38:34 +00:00
|
|
|
build/gyp_chromium -f make build/all.gyp --depth=. \
|
2012-11-05 21:21:25 +00:00
|
|
|
-Dwerror= \
|
|
|
|
-Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
|
|
|
|
-Drelease_extra_cflags="$CFLAGS" \
|
|
|
|
-Dlinux_use_gold_binary=0 \
|
|
|
|
-Dlinux_use_gold_flags=0 \
|
|
|
|
-Dffmpeg_branding=Chrome \
|
|
|
|
-Dproprietary_codecs=1 \
|
|
|
|
-Duse_system_libjpeg=1 \
|
|
|
|
-Duse_system_bzip2=1 \
|
|
|
|
-Duse_system_flac=1 \
|
|
|
|
-Duse_system_icu=1 \
|
|
|
|
-Duse_system_libevent=1 \
|
|
|
|
-Duse_system_libjpeg=1 \
|
|
|
|
-Duse_system_libpng=1 \
|
|
|
|
-Duse_system_libusb=1 \
|
|
|
|
-Duse_system_libwebp=1 \
|
|
|
|
-Duse_system_libxml=1 \
|
|
|
|
-Duse_system_speex=1 \
|
|
|
|
-Duse_system_v8=1 \
|
|
|
|
-Duse_system_xdg_utils=1 \
|
|
|
|
-Duse_system_yasm=1 \
|
|
|
|
-Duse_system_vpx=1 \
|
|
|
|
-Duse_system_xdg_utils=1 \
|
|
|
|
-Duse_system_nss=1 \
|
|
|
|
-Duse_system_ssl=0 \
|
|
|
|
-Duse_system_sqlite=0 \
|
|
|
|
-Duse_gconf=0 \
|
2012-11-05 21:27:26 +00:00
|
|
|
-Dlinux_use_tcmalloc=0 \
|
|
|
|
-Dlinux_link_gsettings=1 ${_nacl}
|
2011-08-10 09:21:31 +00:00
|
|
|
}
|
2011-06-18 15:45:42 +00:00
|
|
|
|
2012-02-22 16:38:34 +00:00
|
|
|
do_build() {
|
2011-08-10 09:21:31 +00:00
|
|
|
make BUILDTYPE=Release ${makejobs} chrome chrome_sandbox
|
2011-06-18 15:45:42 +00:00
|
|
|
}
|
|
|
|
|
2012-02-22 16:38:34 +00:00
|
|
|
do_install() {
|
2011-08-10 09:21:31 +00:00
|
|
|
vinstall out/Release/chrome 755 usr/lib/${pkgname} ${pkgname}
|
|
|
|
vinstall out/Release/chrome_sandbox 4755 usr/lib/${pkgname} ${pkgname}-sandbox
|
2012-08-18 10:24:04 +00:00
|
|
|
|
2012-08-19 10:13:22 +00:00
|
|
|
cp out/Release/{*.pak,libffmpegsumo.so} ${DESTDIR}/usr/lib/chromium
|
2012-08-18 10:24:04 +00:00
|
|
|
|
2012-11-05 21:21:25 +00:00
|
|
|
if [ -n "${_build_nacl}" ]; then
|
2012-08-19 10:13:22 +00:00
|
|
|
cp out/Release/{nacl_helper{,_bootstrap}} \
|
|
|
|
out/Release/{libppGoogleNaClPluginChrome.so,nacl_irt_*.nexe} \
|
|
|
|
${DESTDIR}/usr/lib/chromium
|
2012-06-28 06:34:00 +00:00
|
|
|
fi
|
2012-06-29 11:22:14 +00:00
|
|
|
|
2012-08-18 10:24:04 +00:00
|
|
|
cp -a out/Release/locales ${DESTDIR}/usr/lib/chromium
|
|
|
|
|
2011-08-10 09:21:31 +00:00
|
|
|
vinstall out/Release/chrome.1 644 usr/share/man/man1 chromium.1
|
|
|
|
vinstall ${FILESDIR}/chromium.desktop 644 usr/share/applications
|
2012-08-18 10:24:04 +00:00
|
|
|
|
|
|
|
for size in 22 24 48 64 128 256; do
|
2011-09-19 09:25:31 +00:00
|
|
|
install -Dm644 "chrome/app/theme/chromium/product_logo_${size}.png" \
|
2011-06-18 15:45:42 +00:00
|
|
|
${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
|
|
|
|
done
|
2012-08-18 10:24:04 +00: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 09:21:31 +00:00
|
|
|
vinstall ${FILESDIR}/chromium.sh 755 usr/bin chromium
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
2011-06-18 15:45:42 +00:00
|
|
|
}
|