diff options
| author | Michael Hofmann <kmhofmann@users.noreply.github.com> | 2019-01-16 01:40:00 +0100 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-01-15 16:40:00 -0800 |
| commit | 269450283bbc246fa0b9fb52de3406caf36833b0 (patch) | |
| tree | ff14a1f701e5676447050f16a9d6917707a2f8e1 | |
| parent | fbd61bec7795df3927742a84602f624162f32f1b (diff) | |
| download | vcpkg-269450283bbc246fa0b9fb52de3406caf36833b0.tar.gz vcpkg-269450283bbc246fa0b9fb52de3406caf36833b0.zip | |
[selene] Update to v0.2. (#4920)
* [selene] Update to v0.2.
* [selene] Simplify portfile slightly
* [selene] Ensure the library is only built statically.
| -rw-r--r-- | ports/selene/CONTROL | 4 | ||||
| -rw-r--r-- | ports/selene/portfile.cmake | 18 |
2 files changed, 7 insertions, 15 deletions
diff --git a/ports/selene/CONTROL b/ports/selene/CONTROL index ddf9e22ea..df460687e 100644 --- a/ports/selene/CONTROL +++ b/ports/selene/CONTROL @@ -1,4 +1,4 @@ Source: selene
-Version: 0.1.1
-Description: A C++14 image representation, processing and I/O library.
+Version: 0.2-1
+Description: A C++17 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 index c292a64d1..e427c99c2 100644 --- a/ports/selene/portfile.cmake +++ b/ports/selene/portfile.cmake @@ -1,34 +1,26 @@ include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/selene-0.1.1)
-
-if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
- set(SELENE_EXPORT_SYMBOLS TRUE)
-else()
- set(SELENE_EXPORT_SYMBOLS FALSE)
-endif()
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO kmhofmann/selene
- REF v0.1.1
- SHA512 7738c7b803ae6178f0099b2db2148d20edeff01c524e108e724896201800d82d3852a1ab7d0bd697907673d7030c55c81411f77bb957a0ee3811c46d07104c3e
+ REF v0.2
+ SHA512 9ec1c767541cbe0b349302b7db13a55869003a230669636b6bc37de01be833633be0741b80f58109140b9563b7a7f4c6a5b7ab46ecb142688170a47dba24bdc4
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_fixup_cmake_targets(CONFIG_PATH "lib/cmake/selene")
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 +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/selene RENAME copyright)
|
