early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/audiofile/fix-cmakeLists.patch
vendored
Executable file
13
externals/vcpkg/ports/audiofile/fix-cmakeLists.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -42,3 +42,10 @@ endif ()
|
||||
|
||||
#===============================================================================
|
||||
set (CMAKE_SUPPRESS_REGENERATION true)
|
||||
+
|
||||
+#install and export targets
|
||||
+install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Config)
|
||||
+export(TARGETS ${PROJECT_NAME} FILE ${PROJECT_NAME}Config.cmake)
|
||||
+install(EXPORT ${PROJECT_NAME}Config DESTINATION share/AudioFile FILE ${PROJECT_NAME}Config.cmake)
|
||||
+#install headers
|
||||
+install(FILES AudioFile.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
26
externals/vcpkg/ports/audiofile/portfile.cmake
vendored
Executable file
26
externals/vcpkg/ports/audiofile/portfile.cmake
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
# header-only library
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO adamstark/AudioFile
|
||||
REF 004065d01e9b7338580390d4fdbfbaa46adede4e # 1.1.0
|
||||
SHA512 99d31035fc82ca8da3c555c30b6b40ea99e15e1f82002c7f04c567ab7aee1de71deddf6930564c56f3a2e83eea1b5f5e9ca631673ed4a943579732b8d62e9603
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-cmakeLists.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME AudioFile)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
17
externals/vcpkg/ports/audiofile/vcpkg.json
vendored
Executable file
17
externals/vcpkg/ports/audiofile/vcpkg.json
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "audiofile",
|
||||
"version": "1.1.0",
|
||||
"description": "A simple header-only C++ library for reading and writing audio files.",
|
||||
"homepage": "https://github.com/adamstark/AudioFile",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user