aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2018-11-14 14:08:10 -0800
committerGitHub <noreply@github.com>2018-11-14 14:08:10 -0800
commit0b5854ad07261eb32e295f475fd471753ad9d8ce (patch)
tree39f7b3d584288159de6d63360657ea264e4343ed
parent24ff8b3386aa503cc798092b3a3ff0dfc733cc48 (diff)
parentd45547cd968065f0ea05a3ca7a97ff4fa49c10e3 (diff)
downloadvcpkg-0b5854ad07261eb32e295f475fd471753ad9d8ce.tar.gz
vcpkg-0b5854ad07261eb32e295f475fd471753ad9d8ce.zip
Merge pull request #4714 from eao197/master
Add port for so_5_extra
-rw-r--r--ports/so5extra/CONTROL4
-rw-r--r--ports/so5extra/portfile.cmake28
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/so5extra/CONTROL b/ports/so5extra/CONTROL
new file mode 100644
index 000000000..41bed72c8
--- /dev/null
+++ b/ports/so5extra/CONTROL
@@ -0,0 +1,4 @@
+Source: so5extra
+Version: 1.2.1
+Description: A set of additional tools for SObjectizer framework.
+Build-Depends: sobjectizer
diff --git a/ports/so5extra/portfile.cmake b/ports/so5extra/portfile.cmake
new file mode 100644
index 000000000..3d21def42
--- /dev/null
+++ b/ports/so5extra/portfile.cmake
@@ -0,0 +1,28 @@
+include(vcpkg_common_functions)
+
+set(VERSION 1.2.1)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/so_5_extra-${VERSION}/dev/so_5_extra)
+
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://sourceforge.net/projects/sobjectizer/files/sobjectizer/so_5_extra/so_5_extra-${VERSION}.zip/download"
+ FILENAME "so_5_extra-${VERSION}.zip"
+ SHA512 84294839c800571e98e5599a16609c955296bb10ad90261c5600d3eb13fd1dfc08a7a895e89ad48b3547c9ebe28cd49c944158849a4f1d8e693d8d2259e94100
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DSO5EXTRA_INSTALL=ON
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/so5extra")
+
+# Remove unnecessary stuff.
+# These paths are empty and should be removed too.
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/../../LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/so5extra RENAME copyright)