Bug#818735: RFS: qwtplot3d/0.2.7+svn191-10
Hi Mattia
On Tuesday 22 March 2016 11:02:16 you wrote:
> On Mon, Mar 21, 2016 at 12:38:08AM +0100, Gudjon I. Gudjonsson wrote:
> > Do you know of any package where only the a part is built for all architectures?
>
> none come to my mind.
> You could do something similar to this (untested)
>
> define this thing on top of d/rules:
>
> ifneq (,$(findstring qt5, $(shell dh_listpackages)))
> BUILD_qt5 := yes
> else
> BUILD_qt5 :=
> endif
>
> the in the various overrides you do something like this:
>
> override_dh_auto_configure:
> mkdir -p build-qt4 build-qt5
> cp -a doc build-qt4/
> QT_SELECT=qt4 dh_auto_configure --builddirectory=build-qt4 -- ../qwtplot3d.pro
> if $(BUILD_qt5)
> QT_SELECT=qt5 dh_auto_configure --builddirectory=build-qt5 -- ../qwtplot3d.pro
> endif
>
>
> iirc dh_listpackages will not return the qt5 packages if you are
> building in an architecture that is not in the Architecture: list of
> those packages.
Thanks a lot for this. Now I have tested building the package on both amd64 and armhf and it works nicely.
Please take a look at:
http://mentors.debian.net/debian/pool/main/q/qwtplot3d/qwtplot3d_0.2.7+svn191-10.dsc
Regards
Gudjon
Reply to: