fix build on arm

This commit is contained in:
Dennis Gilmore 2013-07-30 10:34:37 -05:00
parent a7a415f8a5
commit 961cc466ce
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,11 @@
--- nvidia-texture-tools/src/nvcore/nvcore.h.orig 2013-07-30 09:48:05.111350472 -0500
+++ nvidia-texture-tools/src/nvcore/nvcore.h 2013-07-30 09:50:19.667643065 -0500
@@ -70,6 +70,8 @@
# define NV_CPU_X86 1
#elif defined POSH_CPU_PPC
# define NV_CPU_PPC 1
+#elif defined POSH_CPU_STRONGARM
+# define NV_CPU_STRONGARM 1
#else
# error "Unsupported CPU"
#endif

View File

@ -2,7 +2,7 @@
Name: nvidia-texture-tools
Version: 2.0.8
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Collection of image processing and texture manipulation tools
Group: System Environment/Libraries
License: MIT
@ -27,7 +27,8 @@ Patch2: %{name}-%{version}-png-api.patch
Patch3: %{name}-%{version}-soversion.patch
# install libraries in proper directory
Patch4: %{name}-%{version}-libdir.patch
# add arm support in
Patch5: nvidia-texture-tools-arm.patch
%description
The NVIDIA Texture Tools is a collection of image processing and texture
manipulation tools, designed to be integrated in game tools and asset
@ -55,6 +56,7 @@ Headers and libraries for development with %{name}.
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
mkdir -p build
@ -96,6 +98,9 @@ make -C build filtertest
%{_libdir}/lib*.so
%changelog
* Tue Jul 30 2013 Dennis Gilmore <dennis@ausil.us> - 2.0.8-6
- fix build on arm
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild