multimedia/mlt7: Fix symbol export on 32-bit archs

Add upstream patches to fix export of Mlt::Producer::set_creation_time()
on 32-bit archs.

While here:
Clean up excess whitespace and remove unused OPENGL_* variables.
This commit is contained in:
Jason E. Hale 2024-12-01 00:20:04 -05:00
parent 64cd84d78c
commit 1c45c79f5b
2 changed files with 43 additions and 38 deletions

View file

@ -1,10 +1,14 @@
PORTNAME= ${_MLT_PORTNAME}
DISTVERSION= ${_MLT_VERSION}
PORTREVISION?= 1
PORTREVISION?= 2
CATEGORIES?= multimedia
MASTER_SITES= https://github.com/mltframework/mlt/releases/download/v${DISTVERSION}/
DISTFILES= mlt-${DISTVERSION}${EXTRACT_SUFX}
WRKSRC= ${WRKDIR}/mlt-${DISTVERSION}
PATCH_SITES= https://github.com/mltframework/mlt/commit/
PATCHFILES+= 6f533e7b8999bc4017c1a6685bf2baea6570d44c.patch:-p1 # Fix export of Mlt::Producer::set_creation_time() on 32-bit archs
PATCHFILES+= 2072c6b3596854f1a7165d7ddd5994204e741db8.patch:-p1 # Fix export of Mlt::Producer::set_creation_time() on 32-bit archs
PATCHFILES+= 63953cf7338181c82eb6eb9f93c8c9a11aaee5f7.patch:-p1 # Fix export of Mlt::Producer::set_creation_time() on 32-bit archs
MAINTAINER= kde@FreeBSD.org
COMMENT?= Multimedia framework for TV broadcasting
@ -22,6 +26,8 @@ LDFLAGS+= -Wl,--undefined-version
DATADIR= ${PREFIX}/share/mlt-7
WRKSRC= ${WRKDIR}/mlt-${DISTVERSION}
.ifndef(SLAVEPORT) # Master port.
USES+= gnome mlt:7,nodepend
USE_GNOME= libxml2
@ -76,7 +82,7 @@ JACKRACK_CMAKE_BOOL= MOD_JACKRACK
KDENLIVE_DESC= Enable kdenlive module
KDENLIVE_CMAKE_BOOL= MOD_KDENLIVE
MOVIT_DESC= Enable OpenGL module
MOVIT_DESC= Enable Movit module
MOVIT_USES= gl xorg
MOVIT_USE= gl=opengl xorg=x11
MOVIT_LIB_DEPENDS= libmovit.so:graphics/movit \
@ -93,13 +99,6 @@ OPENCV_DESC= Enable OpenCV module
OPENCV_LIB_DEPENDS= libopencv_core.so:graphics/opencv
OPENCV_CMAKE_BOOL= MOD_OPENCV
OPENGL_DESC= Enable OpenGL module
OPENGL_CMAKE_BOOL= MOD_OPENGL
OPENGL_LIB_DEPENDS= libepoxy.so:graphics/libepoxy \
libmovit.so:graphics/movit
OPENGL_USES= gl xorg
OPENGL_USE= gl=gl xorg=x11
PLUSGPL_DESC= Enable plus GPL module
PLUSGPL_CMAKE_BOOL= MOD_PLUSGPL

View file

@ -1,3 +1,9 @@
TIMESTAMP = 1729745635
TIMESTAMP = 1733025976
SHA256 (mlt-7.28.0.tar.gz) = bc425bf9602213f5f4855b78cfbbcd43eeb78097c508588bde44415963955aa1
SIZE (mlt-7.28.0.tar.gz) = 1713069
SHA256 (6f533e7b8999bc4017c1a6685bf2baea6570d44c.patch) = a7d205cf2ee9c7cf8f1ba577752d121115af224c11e4380f1d9c2a85cc28d4ad
SIZE (6f533e7b8999bc4017c1a6685bf2baea6570d44c.patch) = 866
SHA256 (2072c6b3596854f1a7165d7ddd5994204e741db8.patch) = 2636d637cab4fb480a0233cbac00dc7165bbeb891dcceb9a9787ea9811787603
SIZE (2072c6b3596854f1a7165d7ddd5994204e741db8.patch) = 883
SHA256 (63953cf7338181c82eb6eb9f93c8c9a11aaee5f7.patch) = 4bec2860cdc605e5e9905c94b94e4d18f8f24b244489a3cdd8df8c3e93160caa
SIZE (63953cf7338181c82eb6eb9f93c8c9a11aaee5f7.patch) = 1469