aboutsummaryrefslogtreecommitdiff
path: root/ports/libmodman
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libmodman')
-rw-r--r--ports/libmodman/CONTROL8
-rw-r--r--ports/libmodman/portfile.cmake7
2 files changed, 12 insertions, 3 deletions
diff --git a/ports/libmodman/CONTROL b/ports/libmodman/CONTROL
index 70cb9d811..c1fd4cd49 100644
--- a/ports/libmodman/CONTROL
+++ b/ports/libmodman/CONTROL
@@ -1,4 +1,8 @@
Source: libmodman
-Version: 2.0.1
+Version: 2.0.1-1
Homepage: https://code.google.com/p/libmodman
-Description: a simple library for managing modules \ No newline at end of file
+Description: a simple library for managing modules
+
+Feature: tests
+Description: Build libmodman tests
+Build-Depends: zlib
diff --git a/ports/libmodman/portfile.cmake b/ports/libmodman/portfile.cmake
index b2f32cb0c..35bedf907 100644
--- a/ports/libmodman/portfile.cmake
+++ b/ports/libmodman/portfile.cmake
@@ -2,7 +2,7 @@ vcpkg_fail_port_install(ON_TARGET "UWP")
# Enable static build in UNIX
if (VCPKG_TARGET_IS_WINDOWS)
- vcpkg_fail_port_install(ON_LIBRARY_LINKAGE "static")
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
endif()
set(LIBMODMAN_VER 2.0.1)
@@ -13,6 +13,10 @@ vcpkg_download_distfile(ARCHIVE
SHA512 1fecc0fa3637c4aa86d114f5bc991605172d39183fa0f39d8c7858ef5d0d894152025bd426de4dd017a41372d800bf73f53b2328c57b77352a508e12792729fa
)
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ tests BUILD_TESTING
+)
+
vcpkg_extract_source_archive_ex(
ARCHIVE ${ARCHIVE}
OUT_SOURCE_PATH SOURCE_PATH
@@ -24,6 +28,7 @@ vcpkg_extract_source_archive_ex(
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
+ OPTIONS ${FEATURE_OPTIONS}
)
vcpkg_install_cmake()