aboutsummaryrefslogtreecommitdiff
path: root/ports/fmi4cpp
diff options
context:
space:
mode:
authorPhoebe <925731795@qq.com>2019-09-06 01:43:09 +0800
committerCurtis J Bezault <curtbezault@gmail.com>2019-09-05 10:43:09 -0700
commit33f15e40e858dcabddd1f1cc1b67368778516fbf (patch)
treea123c6cad05a70a19cb5b4f1370348e42e9cfb5b /ports/fmi4cpp
parente6564a5ad99d80cf77f4c269a73a049f17c845e2 (diff)
downloadvcpkg-33f15e40e858dcabddd1f1cc1b67368778516fbf.tar.gz
vcpkg-33f15e40e858dcabddd1f1cc1b67368778516fbf.zip
modernize many ports (#7986)
* modernize many ports * Update the code to handle copyright * Retriger to build qt5-gamepad
Diffstat (limited to 'ports/fmi4cpp')
-rw-r--r--ports/fmi4cpp/CONTROL3
-rw-r--r--ports/fmi4cpp/portfile.cmake21
2 files changed, 7 insertions, 17 deletions
diff --git a/ports/fmi4cpp/CONTROL b/ports/fmi4cpp/CONTROL
index 4659e9d1a..20f8f641c 100644
--- a/ports/fmi4cpp/CONTROL
+++ b/ports/fmi4cpp/CONTROL
@@ -1,5 +1,6 @@
Source: fmi4cpp
-Version: 0.7.0-1
+Version: 0.7.0-2
+Homepage: https://github.com/NTNU-IHB/FMI4cpp
Description: FMI 2.0 implementation written in modern C++
Build-Depends: boost-property-tree, libzip[openssl]
diff --git a/ports/fmi4cpp/portfile.cmake b/ports/fmi4cpp/portfile.cmake
index ad45b5abe..6babc78ed 100644
--- a/ports/fmi4cpp/portfile.cmake
+++ b/ports/fmi4cpp/portfile.cmake
@@ -1,15 +1,3 @@
-# Common Ambient Variables:
-# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
-# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
-# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
-# PORT = current port name (zlib, etc)
-# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
-# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
-# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
-# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
-# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
-#
-
include(vcpkg_common_functions)
vcpkg_from_github(
@@ -40,7 +28,7 @@ vcpkg_configure_cmake(
-DFMI4CPP_BUILD_TESTS=OFF
-DFMI4CPP_BUILD_EXAMPLES=OFF
-DFMI4CPP_WITH_CURL=${WITH_CURL}
- -DFMI4CPP_WITH_ODEINT=${WITH_ODEINT}
+ -DFMI4CPP_WITH_ODEINT=${WITH_ODEINT}
)
vcpkg_install_cmake()
@@ -49,7 +37,8 @@ vcpkg_fixup_cmake_targets()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
-# Handle copyright
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/fmi4cpp RENAME copyright)
-
vcpkg_copy_pdbs()
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+
+