8fc6627001
Closes: #7050 [via git-merge-pr]
25 lines
1 KiB
Bash
25 lines
1 KiB
Bash
# Template file for 'smplayer'
|
|
pkgname=smplayer
|
|
version=17.7.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
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="A complete front-end for mplayer and mpv"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://smplayer.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
|
checksum=93a7de331b72ece6f13e6a1488e4e3958a2f960afafd159be46d098d3b8265bc
|
|
|
|
pre_build() {
|
|
export QMAKE_OPTS="QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_CFLAGS=\"${CFLAGS}\" \
|
|
QMAKE_CXXFLAGS=\"${CXXFLAGS}\" QMAKE_LFLAGS=\"${LDFLAGS}\""
|
|
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"
|
|
}
|