[libopusenc] fix macOS and Linux build (#15671)

This commit is contained in:
Be 2021-01-20 00:21:37 +00:00 committed by GitHub
parent 2b78e19efa
commit f1b73fb7fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 8 deletions

View File

@ -3178,7 +3178,7 @@
},
"libopusenc": {
"baseline": "0.2.1",
"port-version": 0
"port-version": 1
},
"libosip2": {
"baseline": "5.1.0-4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "132909a5cb3c33e038cf9728427910fce455591d",
"version-string": "0.2.1",
"port-version": 1
},
{
"git-tree": "7e66eafbd3552eda0c0243edb904fd8af36d370a",
"version-string": "0.2.1",

View File

@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 3.4)
project(libopusenc C)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4267 /wd4244 /wd4996 /wd4101 /wd4018")
if(MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4267 /wd4244 /wd4996 /wd4101 /wd4018")
endif()
find_path(OPUS_INCLUDE_DIR opus.h PATH_SUFFIXES opus)
find_library(OPUS_LIBRARY opus)

View File

@ -1,6 +0,0 @@
Source: libopusenc
Version: 0.2.1
Homepage: https://github.com/xiph/libopusenc
Description: Library for encoding .opus audio files and live streams.
Build-Depends: opus
Supports: !uwp

View File

@ -0,0 +1,11 @@
{
"name": "libopusenc",
"version-string": "0.2.1",
"port-version": 1,
"description": "Library for encoding .opus audio files and live streams.",
"homepage": "https://github.com/xiph/libopusenc",
"supports": "!uwp",
"dependencies": [
"opus"
]
}