wavpack: add wavpack library for audio compression
authorDaniel Golle <daniel@makrotopia.org>
Thu, 7 Nov 2024 20:24:40 +0000 (20:24 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 12 Nov 2024 17:34:58 +0000 (17:34 +0000)
Add WavPack audio compression/decompression library.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
sound/wavpack/Makefile [new file with mode: 0644]

diff --git a/sound/wavpack/Makefile b/sound/wavpack/Makefile
new file mode 100644 (file)
index 0000000..3bad572
--- /dev/null
@@ -0,0 +1,41 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=wavpack
+PKG_VERSION:=5.7.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_SOURCE_URL:=https://www.wavpack.com/
+PKG_HASH:=e81510fd9ec5f309f58d5de83e9af6c95e267a13753d7e0bbfe7b91273a88bee
+
+PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
+PKG_LICENSE:=BSD-3c
+PKG_LICENSE_FILES:=COPYING LICENSE
+
+CMAKE_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=ON
+
+CMAKE_BINARY_SUBDIR:=openwrt-build
+
+define Package/libwavpack
+  SECTION:=sound
+  CATEGORY:=Sound
+  TITLE:=Hybrid Lossless Audio Compression
+  URL:=https://www.wavpack.com/
+endef
+
+define Package/libwavpack/description
+  WavPack is a completely open audio compression format providing lossless,
+  high-quality lossy, and a unique hybrid compression mode.
+endef
+
+define Package/libwavpack/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libwavpack))