r46261 - /packages/parmetis/trunk/debian/patches/metis.patch

trophime-guest at users.alioth.debian.org trophime-guest at users.alioth.debian.org
Mon Sep 9 15:37:44 UTC 2013


Author: trophime-guest
Date: Mon Sep  9 15:37:43 2013
New Revision: 46261

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=46261
Log:
add missing patch

Added:
    packages/parmetis/trunk/debian/patches/metis.patch

Added: packages/parmetis/trunk/debian/patches/metis.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/parmetis/trunk/debian/patches/metis.patch?rev=46261&op=file
==============================================================================
--- packages/parmetis/trunk/debian/patches/metis.patch	(added)
+++ packages/parmetis/trunk/debian/patches/metis.patch	Mon Sep  9 15:37:43 2013
@@ -0,0 +1,59 @@
+Index: parmetis-4.0.3/CMakeLists.txt
+===================================================================
+--- parmetis-4.0.3.orig/CMakeLists.txt	2013-09-09 16:56:49.000000000 +0200
++++ parmetis-4.0.3/CMakeLists.txt	2013-09-09 16:56:49.000000000 +0200
+@@ -1,6 +1,10 @@
+ cmake_minimum_required(VERSION 2.8)
+ project(ParMETIS)
+ 
++set(PARMETIS_MAJOR_VERSION 4)
++set(PARMETIS_MINOR_VERSION 0)
++set(PARMETIS_PATCH_VERSION 3)
++
+ set(GKLIB_PATH METIS/GKlib CACHE PATH "path to GKlib")
+ set(METIS_PATH METIS CACHE PATH "path to METIS")
+ 
+@@ -33,7 +37,28 @@
+ include_directories(${METIS_PATH}/include)
+ 
+ # List of directories that cmake will look for CMakeLists.txt
++if (METIS_INSTALL)
+ add_subdirectory(metis)
++else()
++FIND_PATH(METIS_INCLUDE_DIR metis.h
++  /usr/include
++  $ENV{METIS_PATH}/include
++  )
++
++FIND_LIBRARY(METIS_LIBRARY metis
++  /usr/lib
++  $ENV{METIS_PATH}/lib
++  )
++
++IF(METIS_INCLUDE_DIR)
++  MESSAGE( STATUS, "Using already installed metis")
++  IF(METIS_LIBRARY)
++    SET( METIS_LIBRARIES ${PARMETIS_LIBRARY} ${METIS_LIBRARY})
++    SET( METIS_FOUND "YES" )
++  ENDIF(METIS_LIBRARY)
++ENDIF(METIS_INCLUDE_DIR)
++
++endif()
+ add_subdirectory(libparmetis)
+ add_subdirectory(include)
+ add_subdirectory(programs)
+Index: parmetis-4.0.3/libparmetis/CMakeLists.txt
+===================================================================
+--- parmetis-4.0.3.orig/libparmetis/CMakeLists.txt	2013-09-09 16:56:49.000000000 +0200
++++ parmetis-4.0.3/libparmetis/CMakeLists.txt	2013-09-09 16:57:27.000000000 +0200
+@@ -4,6 +4,10 @@
+ file(GLOB parmetis_sources *.c)
+ # Create libparmetis
+ add_library(parmetis SHARED ${parmetis_sources})
++set_target_properties(parmetis PROPERTIES
++  VERSION ${PARMETIS_MAJOR_VERSION}.${PARMETIS_MINOR_VERSION}.${PARMETIS_PATCH_VERSION}
++  SOVERSION ${PARMETIS_MAJOR_VERSION}.${PARMETIS_MINOR_VERSION})
++
+ add_library(parmetis_static STATIC ${parmetis_sources})
+ set_target_properties(parmetis_static PROPERTIES OUTPUT_NAME parmetis)
+ 




More information about the debian-science-commits mailing list