Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

build: add lib libsamplerate #2147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions libsamplerate/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package:
id: libsamplerate
name: libsamplerate
version: 0.1.9
kind: lib
description: |
libsamplerate (also known as Secret Rabbit Code) is a library for performing sample rate conversion of audio data.

runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/Flamefire/libsamplerate.git
commit: b5d39fbfc86b656fed68c935ac7b0a06349e4aa1
patch: patches/0001-fix-path.patch
build:
kind: cmake
25 changes: 25 additions & 0 deletions libsamplerate/patches/0001-fix-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 82f29092f8be8cfde8de72605ffb50f4fd3f2480 Mon Sep 17 00:00:00 2001
From: van <[email protected]>
Date: Mon, 6 May 2024 22:35:28 +0800
Subject: [PATCH] fix-path

---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ff5913c..60e41e6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,7 +113,7 @@ if(LIBSAMPLERATE_INSTALL)
configure_file(samplerate.pc.in samplerate.pc @ONLY)

install(TARGETS samplerate DESTINATION lib)
- install(FILES src/samplerate.h DESTINATION include)
+ install(FILES include/samplerate.h DESTINATION include)
install(DIRECTORY doc/ DESTINATION share/doc/libsamplerate)
install(FILES ${CMAKE_BINARY_DIR}/samplerate.pc DESTINATION lib/pkgconfig)
endif()
--
2.33.1

Loading