mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
Merge pull request #6428 from stijnherfst/master
[stormlib] Add new port
This commit is contained in:
commit
785dd6d0eb
4
ports/stormlib/CONTROL
Normal file
4
ports/stormlib/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: stormlib
|
||||
Version: 9.22
|
||||
Build-Depends: zlib, bzip2
|
||||
Description: StormLib is a library for opening and manipulating Blizzard MPQ files
|
15
ports/stormlib/disable-building-tests.patch
Normal file
15
ports/stormlib/disable-building-tests.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f5211b1..4025ea1 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -358,10 +358,4 @@ install(TARGETS ${LIBRARY_NAME}
|
||||
|
||||
INCLUDE(CPack)
|
||||
|
||||
-if(STORM_BUILD_TESTS)
|
||||
- target_link_libraries(storm_test ${LIBRARY_NAME})
|
||||
- install(TARGETS storm_test DESTINATION bin)
|
||||
-endif()
|
||||
|
||||
-add_executable(storm_test ${SRC_FILES} ${TOMCRYPT_FILES} ${TOMMATH_FILES} ${ZLIB_BZIP2_FILES} ${TEST_SRC_FILES})
|
||||
-install(TARGETS storm_test RUNTIME DESTINATION bin)
|
24
ports/stormlib/portfile.cmake
Normal file
24
ports/stormlib/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ladislav-zezula/StormLib
|
||||
REF v9.22
|
||||
SHA512 e08571fca21be2e853d390b8feda32001df810b8f4b60d36822a9de2a877f2be9d3dadacfeec181a2eb80e00b8fed66d0dc9a0d8d9e043e2959478a41ed4d13a
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/disable-building-tests.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/stormlib RENAME copyright)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
Loading…
x
Reference in New Issue
Block a user