- fix building on x32
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 16 Jul 2015 20:40:35 +0000 (20:40 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 16 Jul 2015 20:40:35 +0000 (20:40 +0000)
cmake-glib.patch
darktable.spec
x32.patch [new file with mode: 0644]

index a231fa3323e235e4c8f96936c92b20a68f0e7488..018efa26c8772b00a4390ca60cbeaff27ba3cae9 100644 (file)
@@ -5,7 +5,7 @@
    HINTS ${Glib_PKGCONF_INCLUDE_DIRS}
    PATHS /usr
 -  PATH_SUFFIXES lib/glib-2.0/include ../lib/glib-2.0/include
-+  PATH_SUFFIXES lib64/glib-2.0/include lib/glib-2.0/include ../lib/glib-2.0/include
++  PATH_SUFFIXES lib64/glib-2.0/include libx32/glib-2.0/include lib/glib-2.0/include ../lib/glib-2.0/include
  )
  
  # Finally the library itself
index 1a6a7f465b820d73aecb71bf05f4f76fb593f22f..5ecc1eacf28b7e0e5c1193acd43e6d2ca28123e0 100644 (file)
@@ -15,6 +15,7 @@ Group:                X11/Applications/Graphics
 Source0:       http://downloads.sourceforge.net/darktable/%{name}-%{version}.tar.xz
 # Source0-md5: f86554329c2c809ffb009244a6f1d643
 Patch0:                cmake-glib.patch
+Patch1:                x32.patch
 URL:           http://darktable.sourceforge.net/
 BuildRequires: GraphicsMagick-devel
 %{?with_opencl:BuildRequires:  OpenCL-devel}
@@ -82,6 +83,7 @@ darktable to wirtualny podświetlany stół i ciemnia dla fotografów.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 install -d build
diff --git a/x32.patch b/x32.patch
new file mode 100644 (file)
index 0000000..f4bec7c
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,13 @@
+--- darktable-1.4.2/cmake/modules/FindGTK2.cmake~      2014-04-22 16:59:56.000000000 +0000
++++ darktable-1.4.2/cmake/modules/FindGTK2.cmake       2015-07-16 20:31:39.503966178 +0000
+@@ -173,8 +173,10 @@
+         # look in debian/ubuntu multi-arch path (needs cmake >= 2.85~rc2)
+         /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}
+             /usr/local/lib64
++            /usr/local/libx32
+             /usr/local/lib
+             /usr/lib64
++            /usr/libx32
+             /usr/lib
+       /opt/local/include
+       /opt/local/lib
This page took 0.261072 seconds and 4 git commands to generate.