early-access version 2853
This commit is contained in:
34
externals/vcpkg/ports/liblemon/cmake.patch
vendored
Executable file
34
externals/vcpkg/ports/liblemon/cmake.patch
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 03e1cc7..fd9d737 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -280,6 +280,13 @@ ELSEIF(WIN32)
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
+install(
|
||||
+ EXPORT lemon-targets
|
||||
+ FILE lemon-config.cmake
|
||||
+ NAMESPACE lemon::
|
||||
+ DESTINATION share/lemon
|
||||
+)
|
||||
+
|
||||
CONFIGURE_FILE(
|
||||
${PROJECT_SOURCE_DIR}/cmake/version.cmake.in
|
||||
${PROJECT_BINARY_DIR}/cmake/version.cmake
|
||||
diff --git a/lemon/CMakeLists.txt b/lemon/CMakeLists.txt
|
||||
index 4e6567e..76f9cae 100644
|
||||
--- a/lemon/CMakeLists.txt
|
||||
+++ b/lemon/CMakeLists.txt
|
||||
@@ -71,6 +71,11 @@ INSTALL(
|
||||
COMPONENT library
|
||||
)
|
||||
|
||||
+install(TARGETS lemon EXPORT lemon-targets
|
||||
+ LIBRARY DESTINATION lib
|
||||
+ ARCHIVE DESTINATION lib
|
||||
+)
|
||||
+
|
||||
INSTALL(
|
||||
DIRECTORY . bits concepts
|
||||
DESTINATION include/lemon
|
||||
50
externals/vcpkg/ports/liblemon/fixup-targets.patch
vendored
Executable file
50
externals/vcpkg/ports/liblemon/fixup-targets.patch
vendored
Executable file
@@ -0,0 +1,50 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9a7c918..3d6cf35 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -268,7 +268,7 @@ CONFIGURE_FILE(
|
||||
${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
|
||||
@ONLY
|
||||
)
|
||||
-IF(UNIX)
|
||||
+IF(UNIX OR TRUE)
|
||||
INSTALL(
|
||||
FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
|
||||
DESTINATION share/lemon/cmake
|
||||
@@ -282,9 +282,9 @@ ENDIF()
|
||||
|
||||
install(
|
||||
EXPORT lemon-targets
|
||||
- FILE lemon-config.cmake
|
||||
- NAMESPACE lemon::
|
||||
- DESTINATION share/lemon
|
||||
+ FILE lemon-targets.cmake
|
||||
+ NAMESPACE unofficial::lemon::
|
||||
+ DESTINATION share/lemon/cmake
|
||||
)
|
||||
|
||||
CONFIGURE_FILE(
|
||||
diff --git a/cmake/LEMONConfig.cmake.in b/cmake/LEMONConfig.cmake.in
|
||||
index b0d2d8b..ce54986 100644
|
||||
--- a/cmake/LEMONConfig.cmake.in
|
||||
+++ b/cmake/LEMONConfig.cmake.in
|
||||
@@ -1,4 +1,4 @@
|
||||
-SET(LEMON_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include" CACHE PATH "LEMON include directory")
|
||||
+SET(LEMON_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/../../include" CACHE PATH "LEMON include directory")
|
||||
SET(LEMON_INCLUDE_DIRS "${LEMON_INCLUDE_DIR}")
|
||||
|
||||
IF(UNIX)
|
||||
@@ -7,7 +7,12 @@ ELSEIF(WIN32)
|
||||
SET(LEMON_LIB_NAME "lemon.lib")
|
||||
ENDIF(UNIX)
|
||||
|
||||
-SET(LEMON_LIBRARY "@CMAKE_INSTALL_PREFIX@/lib/${LEMON_LIB_NAME}" CACHE FILEPATH "LEMON library")
|
||||
+SET(LEMON_LIBRARY
|
||||
+ optimized "${CMAKE_CURRENT_LIST_DIR}/../../lib/${LEMON_LIB_NAME}"
|
||||
+ debug "${CMAKE_CURRENT_LIST_DIR}/../../debug/lib/${LEMON_LIB_NAME}"
|
||||
+ CACHE FILEPATH "LEMON library")
|
||||
SET(LEMON_LIBRARIES "${LEMON_LIBRARY}")
|
||||
|
||||
MARK_AS_ADVANCED(LEMON_LIBRARY LEMON_INCLUDE_DIR)
|
||||
+
|
||||
+include(${CMAKE_CURRENT_LIST_DIR}/lemon-targets.cmake)
|
||||
45
externals/vcpkg/ports/liblemon/portfile.cmake
vendored
Executable file
45
externals/vcpkg/ports/liblemon/portfile.cmake
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
set(VERSION ed2c21cbd6ef)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://lemon.cs.elte.hu/hg/lemon/archive/${VERSION}.zip"
|
||||
FILENAME "lemon-${VERSION}.zip"
|
||||
SHA512 029640e4f791a18068cb2e2b4e794d09822d9d56fb957eb3e2cceae3a30065c0041a31c465637cfcadf7b2473564070b34adc88513439cdf9046831854e2aa70
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REF ${VERSION}
|
||||
PATCHES
|
||||
cmake.patch
|
||||
fixup-targets.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DLEMON_ENABLE_GLPK=OFF
|
||||
-DLEMON_ENABLE_ILOG=OFF
|
||||
-DLEMON_ENABLE_COIN=OFF
|
||||
-DLEMON_ENABLE_SOPLEX=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/lemon/cmake TARGET_PATH share/lemon)
|
||||
|
||||
file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
||||
file(COPY ${EXE} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/liblemon/)
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/liblemon)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/doc)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
7
externals/vcpkg/ports/liblemon/vcpkg.json
vendored
Executable file
7
externals/vcpkg/ports/liblemon/vcpkg.json
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "liblemon",
|
||||
"version-string": "2019-06-13",
|
||||
"port-version": 3,
|
||||
"description": "Library for Efficient Modeling and Optimization in Networks",
|
||||
"homepage": "https://lemon.cs.elte.hu/trac/lemon"
|
||||
}
|
||||
Reference in New Issue
Block a user