void-packages/srcpkgs/smplayer/template
Juergen Buchmueller 0d449ef5ba smplayer: fix cross
2016-11-07 00:41:49 +01:00

23 lines
913 B
Bash

# Template file for 'smplayer'
pkgname=smplayer
version=16.11.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=e53a5d8b4d66fb0b7eb73053ef0bfdd2d942b79a16f8cc8d3d0b0771c7c80b5a
pre_build() {
export QMAKE_OPTS="QMAKE_CXXFLAGS=\"${CXXFLAGS}\" QMAKE_LFLAGS=\"${LDFLAGS}\""
sed -i 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' src/smplayer.pro
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"
}