You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
gpac: rev-bump for symbol not found error
- use ffmpeg pg Fixes: https://trac.macports.org/ticket/74006
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
PortSystem 1.0
|
||||
PortGroup github 1.0
|
||||
PortGroup legacysupport 1.1
|
||||
PortGroup ffmpeg 1.0
|
||||
PortGroup limit_flags 1.0
|
||||
|
||||
github.setup gpac gpac 26.02.0 v
|
||||
revision 0
|
||||
revision 1
|
||||
categories multimedia
|
||||
# https://trac.macports.org/ticket/56408
|
||||
platforms {darwin >= 12}
|
||||
@@ -31,7 +33,7 @@ checksums rmd160 3a725afab382bc2f33e082100dc7c3ad7a6935a0 \
|
||||
legacysupport.newest_darwin_requires_legacy \
|
||||
15
|
||||
|
||||
set ffmpeg_ver 8
|
||||
ffmpeg.version 8
|
||||
|
||||
depends_build path:bin/pkg-config:pkgconfig
|
||||
|
||||
@@ -45,7 +47,6 @@ depends_lib port:freetype \
|
||||
port:libvorbis \
|
||||
port:libtheora \
|
||||
port:a52dec \
|
||||
port:ffmpeg${ffmpeg_ver} \
|
||||
port:XviD \
|
||||
port:zlib \
|
||||
path:lib/libssl.dylib:openssl \
|
||||
@@ -60,8 +61,8 @@ depends_lib port:freetype \
|
||||
# kCMVideoCodecType_HEVC is available in 10.11+ [1][2]
|
||||
# [1] https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/94933/steps/install-port/logs/stdio
|
||||
# [2] https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/94369/steps/install-port/logs/stdio
|
||||
# Fix for FFmpeg 7 - https://github.com/gpac/gpac/issues/2991
|
||||
patchfiles patch-configure.diff \
|
||||
patch-static.diff \
|
||||
patch-no-hevc-yosemite.diff
|
||||
|
||||
post-patch {
|
||||
@@ -72,14 +73,13 @@ post-patch {
|
||||
compiler.blacklist-append {clang < 700}
|
||||
compiler.c_standard 2011
|
||||
|
||||
configure.pkg_config_path ${prefix}/libexec/ffmpeg${ffmpeg_ver}/lib/pkgconfig
|
||||
|
||||
# pulseaudio is recognized if installed but build fails
|
||||
configure.args --cc="${configure.cc}" \
|
||||
--cxx="${configure.cxx}" \
|
||||
--extra-cflags="${configure.cc_archflags}" \
|
||||
--extra-ldflags="${configure.ld_archflags}" \
|
||||
--mandir=${prefix}/share/man \
|
||||
--disable-jack \
|
||||
--disable-x11 \
|
||||
--verbose
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
Remove code that looks for default Fink and MacPorts prefixes.
|
||||
|
||||
Patch in a placeholder for the applications directory which will be replaced
|
||||
with the real value by the Portfile.
|
||||
--- configure.orig 2026-02-05 17:26:28
|
||||
+++ configure 2026-02-06 16:33:10
|
||||
@@ -991,22 +991,10 @@
|
||||
LDFLAGS="-L$prefix/$libdir"
|
||||
else
|
||||
LDFLAGS="$LDFLAGS -L$prefix/$libdir"
|
||||
+++ configure 2026-05-19 23:32:36
|
||||
@@ -986,27 +986,7 @@
|
||||
;;
|
||||
|
||||
Darwin)
|
||||
- CFLAGS_DIR="-I$prefix/include"
|
||||
- if test "$static_bin" = "yes" ; then
|
||||
- LDFLAGS="-L$prefix/$libdir"
|
||||
- else
|
||||
- LDFLAGS="$LDFLAGS -L$prefix/$libdir"
|
||||
- fi
|
||||
-
|
||||
- if test "$is_em" != "yes" ; then
|
||||
@@ -20,9 +21,9 @@ with the real value by the Portfile.
|
||||
- CFLAGS_DIR="$CFLAGS_DIR -I$alt_macosx_dir -I$alt_macosx_dir/include"
|
||||
- LDFLAGS="$LDFLAGS -L$alt_macosx_dir -L$alt_macosx_dir/lib"
|
||||
- fi
|
||||
fi
|
||||
|
||||
CFLAGS="$CFLAGS_DIR $CFLAGS"
|
||||
- fi
|
||||
-
|
||||
- CFLAGS="$CFLAGS_DIR $CFLAGS"
|
||||
- Mac_Applications="/Applications"
|
||||
+ Mac_Applications="@APPLICATIONS_DIR@"
|
||||
SHFLAGS="-dynamiclib"
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
--- static.mak.orig 2026-02-05 17:26:28
|
||||
+++ static.mak 2026-05-19 23:51:32
|
||||
@@ -16,13 +16,6 @@
|
||||
## libgpac compositor compilation options
|
||||
COMPOSITOR_CFLAGS=
|
||||
|
||||
-## Add prefix before every lib
|
||||
-ifneq ($(prefix),/usr/local)
|
||||
-ifneq ($(prefix),/usr)
|
||||
-EXTRALIBS+=-L$(prefix)/lib
|
||||
-endif
|
||||
-endif
|
||||
-
|
||||
## OpenGL available
|
||||
ifeq ($(HAS_OPENGL),yes)
|
||||
EXTRALIBS+= $(OGL_LIBS)
|
||||
Reference in New Issue
Block a user