mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 11:59:58 -05:00
Initial community commit
This commit is contained in:
13
vcpkg-ports/mpg123/fix-m1-build.patch
Normal file
13
vcpkg-ports/mpg123/fix-m1-build.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/ports/cmake/src/CMakeLists.txt b/ports/cmake/src/CMakeLists.txt
|
||||
index ee9a1ba..81d23f8 100644
|
||||
--- a/ports/cmake/src/CMakeLists.txt
|
||||
+++ b/ports/cmake/src/CMakeLists.txt
|
||||
@@ -185,7 +185,7 @@ if(NO_MESSAGES)
|
||||
set(NO_ERETURN ON)
|
||||
endif()
|
||||
|
||||
-if(WIN32)
|
||||
+if(WIN32 OR APPLE AND CMAKE_SYSTEM_PROCESSOR MATCHES arm)
|
||||
set(HAVE_FPU 1)
|
||||
else()
|
||||
cmake_host_system_information(RESULT HAVE_FPU QUERY HAS_FPU)
|
13
vcpkg-ports/mpg123/fix-modulejack.patch
Normal file
13
vcpkg-ports/mpg123/fix-modulejack.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/ports/cmake/src/CMakeLists.txt b/ports/cmake/src/CMakeLists.txt
|
||||
index 7147174..76e1743 100644
|
||||
--- a/ports/cmake/src/CMakeLists.txt
|
||||
+++ b/ports/cmake/src/CMakeLists.txt
|
||||
@@ -238,7 +238,7 @@ if(BUILD_LIBOUT123)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
- if(NOT CHECK_MODULES OR NOT JACK_REQUIRED EQUAL -1)
|
||||
+ if(0)
|
||||
pkg_search_module(JACK jack)
|
||||
if(JACK_FOUND)
|
||||
list(APPEND OUTPUT_MODULES jack)
|
13
vcpkg-ports/mpg123/no-executables.patch
Normal file
13
vcpkg-ports/mpg123/no-executables.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/ports/cmake/src/CMakeLists.txt b/ports/cmake/src/CMakeLists.txt
|
||||
index c7ba36f..7147174 100644
|
||||
--- a/ports/cmake/src/CMakeLists.txt
|
||||
+++ b/ports/cmake/src/CMakeLists.txt
|
||||
@@ -372,7 +372,7 @@ if(BUILD_LIBOUT123)
|
||||
endif()
|
||||
add_subdirectory("libsyn123")
|
||||
|
||||
-if(UNIX)
|
||||
+if(0)
|
||||
add_subdirectory("tests")
|
||||
|
||||
if(BUILD_LIBOUT123)
|
37
vcpkg-ports/mpg123/portfile.cmake
Normal file
37
vcpkg-ports/mpg123/portfile.cmake
Normal file
@@ -0,0 +1,37 @@
|
||||
set(MPG123_VERSION 1.29.2)
|
||||
set(MPG123_HASH ffb82ffbebedeb12783338b5159bf055afd25cb77e1b705bef29f04fa50bcb2ceaf2a6418d0e111fab1151ea956fe48ba3576d978e6b0c8f4ca72c3883608ec0)
|
||||
|
||||
vcpkg_from_sourceforge(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO mpg123/mpg123
|
||||
REF ${MPG123_VERSION}
|
||||
FILENAME "mpg123-${MPG123_VERSION}.tar.bz2"
|
||||
SHA512 ${MPG123_HASH}
|
||||
PATCHES
|
||||
no-executables.patch
|
||||
fix-modulejack.patch
|
||||
fix-m1-build.patch
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
include("${CURRENT_INSTALLED_DIR}/share/yasm-tool-helper/yasm-tool-helper.cmake")
|
||||
yasm_tool_helper(APPEND_TO_PATH)
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}/ports/cmake"
|
||||
OPTIONS -DUSE_MODULES=OFF
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
if(VCPKG_TARGET_IS_OSX)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
endif()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
22
vcpkg-ports/mpg123/vcpkg.json
Normal file
22
vcpkg-ports/mpg123/vcpkg.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "mpg123",
|
||||
"version": "1.29.2",
|
||||
"port-version": 3,
|
||||
"description": "mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for layers 1, 2 and 3 (MPEG 1.0 layer 3 also known as MP3).",
|
||||
"homepage": "https://sourceforge.net/projects/mpg123/",
|
||||
"license": "LGPL-2.1-or-later",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "yasm-tool-helper",
|
||||
"platform": "windows"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user