aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2021-02-03 11:42:52 -0800
committerGitHub <noreply@github.com>2021-02-03 11:42:52 -0800
commit63ca0234f42c7de1f3b2f606bb446cfb62e254a0 (patch)
tree229a765189166e34ec67897eb45a72f7e034c3ba /ports
parentbad6e874546d1acc5797c9e363e72813c39d47ef (diff)
downloadvcpkg-63ca0234f42c7de1f3b2f606bb446cfb62e254a0.tar.gz
vcpkg-63ca0234f42c7de1f3b2f606bb446cfb62e254a0.zip
[libebur128] add new port with version 1.2.5 (#15988)
Diffstat (limited to 'ports')
-rw-r--r--ports/libebur128/portfile.cmake20
-rw-r--r--ports/libebur128/vcpkg.json8
2 files changed, 28 insertions, 0 deletions
diff --git a/ports/libebur128/portfile.cmake b/ports/libebur128/portfile.cmake
new file mode 100644
index 000000000..5e4db581e
--- /dev/null
+++ b/ports/libebur128/portfile.cmake
@@ -0,0 +1,20 @@
+if((VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") AND VCPKG_TARGET_IS_WINDOWS)
+ message(FATAL_ERROR "${PORT} does not support Windows ARM")
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO jiixyj/libebur128
+ REF v1.2.5
+ SHA512 5f53c64f47bbad224840eef978bbc357f3fab091ef45f849749e5fabba0035d074451bc6e60240d3ff2c56b96faaf66fb91f32f96dcaacd9d81d3c148688c2f7
+)
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS -DENABLE_INTERNAL_QUEUE_H=ON
+)
+vcpkg_install_cmake()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/libebur128/vcpkg.json b/ports/libebur128/vcpkg.json
new file mode 100644
index 000000000..72624b6f8
--- /dev/null
+++ b/ports/libebur128/vcpkg.json
@@ -0,0 +1,8 @@
+{
+ "name": "libebur128",
+ "version-string": "1.2.5",
+ "description": "A library implementing the EBU R128 audio loudness standard",
+ "homepage": "https://github.com/jiixyj/libebur128",
+ "license": "MIT",
+ "supports": "!(arm & windows)"
+}