mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-28 06:32:11 +00:00
aedi: do not build unused libraries and tools of mpg123
This commit is contained in:
parent
39e28ddad6
commit
016056611f
4 changed files with 17 additions and 10 deletions
|
@ -335,15 +335,14 @@ class Mpg123Target(CMakeStaticDependencyTarget):
|
|||
state.download_source(
|
||||
'https://www.mpg123.de/download/mpg123-1.30.1.tar.bz2',
|
||||
'1b20c9c751bea9be556749bd7f97cf580f52ed11f2540756e9af26ae036e4c59',
|
||||
patches='mpg123-fix-cmake')
|
||||
patches=('mpg123-arm64-fpu', 'mpg123-no-syn123'))
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
state.options['CMAKE_EXE_LINKER_FLAGS'] = '-framework AudioUnit'
|
||||
super().configure(state)
|
||||
opts = state.options
|
||||
opts['BUILD_LIBOUT123'] = 'NO'
|
||||
opts['BUILD_PROGRAMS'] = 'NO'
|
||||
|
||||
def post_build(self, state: BuildState):
|
||||
super().post_build(state)
|
||||
self.keep_module_target(state, 'MPG123::libmpg123')
|
||||
super().configure(state)
|
||||
|
||||
|
||||
class OggTarget(CMakeStaticDependencyTarget):
|
||||
|
|
4
deps/.gitignore
vendored
4
deps/.gitignore
vendored
|
@ -27,9 +27,7 @@
|
|||
/iconv/lib/libcharset.a
|
||||
/jpeg-turbo/bin/
|
||||
/jpeg-turbo/lib/pkgconfig/libturbojpeg.pc
|
||||
/mpg123/bin/
|
||||
/mpg123/**/*out123.*
|
||||
/mpg123/**/*syn123.*
|
||||
/mpg123/lib/pkgconfig/libsyn123.pc
|
||||
/opusfile/lib/libopusurl.a
|
||||
/opusfile/lib/pkgconfig/opusurl.pc
|
||||
/pcre/bin/pcregrep
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--- a/ports/cmake/src/CMakeLists.txt
|
||||
+++ b/ports/cmake/src/CMakeLists.txt
|
||||
@@ -185,7 +185,7 @@
|
||||
@@ -179,7 +179,7 @@
|
||||
set(NO_ERETURN ON)
|
||||
endif()
|
||||
|
10
patch/mpg123-no-syn123.diff
Normal file
10
patch/mpg123-no-syn123.diff
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/ports/cmake/src/CMakeLists.txt
|
||||
+++ b/ports/cmake/src/CMakeLists.txt
|
||||
@@ -363,7 +363,6 @@
|
||||
if(BUILD_LIBOUT123)
|
||||
add_subdirectory("libout123")
|
||||
endif()
|
||||
-add_subdirectory("libsyn123")
|
||||
|
||||
if(UNIX)
|
||||
option(BUILD_PROGRAMS "Build programs" ON)
|
Loading…
Reference in a new issue