Source: pokerth
Version: 1.1.1-7.1
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

pokerth fails to cross build from source, because the upstream build
system hard codes the build architecture qmake rather than using
$$QMAKE_QMAKE in a few places. The attached patch fixes them and makes
pokerth cross buildable. Please consider applying it.

Helmut
--- pokerth-1.1.1.orig/pokerth_game.pro
+++ pokerth-1.1.1/pokerth_game.pro
@@ -409,7 +409,7 @@
 		LIBPATH += $${PREFIX}/lib /opt/gsasl/lib
 		LIB_DIRS = $${PREFIX}/lib \
 			$${PREFIX}/lib64 \
-			$$system(qmake -query QT_INSTALL_LIBS)
+			$$system($$QMAKE_QMAKE -query QT_INSTALL_LIBS)
 	}
 	android{
 		LIBPATH += $${PREFIX}/lib/armv7
--- pokerth-1.1.1.orig/pokerth_server.pro
+++ pokerth-1.1.1/pokerth_server.pro
@@ -174,7 +174,7 @@
 	#QMAKE_LFLAGS += -Wl,--gc-sections
 
 	LIBPATH += lib $${PREFIX}/lib /opt/gsasl/lib
-	LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64 $$system(qmake -query QT_INSTALL_LIBS)
+	LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64 $$system($$QMAKE_QMAKE -query QT_INSTALL_LIBS)
 	BOOST_FS = boost_filesystem boost_filesystem-mt
 	BOOST_THREAD = boost_thread boost_thread-mt
 	BOOST_PROGRAM_OPTIONS = boost_program_options boost_program_options-mt

Reply via email to