diff --git a/srcpkgs/smplayer/template b/srcpkgs/smplayer/template index 6c771bb589..600edbb3a0 100644 --- a/srcpkgs/smplayer/template +++ b/srcpkgs/smplayer/template @@ -3,6 +3,7 @@ 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" @@ -14,44 +15,11 @@ 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 +if [ "$XBPS_TARGET_WORDSIZE" == "32" ]; then broken="embedded web server does not compile on 32 bit architectures" fi pre_build() { - if [ "$CROSS_BUILD" ]; then - cat > "${wrksrc}/qt.conf" <<_EOF -[Paths] -Sysroot=${XBPS_CROSS_BASE} -Prefix=${XBPS_CROSS_BASE}/usr -ArchData=${XBPS_CROSS_BASE}/usr/lib/qt5 -Data=${XBPS_CROSS_BASE}/usr/share/qt5 -Documentation=${XBPS_CROSS_BASE}/usr/share/doc/qt5 -Headers=${XBPS_CROSS_BASE}/usr/include/qt5 -Libraries=${XBPS_CROSS_BASE}/usr/lib -LibraryExecutables=/usr/lib/qt5/libexec -Binaries=/usr/lib/qt5/bin -Tests=${XBPS_CROSS_BASE}/usr/tests -Plugins=/usr/lib/qt5/plugins -Imports=${XBPS_CROSS_BASE}/usr/lib/qt5/imports -Qml2Imports=${XBPS_CROSS_BASE}/usr/lib/qt5/qml -Translations=${XBPS_CROSS_BASE}/usr/share/qt5/translations -Settings=${XBPS_CROSS_BASE}/etc/xdg -Examples=${XBPS_CROSS_BASE}/usr/share/qt5/examples -HostPrefix=/usr -HostData=/usr/lib/qt5 -HostBinaries=/usr/lib/qt5/bin -HostLibraries=/usr/lib -Spec=linux-g++ -TargetSpec=linux-g++ -_EOF - export QMAKE_OPTS="QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_CFLAGS=\"${CFLAGS}\" \ - QMAKE_CXXFLAGS=\"${CXXFLAGS}\" QMAKE_LFLAGS=\"${LDFLAGS}\" -qtconf ${wrksrc}/qt.conf" - else - export QMAKE_OPTS="QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_CFLAGS=\"${CFLAGS}\" \ - QMAKE_CXXFLAGS=\"${CXXFLAGS}\" QMAKE_LFLAGS=\"${LDFLAGS}\"" - fi 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