56 lines
2.0 KiB
Bash
56 lines
2.0 KiB
Bash
# Template file for 'avidemux'
|
|
pkgname=avidemux
|
|
version=2.8.1
|
|
revision=2
|
|
# Can't be compiled for aarch64, arm* or mips*
|
|
archs="x86_64* i686*"
|
|
hostmakedepends="cmake pkg-config qt5-host-tools qt5-devel tar yasm"
|
|
makedepends="alsa-lib-devel faac-devel faad2-devel gettext-devel jack-devel glu-devel
|
|
lame-devel libass-devel libdca-devel libvorbis-devel libXv-devel
|
|
vapoursynth-devel libmp4v2-devel sqlite-devel libva-devel libvdpau-devel
|
|
qt5-multimedia-devel qt5-script-devel qt5-tools-devel ffmpeg6-devel
|
|
liba52-devel libmad-devel x264-devel x265-devel xvidcore-devel"
|
|
short_desc="Video editing and processing application"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://avidemux.sourceforge.net/"
|
|
changelog="http://avidemux.sourceforge.net/news.html"
|
|
distfiles="${SOURCEFORGE_SITE}/avidemux/avidemux/${version}/${pkgname}_${version}.tar.gz"
|
|
checksum=77d9bdca8683ce57c192b69d207cfab7cf92a7759ce0f63fa37b5c8e42ad3da2
|
|
|
|
# On i686 the build fails with "error: 'asm' operand has impossible constraints"
|
|
# due to not enough available CPU registers. Using the -fno-PIC flag frees up
|
|
# one additional register for the compiler/assembler to use.
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
i686*) CFLAGS="-fno-PIC" ;;
|
|
esac
|
|
|
|
# uses parts of an internal ffmpeg4.4.2 tar
|
|
post_extract() {
|
|
cp ${FILESDIR}/*patch ${wrksrc}/avidemux_core/ffmpeg_package/patches/
|
|
}
|
|
|
|
# soundtouch fails to use 128bit xmm registers on i686
|
|
# deadbeef has a similar problem
|
|
do_configure() {
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
i686*)
|
|
vsed '1iADD_DEFINITIONS(-DSOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS=1)' \
|
|
-i avidemux/common/ADM_audioFilter/src/CMakeLists.txt ;;
|
|
esac
|
|
MAKEFLAGS=${makejobs} \
|
|
bash bootStrap.bash \
|
|
--with-system-libass \
|
|
--with-system-liba52 \
|
|
--with-system-libmad \
|
|
--with-system-libmp4v2
|
|
}
|
|
|
|
do_install() {
|
|
mv install/usr/lib{${XBPS_TARGET_WORDSIZE},}
|
|
cp -aR install/usr ${DESTDIR}
|
|
ln -s avidemux3_qt5 ${DESTDIR}/usr/bin/avidemux
|
|
vman man/avidemux.1
|
|
vinstall avidemux_icon.png 644 usr/share/pixmaps avidemux.png
|
|
}
|