1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

multimedia/shotcut: fix build on big-endian

Also remove unnecessary post-patch:
Warning: Possible REINPLACE_CMD issues:
- - REINPLACE_CMD ran, but did not modify file contents: src/jobs/meltjob.cpp
This commit is contained in:
Piotr Kubaj 2020-12-28 20:49:01 +00:00
parent 709be67d45
commit aabe581f95
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=559525
2 changed files with 12 additions and 4 deletions

View File

@ -14,7 +14,7 @@ LIB_DEPENDS= libmlt.so:multimedia/mlt
RUN_DEPENDS= ffmpeg:multimedia/ffmpeg \
${LOCALBASE}/lib/libjack.so:audio/jack
USES= desktop-file-utils gl pkgconfig \
USES= compiler:c++11-lang desktop-file-utils gl pkgconfig \
qmake qt:5 sdl shared-mime-info \
xorg
@ -46,9 +46,6 @@ LADSPA_RUN_DEPENDS= swhplugins>=0:audio/swhplugins
WEBVFX_RUN_DEPENDS= ${LOCALBASE}/lib/mlt/libmltwebvfx.so:multimedia/webvfx-qt5
post-patch:
@${REINPLACE_CMD} -e 's/"qmelt"/"melt"/' ${WRKSRC}/src/jobs/meltjob.cpp
pre-build:
@${FIND} ${WRKSRC} -name '.depend' -delete

View File

@ -0,0 +1,11 @@
--- src/spatialmedia/constants.h.orig 2020-12-28 20:21:17 UTC
+++ src/spatialmedia/constants.h
@@ -36,6 +36,8 @@
# define le64toh(x) qFromLittleEndian(x)
#elif !defined(__FreeBSD__)
# include <endian.h>
+#elif defined(__FreeBSD__)
+# include <sys/endian.h>
#endif
struct AudioMetadata {