aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hofmann <kmhofmann@gmail.com>2018-05-13 22:34:06 +0200
committerAlexander Karatarakis <alex@karatarakis.com>2018-05-25 17:46:38 -0700
commit2ac7527b40b1dbeb7856b9f763362c1e139e2ca9 (patch)
treed95c9490352eb73f078d34a33bc4bb44ac9fa48b
parentc7903141b3cb31e94de212decd277743df17106c (diff)
downloadvcpkg-2ac7527b40b1dbeb7856b9f763362c1e139e2ca9.tar.gz
vcpkg-2ac7527b40b1dbeb7856b9f763362c1e139e2ca9.zip
Add new port: selene (https://github.com/kmhofmann/selene)
-rw-r--r--ports/selene/CONTROL4
-rw-r--r--ports/selene/portfile.cmake34
2 files changed, 38 insertions, 0 deletions
diff --git a/ports/selene/CONTROL b/ports/selene/CONTROL
new file mode 100644
index 000000000..6b90431a8
--- /dev/null
+++ b/ports/selene/CONTROL
@@ -0,0 +1,4 @@
+Source: selene
+Version: 0.1.0
+Description: A C++14 image representation, processing and I/O library.
+Build-Depends: zlib, libpng, libjpeg-turbo
diff --git a/ports/selene/portfile.cmake b/ports/selene/portfile.cmake
new file mode 100644
index 000000000..dcc263635
--- /dev/null
+++ b/ports/selene/portfile.cmake
@@ -0,0 +1,34 @@
+include(vcpkg_common_functions)
+
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/selene-0.1.0)
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
+ set(SELENE_EXPORT_SYMBOLS TRUE)
+else()
+ set(SELENE_EXPORT_SYMBOLS FALSE)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO kmhofmann/selene
+ REF v0.1.0
+ SHA512 59b136cc92a2a6e09d5260fa642f3c7405d89f0505adda4693652f866d51464dfe0380e05a0b20e2cb22b091b9d142a2082e8d1c96164d8821ebebd0df78c4ad
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=${SELENE_EXPORT_SYMBOLS}
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/${PORT}")
+vcpkg_copy_pdbs()
+
+# Include files should not be duplicated into the /debug/include directory.
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/selene RENAME copyright) \ No newline at end of file