math/colpack: New port: Graph Coloring Algorithm Package

This commit is contained in:
Yuri Victorovich 2021-07-19 01:57:47 -07:00
parent 08a767d39a
commit cfb6e19672
6 changed files with 107 additions and 0 deletions

View File

@ -212,6 +212,7 @@
SUBDIR += coinmp
SUBDIR += coinmumps
SUBDIR += coinutils
SUBDIR += colpack
SUBDIR += combblas
SUBDIR += conauto
SUBDIR += concorde

22
math/colpack/Makefile Normal file
View File

@ -0,0 +1,22 @@
PORTNAME= colpack
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.10-249
DISTVERSIONSUFFIX= -g9a7293a
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Graph Coloring Algorithm Package
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++11-lang
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= CSCsw
GH_PROJECT= ColPack
CMAKE_SOURCE_PATH= ${WRKSRC}/build/cmake
.include <bsd.port.mk>

3
math/colpack/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1626684341
SHA256 (CSCsw-ColPack-v1.0.10-249-g9a7293a_GH0.tar.gz) = d801aa4016ed414b00108e72f6bca69af9b3a314e49f145466aba128a57a1029
SIZE (CSCsw-ColPack-v1.0.10-249-g9a7293a_GH0.tar.gz) = 691420

View File

@ -0,0 +1,32 @@
--- build/cmake/CMakeLists.txt.orig 2019-06-21 15:48:50 UTC
+++ build/cmake/CMakeLists.txt
@@ -142,9 +142,9 @@ endif()
# "EXPORT" helps with creating a ColPackConfig.cmake file to place in the
# installation, to help downstream projects use ColPack.
install(TARGETS ColPack_static EXPORT ColPackTargets
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/archive
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/library
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}/runtime)
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
# Shared library.
@@ -170,12 +170,12 @@ if(ENABLE_OPENMP)
target_link_libraries(ColPack_shared PRIVATE ${OpenMP_CXX_FLAGS})
endif()
-install(FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ColPack_headers)
+install(FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ColPack)
install(TARGETS ColPack_shared EXPORT ColPackTargets
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/shared_archive
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/shared_library
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}/shared_runtime)
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

6
math/colpack/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
ColPack is a package comprising of implementations of algorithms for the
specialized vertex coloring problems discussed in the previous section as well
as algorithms for a variety of related supporting tasks in derivative
computation.
WWW: https://github.com/CSCsw/ColPack

43
math/colpack/pkg-plist Normal file
View File

@ -0,0 +1,43 @@
include/ColPack/BipartiteGraphBicoloring.h
include/ColPack/BipartiteGraphBicoloringInterface.h
include/ColPack/BipartiteGraphCore.h
include/ColPack/BipartiteGraphInputOutput.h
include/ColPack/BipartiteGraphOrdering.h
include/ColPack/BipartiteGraphPartialColoring.h
include/ColPack/BipartiteGraphPartialColoringInterface.h
include/ColPack/BipartiteGraphPartialOrdering.h
include/ColPack/BipartiteGraphVertexCover.h
include/ColPack/ColPackHeaders.h
include/ColPack/CoutLock.h
include/ColPack/Definitions.h
include/ColPack/DisjointSets.h
include/ColPack/File.h
include/ColPack/GraphColoring.h
include/ColPack/GraphColoringInterface.h
include/ColPack/GraphCore.h
include/ColPack/GraphInputOutput.h
include/ColPack/GraphOrdering.h
include/ColPack/HessianRecovery.h
include/ColPack/JacobianRecovery1D.h
include/ColPack/JacobianRecovery2D.h
include/ColPack/MatrixDeallocation.h
include/ColPack/Pause.h
include/ColPack/RecoveryCore.h
include/ColPack/SMPGC.h
include/ColPack/SMPGCColoring.h
include/ColPack/SMPGCGraph.h
include/ColPack/SMPGCOrdering.h
include/ColPack/StringTokenizer.h
include/ColPack/Timer.h
include/ColPack/command_line_parameter_processor.h
include/ColPack/current_time.h
include/ColPack/extra.h
include/ColPack/mmio.h
include/ColPack/stat.h
lib/ColPack_libs/ColPackConfig.cmake
lib/ColPack_libs/ColPackConfigVersion.cmake
lib/ColPack_libs/ColPackTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/ColPack_libs/ColPackTargets.cmake
lib/libColPack.a
lib/libColPack.so
lib/libColPack.so.0