aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/autodock-vina
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/autodock-vina')
-rw-r--r--vcpkg/ports/autodock-vina/CMakeLists.txt97
-rw-r--r--vcpkg/ports/autodock-vina/portfile.cmake30
-rw-r--r--vcpkg/ports/autodock-vina/vcpkg.json32
3 files changed, 159 insertions, 0 deletions
diff --git a/vcpkg/ports/autodock-vina/CMakeLists.txt b/vcpkg/ports/autodock-vina/CMakeLists.txt
new file mode 100644
index 0000000..1a3d442
--- /dev/null
+++ b/vcpkg/ports/autodock-vina/CMakeLists.txt
@@ -0,0 +1,97 @@
+cmake_minimum_required(VERSION 3.11)
+cmake_policy(VERSION 3.11)
+
+project(autodock-vina)
+
+set(GIT_VERSION v1.2.6)
+set(CMAKE_CXX_STANDARD 14)
+
+find_package(Boost REQUIRED COMPONENTS
+ filesystem
+ log
+ program_options
+ random
+ serialization
+ thread
+ timer
+)
+
+file(GLOB SRC_AUTODOCK_VINA_LIBS
+ "src/lib/*.cpp"
+)
+
+file(GLOB SRC_AUTODOCK_VINA_SPLIT
+ "src/split/*.cpp"
+)
+
+file(GLOB HEADERS
+ "src/lib/*.h"
+)
+
+add_library(vina ${SRC_AUTODOCK_VINA_LIBS})
+add_library(vina_split ${SRC_AUTODOCK_VINA_SPLIT})
+
+target_include_directories(vina
+ PUBLIC
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/lib/>
+ $<INSTALL_INTERFACE:include>
+ PRIVATE
+ $<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>
+)
+
+target_include_directories(vina_split
+ PUBLIC
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/lib/>
+ $<INSTALL_INTERFACE:include>
+ PRIVATE
+ $<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>
+)
+
+target_compile_definitions(vina
+ PUBLIC
+ -DVERSION=\"${GIT_VERSION}\"
+)
+
+target_compile_definitions(vina_split
+ PUBLIC
+ -DVERSION=\"${GIT_VERSION}\"
+)
+
+target_link_libraries(vina
+ PRIVATE
+ Boost::boost
+ Boost::filesystem
+ Boost::log
+ Boost::program_options
+ Boost::random
+ Boost::serialization
+ Boost::thread
+ Boost::timer
+)
+
+target_link_libraries(vina_split
+ PRIVATE
+ Boost::boost
+ Boost::filesystem
+ Boost::log
+ Boost::program_options
+ Boost::random
+ Boost::serialization
+ Boost::thread
+ Boost::timer
+)
+
+install(TARGETS vina EXPORT autodock-vina-config
+ RUNTIME DESTINATION bin
+ ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION lib
+)
+
+install(TARGETS vina_split EXPORT autodock-vina-config
+ RUNTIME DESTINATION bin
+ ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION lib
+)
+
+install(FILES ${HEADERS} DESTINATION include/autodock-vina)
+install(EXPORT autodock-vina-config NAMESPACE autodock-vina::autodock-vina:: DESTINATION share/autodock-vina)
diff --git a/vcpkg/ports/autodock-vina/portfile.cmake b/vcpkg/ports/autodock-vina/portfile.cmake
new file mode 100644
index 0000000..a96e6e9
--- /dev/null
+++ b/vcpkg/ports/autodock-vina/portfile.cmake
@@ -0,0 +1,30 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ccsb-scripps/AutoDock-Vina
+ REF v${VERSION}
+ SHA512 8f974aa5772575af950e90206e98a9ac29f5ddaed2db47b3756df4cb7a79d38eb21384e14dc2359ad3c2d4957df5a5d120fc117223d0ee312012323d834ba654
+ HEAD_REF develop
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup()
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(
+ INSTALL "${SOURCE_PATH}/LICENSE"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
+ RENAME copyright
+)
diff --git a/vcpkg/ports/autodock-vina/vcpkg.json b/vcpkg/ports/autodock-vina/vcpkg.json
new file mode 100644
index 0000000..512c0dd
--- /dev/null
+++ b/vcpkg/ports/autodock-vina/vcpkg.json
@@ -0,0 +1,32 @@
+{
+ "name": "autodock-vina",
+ "version-semver": "1.2.6",
+ "port-version": 1,
+ "description": "AutoDock Vina is one of the fastest and most widely used open-source docking engines.",
+ "homepage": "https://vina.scripps.edu/",
+ "dependencies": [
+ "boost-algorithm",
+ "boost-array",
+ "boost-filesystem",
+ "boost-lexical-cast",
+ "boost-log",
+ "boost-math",
+ "boost-optional",
+ "boost-program-options",
+ "boost-ptr-container",
+ "boost-random",
+ "boost-serialization",
+ "boost-static-assert",
+ "boost-thread",
+ "boost-timer",
+ "boost-utility",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}