aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libebur128
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libebur128')
-rw-r--r--vcpkg/ports/libebur128/0001-remove-warning-message.patch11
-rw-r--r--vcpkg/ports/libebur128/portfile.cmake17
-rw-r--r--vcpkg/ports/libebur128/vcpkg.json14
3 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/libebur128/0001-remove-warning-message.patch b/vcpkg/ports/libebur128/0001-remove-warning-message.patch
new file mode 100644
index 0000000..4901c33
--- /dev/null
+++ b/vcpkg/ports/libebur128/0001-remove-warning-message.patch
@@ -0,0 +1,11 @@
+--- a/ebur128/ebur128.c 2021-02-14 15:31:05.000000000 +0100
++++ b/ebur128/ebur128.c 2025-01-28 10:43:26.975886500 +0100
+@@ -606,7 +606,7 @@
+ #define TURN_OFF_FTZ _mm_setcsr(mxcsr);
+ #define FLUSH_MANUALLY
+ #else
+-#warning "manual FTZ is being used, please enable SSE2 (-msse2 -mfpmath=sse)"
++//#warning "manual FTZ is being used, please enable SSE2 (-msse2 -mfpmath=sse)"
+ #define TURN_ON_FTZ
+ #define TURN_OFF_FTZ
+ #define FLUSH_MANUALLY \
diff --git a/vcpkg/ports/libebur128/portfile.cmake b/vcpkg/ports/libebur128/portfile.cmake
new file mode 100644
index 0000000..eb876b1
--- /dev/null
+++ b/vcpkg/ports/libebur128/portfile.cmake
@@ -0,0 +1,17 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO jiixyj/libebur128
+ REF v1.2.6
+ SHA512 ab188c6d32cd14613119258313a8a3fb1167b55501c9f5b6d3ba738d674bc58f24ac3034c23d9730ed8dc3e95a23619bfb81719e4c79807a9a16c1a5b3423582
+ PATCHES
+ 0001-remove-warning-message.patch
+)
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS -DENABLE_INTERNAL_QUEUE_H=ON
+)
+vcpkg_cmake_install()
+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/vcpkg/ports/libebur128/vcpkg.json b/vcpkg/ports/libebur128/vcpkg.json
new file mode 100644
index 0000000..920499a
--- /dev/null
+++ b/vcpkg/ports/libebur128/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "libebur128",
+ "version": "1.2.6",
+ "port-version": 3,
+ "description": "A library implementing the EBU R128 audio loudness standard",
+ "homepage": "https://github.com/jiixyj/libebur128",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}