31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Template file for 'smplayer'
|
|
pkgname=smplayer
|
|
version=19.10.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
build_helper=qmake
|
|
hostmakedepends="qt5-host-tools qt5-tools qt5-script-devel"
|
|
makedepends="zlib-devel qt5-script-devel qt5-tools-devel"
|
|
depends="hicolor-icon-theme desktop-file-utils"
|
|
short_desc="Complete front-end for mplayer and mpv"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.smplayer.info"
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
|
checksum=54f751c62977899307c838936d05018b0a4884ee95e0e0415ceb92054286076b
|
|
|
|
# upstream bug report https://sourceforge.net/p/smplayer/bugs/935/
|
|
if [ "$XBPS_TARGET_WORDSIZE" == "32" ]; then
|
|
broken="embedded web server does not compile on 32 bit architectures"
|
|
fi
|
|
|
|
pre_build() {
|
|
sed -i 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' src/smplayer.pro
|
|
sed -i 's|PREFIX=/usr/local|PREFIX=/usr|' Makefile
|
|
sed -i 's|DOC_PATH=$(PREFIX)/share/doc/packages/smplayer|DOC_PATH=$(PREFIX)/share/doc/smplayer|' Makefile
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} CC="$CC" CXX="$CXX" LINK="$CXX" LD="$CXX" CFLAGS_EXTRA="$CFLAGS $LDFLAGS"
|
|
}
|