diff options
| author | Francesco Bertolaccini <francesco@bertolaccini.dev> | 2019-08-02 02:25:30 +0200 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-08-01 17:25:30 -0700 |
| commit | e7e254cb11cbd47f68aba3637aac5dc3c250b14d (patch) | |
| tree | de9019cf08abbebea2059794b9d024499ead167c | |
| parent | dc3744fb6b0157d9115105d94e09af6ab1db3b90 (diff) | |
| download | vcpkg-e7e254cb11cbd47f68aba3637aac5dc3c250b14d.tar.gz vcpkg-e7e254cb11cbd47f68aba3637aac5dc3c250b14d.zip | |
Add riffcpp port (#7509)
| -rw-r--r-- | ports/riffcpp/CONTROL | 4 | ||||
| -rw-r--r-- | ports/riffcpp/portfile.cmake | 25 |
2 files changed, 29 insertions, 0 deletions
diff --git a/ports/riffcpp/CONTROL b/ports/riffcpp/CONTROL new file mode 100644 index 000000000..3667dd786 --- /dev/null +++ b/ports/riffcpp/CONTROL @@ -0,0 +1,4 @@ +Source: riffcpp +Version: 2.1.0 +Homepage: https://github.com/libdmusic/riffcpp +Description: Simple library for reading RIFF files diff --git a/ports/riffcpp/portfile.cmake b/ports/riffcpp/portfile.cmake new file mode 100644 index 000000000..aff2312d4 --- /dev/null +++ b/ports/riffcpp/portfile.cmake @@ -0,0 +1,25 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO libdmusic/riffcpp + REF v2.1.0 + SHA512 bf41876b2d2305d5ec83dfb2739becf4c9d584248022123c985f5a49ccf051a53f2453b715052ae4fb96e57ab1191001572139803c7c36f37f97c6e21c59d1ba + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DRIFFCPP_INSTALL_EXAMPLE=OFF +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) + +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/riffcpp) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/riffcpp/LICENSE ${CURRENT_PACKAGES_DIR}/share/riffcpp/copyright) +vcpkg_test_cmake(PACKAGE_NAME riffcpp)
\ No newline at end of file |
