Add sw64 architecture

Signed-off-by: wzx <wuzx1226@qq.com>
This commit is contained in:
wzx 2022-10-19 12:39:42 +08:00
parent 5959dbe1b7
commit 93b96e2768
2 changed files with 43 additions and 1 deletions

36
cogl-1.22.8-sw.patch Executable file
View File

@ -0,0 +1,36 @@
diff -Naur cogl-1.22.8.org/build/autotools/as-glibconfig.m4 cogl-1.22.8.sw/build/autotools/as-glibconfig.m4
--- cogl-1.22.8.org/build/autotools/as-glibconfig.m4 2022-02-25 03:19:43.760000000 +0000
+++ cogl-1.22.8.sw/build/autotools/as-glibconfig.m4 2022-02-25 04:38:10.730000000 +0000
@@ -1326,6 +1326,12 @@
AC_MSG_WARN([[$SPARCV9_WARNING]]))
glib_memory_barrier_needed=yes
;;
+ sw_64*)
+ AC_MSG_RESULT([sw_64])
+ AC_DEFINE_UNQUOTED(G_ATOMIC_SW_64, 1,
+ [sw_64 atomic implementation])
+ glib_memory_barrier_needed=yes
+ ;;
alpha*)
AC_MSG_RESULT([alpha])
AC_DEFINE_UNQUOTED(G_ATOMIC_ALPHA, 1,
diff -Naur cogl-1.22.8.org/configure cogl-1.22.8.sw/configure
--- cogl-1.22.8.org/configure 2022-02-25 03:19:43.710000000 +0000
+++ cogl-1.22.8.sw/configure 2022-02-25 04:31:21.340000000 +0000
@@ -23659,6 +23659,16 @@
conftest$ac_exeext conftest.$ac_ext
glib_memory_barrier_needed=yes
;;
+ sw_64*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: sw_64" >&5
+$as_echo "sw_64" >&6; }
+
+cat >>confdefs.h <<_ACEOF
+#define G_ATOMIC_SW_64 1
+_ACEOF
+
+ glib_memory_barrier_needed=yes
+ ;;
alpha*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: alpha" >&5
$as_echo "alpha" >&6; }

View File

@ -1,11 +1,14 @@
Name: cogl Name: cogl
Version: 1.22.8 Version: 1.22.8
Release: 1 Release: 2
Summary: Cogl is a modern 3D graphics API with associated utility APIs Summary: Cogl is a modern 3D graphics API with associated utility APIs
License: LGPLv2+ License: LGPLv2+
URL: https://developer.gnome.org/cogl/ URL: https://developer.gnome.org/cogl/
Source0: https://download.gnome.org/sources/cogl/1.22/%{name}-%{version}.tar.xz Source0: https://download.gnome.org/sources/cogl/1.22/%{name}-%{version}.tar.xz
%ifarch sw_64
Patch1: cogl-1.22.8-sw.patch
%endif
BuildRequires: chrpath cairo-devel mesa-libEGL-devel mesa-libgbm-devel gdk-pixbuf2-devel BuildRequires: chrpath cairo-devel mesa-libEGL-devel mesa-libgbm-devel gdk-pixbuf2-devel
BuildRequires: mesa-libGL-devel glib2-devel gobject-introspection-devel gtk-doc pango-devel BuildRequires: mesa-libGL-devel glib2-devel gobject-introspection-devel gtk-doc pango-devel
@ -78,6 +81,9 @@ chrpath --delete %{buildroot}%{_libdir}/libcogl-pango.so
%exclude %{_datadir}/cogl/examples-data/crate.jpg %exclude %{_datadir}/cogl/examples-data/crate.jpg
%changelog %changelog
* Wed Oct 19 2022 wuzx<wuzx1226@qq.com> - 1.22.8-2
- add sw64 patch
* Mon Feb 1 2021 yanglu <yanglu60@huawei.com> - 1.22.8-1 * Mon Feb 1 2021 yanglu <yanglu60@huawei.com> - 1.22.8-1
- update to 1.22.8 - update to 1.22.8