From 1f4d309466c8e5d05d7752e4f24dbf4e9526a8e2 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Thu, 19 Nov 2015 02:00:53 +0000 Subject: academic/avogadro: Patched to link X properly. Underlinking error (cmake-3/gcc-5). Signed-off-by: David Spencer --- academic/avogadro/avogadro-cmake-3.2.patch | 12 ++++++++++++ academic/avogadro/avogadro.SlackBuild | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 academic/avogadro/avogadro-cmake-3.2.patch (limited to 'academic') diff --git a/academic/avogadro/avogadro-cmake-3.2.patch b/academic/avogadro/avogadro-cmake-3.2.patch new file mode 100644 index 0000000000..1c6a38d4ca --- /dev/null +++ b/academic/avogadro/avogadro-cmake-3.2.patch @@ -0,0 +1,12 @@ +Index: avogadro-1.1.1/CMakeLists.txt +=================================================================== +--- avogadro-1.1.1.orig/CMakeLists.txt ++++ avogadro-1.1.1/CMakeLists.txt +@@ -225,6 +225,7 @@ set(I18N_LANGUAGE "" CACHE STRING "Build + + find_package(Qt4 4.6.0 REQUIRED) # find and setup Qt4 for this project + find_package(OpenGL REQUIRED) # find and setup OpenGL ++find_package(X11 REQUIRED) # find and setup X11 + find_package(Linguist) # find and setup Linguist + if(NOT Linguist_FOUND) + message(WARNING " Qt4 Linguist not found, please install it if you want Avogadro translations") diff --git a/academic/avogadro/avogadro.SlackBuild b/academic/avogadro/avogadro.SlackBuild index cfd8d54f83..4fe366eb56 100644 --- a/academic/avogadro/avogadro.SlackBuild +++ b/academic/avogadro/avogadro.SlackBuild @@ -80,6 +80,9 @@ sed -i 's|share/man|man|' doc/CMakeLists.txt # http://pkgs.fedoraproject.org/cgit/avogadro.git/plain/avogadro-1.1.1-eigen3.patch patch -p1 < $CWD/avogadro-1.1.1-eigen3.patch +# Fix underlinking (gcc-5.2) thanks Fedora +patch -p1 < $CWD/avogadro-cmake-3.2.patch + mkdir -p build cd build cmake \ -- cgit v1.2.3