2011-06-18 15:45:42 +00:00
|
|
|
# Template file for 'chromium'
|
|
|
|
pkgname=chromium
|
2013-04-18 13:26:29 +00:00
|
|
|
#See http://www.chromium.org/developers/calendar for the latest version
|
2013-05-22 23:01:51 +00:00
|
|
|
version=27.0.1453.93
|
|
|
|
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"
|
2013-04-20 15:07:44 +00:00
|
|
|
distfiles="${_url_base}/${pkgname}-browser-official/${pkgname}-${version}.tar.xz"
|
2013-05-22 23:01:51 +00:00
|
|
|
checksum="6dd8c01a4d72acc512652332d67e92ff9bcb3533b621f2b281c30f00ce26ad40"
|
2012-11-05 21:21:25 +00:00
|
|
|
|
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."
|
|
|
|
|
2013-04-30 09:50:38 +00:00
|
|
|
hostmakedepends="python pkg-config perl gperf bison"
|
|
|
|
makedepends="libpng-devel>=1.6 gtk+-devel nss-devel GConf-devel pciutils-devel
|
2013-04-20 15:07:44 +00:00
|
|
|
libXi-devel libgcrypt-devel libgnome-keyring-devel cups-devel elfutils-devel
|
|
|
|
libXcomposite-devel speech-dispatcher-devel libXrandr-devel mit-krb5-devel
|
2013-04-30 09:50:38 +00:00
|
|
|
libXScrnSaver-devel alsa-lib-devel icu-devel which protobuf-devel
|
2013-04-20 15:07:44 +00:00
|
|
|
libxml2-devel libxslt-devel sqlite-devel yasm opus-devel ffmpeg-devel
|
|
|
|
libvpx-devel libflac-devel speex-devel libusb-devel libmtp-devel
|
|
|
|
libjpeg-turbo-devel libevent-devel v8-devel json-c-devel re2-devel
|
2013-05-22 23:01:51 +00:00
|
|
|
libwebp-devel minizip-devel libsrtp-devel jsoncpp-devel pulseaudio-devel
|
|
|
|
MesaLib-devel"
|
2012-02-22 16:38:34 +00:00
|
|
|
|
|
|
|
do_configure() {
|
2013-04-18 13:26:29 +00:00
|
|
|
unset LD LDFLAGS
|
|
|
|
|
2013-04-20 15:07:44 +00:00
|
|
|
# TODO
|
|
|
|
# See https://crbug.com/28287
|
|
|
|
# use_system_libsrtp=1 (check if https://bugs.gentoo.org/show_bug.cgi?id=459932 reproducible)
|
2013-05-22 23:01:51 +00:00
|
|
|
# use_system_v8=1 (http://crbug.com/29050 fixed for chromium-27)
|
2013-04-20 15:07:44 +00:00
|
|
|
# use_system_libvpx=1 (http://crbug.com/174287 fixed for chromium-27)
|
|
|
|
# use_system_ffmpeg=1 (most likely libvpx-related, check on chromium-27)
|
|
|
|
# disable_pnacl=0 (http://crbug.com/224169)
|
|
|
|
# use_system_sqlite=1 (http://crbug.com/22208)
|
|
|
|
# use_system_ssl=1 (http://crbug.com/58087)
|
|
|
|
# use_system_tcmalloc=1 (https://crbug.com/174634 WontFix?)
|
|
|
|
# use_system_hyphen=1 (http://crbug.com/176285)
|
|
|
|
# use_system_hunspell=1 (likely https://crbug.com/24517)
|
|
|
|
|
2013-05-22 23:36:57 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" != "i686" ]; then
|
|
|
|
# XXX disable system mesa for now.
|
|
|
|
# /usr/include/GL/glext.h:6153:19: error: 'GLsizeiptr' has a previous declaration as 'typedef ptrdiff_t GLsizeiptr'
|
|
|
|
# ./gpu/command_buffer/common/gles2_cmd_format.h:40:26: error: conflicting declaration 'typedef khronos_intptr_t GLintptr'
|
|
|
|
local _system_mesa="-Duse_system_mesa=1"
|
|
|
|
fi
|
2013-04-20 15:07:44 +00:00
|
|
|
|
|
|
|
build/gyp_chromium -f make build/all.gyp --depth=. -Dwerror= \
|
|
|
|
-Dlinux_use_gold_binary=0 -Dlinux_use_gold_flags=0 \
|
|
|
|
-Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
|
|
|
|
-Ddisable_sse2=1 -Drelease_extra_cflags="$CFLAGS" \
|
|
|
|
-Dffmpeg_branding=Chrome -Dproprietary_codecs=1 \
|
|
|
|
-Duse_gconf=0 -Dlinux_use_tcmalloc=0 -Dlinux_link_gsettings=1 \
|
|
|
|
-Ddisable_nacl=1 -Duse_system_bzip2=1 -Duse_system_expat=1 \
|
|
|
|
-Duse_system_flac=1 -Duse_system_harfbuzz=1 -Duse_system_icu=1 \
|
|
|
|
-Duse_system_jsoncpp=1 -Duse_system_libevent=1 -Duse_system_libexif=1 \
|
|
|
|
-Duse_system_libjpeg=1 -Duse_system_libmtp=1 -Duse_system_libpng=1 \
|
|
|
|
-Duse_system_libsrtp=1 -Duse_system_libusb=1 -Duse_system_libwebp=1 \
|
2013-05-22 23:36:57 +00:00
|
|
|
-Duse_system_libxml=1 -Duse_system_minizip=1 \
|
2013-04-20 15:07:44 +00:00
|
|
|
-Duse_system_nspr=1 -Duse_system_opus=1 -Duse_system_protobuf=1 \
|
|
|
|
-Duse_system_re2=1 -Duse_system_speex=1 -Duse_system_stlport=1 \
|
2013-05-22 23:36:57 +00:00
|
|
|
-Duse_system_yasm=1 -Duse_system_zlib=1 -Duse_system_xdg=1 \
|
|
|
|
${_system_mesa}
|
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
|
|
|
|
|
|
|
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
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
chromium_package() {
|
|
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
|
|
pkg_install() {
|
2013-04-30 09:50:38 +00:00
|
|
|
vmove all
|
2013-04-12 06:55:23 +00:00
|
|
|
}
|
|
|
|
}
|