]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
build with system mesa (9.0 seems building ok)
authorElan Ruusamäe <glen@delfi.ee>
Thu, 28 Feb 2013 19:24:32 +0000 (21:24 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 28 Feb 2013 19:24:32 +0000 (21:24 +0200)
chromium-browser.spec
clean-source.sh
get-source.sh
system-mesa.patch [new file with mode: 0644]

index 0abcbc102e08cdfc97bb9aa582ec1f66d3cef647..8e1e7abcf26b779da76c07b1dfaa6a19a679dbc9 100644 (file)
@@ -22,7 +22,7 @@
 %bcond_without system_libusb   # system libusb-1
 %bcond_without system_libwebp  # system libwebp
 %bcond_without system_libxnvctrl       # system libxnvctrl
-%bcond_with            system_mesa             # system Mesa
+%bcond_without system_mesa             # system Mesa
 %bcond_without system_minizip  # system minizip
 %bcond_without system_opus             # system opus codec support, http://www.opus-codec.org/examples/
 %bcond_without system_protobuf # system protobuf
@@ -44,8 +44,6 @@
 # - use_system_hunspell
 # - use_system_stlport
 # - other defaults: src/build/common.gypi
-# - mesa https://code.google.com/p/chromium/issues/detail?id=161389
-#   missing packages for GL/glfbdev.h GL/vms_x_fix.h GL/wglext.h GL/wmesa.h
 # - vpx: invert (remove) media_use_libvpx when libvpx with vp9 support is released
 
 # NOTES:
@@ -73,10 +71,10 @@ Version:    %{branch}.%{patchver}
 %else
 Version:       %{branch}.%{basever}
 %endif
-Release:       0.27
+Release:       0.29
 License:       BSD, LGPL v2+ (ffmpeg)
 Group:         X11/Applications/Networking
-Source0:       http://carme.pld-linux.org/~glen/chromium-browser/src/dev/%{name}-%{branch}.%{basever}.tar.gz
+Source0:       http://carme.pld-linux.org/~glen/chromium-browser/src/beta/%{name}-%{branch}.%{basever}.tar.gz
 # Source0-md5: d005fc9e50c28a2e3c71eee7310417f4
 %if "%{?patchver}" != ""
 Patch0:                http://carme.pld-linux.org/~glen/chromium-browser/src/stable/%{name}-%{version}.patch.xz
@@ -111,9 +109,11 @@ Patch24:   nacl-verbose.patch
 Patch25:       gnome3-volume-control.patch
 Patch26:       master-prefs-path.patch
 Patch27:       tcmalloc-glibc2.16.patch
+Patch28:       system-mesa.patch
 URL:           http://www.chromium.org/Home
 %{?with_gconf:BuildRequires:   GConf2-devel}
 %{?with_system_mesa:BuildRequires:     Mesa-libGL-devel}
+%{?with_system_mesa:BuildRequires:     Mesa-libGLES-devel}
 %{?with_system_mesa:BuildRequires:     Mesa-libGLU-devel}
 %{?with_system_mesa:BuildRequires:     Mesa-libOSMesa-devel}
 BuildRequires: alsa-lib-devel
@@ -265,9 +265,9 @@ v8_ver=$(awk 'NR=1 {print $NF; exit}' src/v8/ChangeLog || :)
 # add chromium and pld to useragent
 %define pld_version %(echo %{pld_release} | sed -e 'y/[at]/[AT]/')
 sed -e 's/@BUILD_DIST@/PLD %{pld_version}/g' \
-    -e 's/@BUILD_DIST_NAME@/PLD/g' \
-    -e 's/@BUILD_DIST_VERSION@/%{pld_version}/g' \
-    < %{PATCH8} | %{__patch} -p1
+       -e 's/@BUILD_DIST_NAME@/PLD/g' \
+       -e 's/@BUILD_DIST_VERSION@/%{pld_version}/g' \
+       < %{PATCH8} | %{__patch} -p1
 
 %{__sed} -e 's,@localedir@,%{_libdir}/%{name},' %{SOURCE5} > find-lang.sh
 ln -s %{SOURCE7} src
@@ -292,6 +292,7 @@ cd ..
 %patch18 -p1
 %patch24 -p1
 %patch26 -p1
+%patch28 -p1
 
 cd src
 
@@ -299,6 +300,7 @@ sh -x clean-source.sh \
        %{!?with_nacl:nacl=0} \
        %{!?with_system_libvpx:libvpx=0} \
        %{!?with_system_libxnvctrl:libXNVCtrl=0} \
+       %{!?with_system_mesa:mesa=0} \
        %{!?with_system_protobuf:protobuf=0} \
        %{!?with_system_re2:re2=0} \
        %{!?with_system_v8:v8=0} \
index 13e37012c7aee334d01cee22639b3478a2f6b226..15e35b704e6d075a257ef40a6a61702b071b7b39 100755 (executable)
@@ -904,6 +904,7 @@ strip_system_dirs \
        third_party/libvpx \
        third_party/libwebp \
        third_party/libxslt \
+       third_party/mesa \
        third_party/opus \
        third_party/protobuf \
        third_party/re2 \
index d5c3cc1c0655c20d01bd6197555fd656047b39ce..c4206dc132f86aaaf0733e82eeb4324dec2732c3 100755 (executable)
@@ -45,7 +45,7 @@ LOGFILE=$TMP_DIR/$PACKAGE_NAME-$VERSION.log
 
 (
 cd "$TMP_DIR"
-if [ "$CHANNEL" = "dev" ]; then
+if [ "$CHANNEL" != "stable" ]; then
        srctarball=$PACKAGE_NAME-$VERSION.tar.xz
        wget -c -nv -O $srctarball "$OFFICIAL_URL/chromium-$VERSION.tar.xz"
 else
diff --git a/system-mesa.patch b/system-mesa.patch
new file mode 100644 (file)
index 0000000..60cfac7
--- /dev/null
@@ -0,0 +1,14 @@
+in PLD Linux, windows includes are not packaged
+http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2013-February/023459.html
+
+--- chromium-browser-26.0.1410.12/src/ui/gl/generate_bindings.py~      2013-02-21 12:18:08.000000000 +0200
++++ chromium-browser-26.0.1410.12/src/ui/gl/generate_bindings.py       2013-02-28 11:54:36.763395432 +0200
+@@ -1172,7 +1172,7 @@
+       'EGL_ANGLE_surface_d3d_texture_2d_share_handle',
+     ],
+   ],
+-  [WGL_FUNCTIONS, 'wgl', ['GL/wglext.h'], []],
++  #[WGL_FUNCTIONS, 'wgl', ['GL/wglext.h'], []],
+   [GLX_FUNCTIONS, 'glx', ['GL/glx.h', 'GL/glxext.h'], []],
+ ]
This page took 0.05604 seconds and 4 git commands to generate.