Qt3D: 0001-Modified-debian-files-to-create-working-debian-packa.patch
File 0001-Modified-debian-files-to-create-working-debian-packa.patch, 4.7 KB (added by , 9 years ago) |
---|
-
debian/control
From 1baeea5cc38b9f5010949cd655b3d9746f4dff00 Mon Sep 17 00:00:00 2001 From: Frederik Heber <heber@ins.uni-bonn.de> Date: Sat, 15 Aug 2015 09:06:22 +0200 Subject: [PATCH] Modified debian files to create working debian packages. - basically, I needed to rework the installs in debian/rules and modify the dependencies in debian/control. --- debian/control | 4 ++-- debian/rules | 47 ++++++++++++++++++++++++++++++++++++----------- 2 files changed, 38 insertions(+), 13 deletions(-) diff --git a/debian/control b/debian/control index 6fae1a5..a3d8c27 100644
a b Source: libqt4-3d 2 2 Section: libdevel 3 3 Priority: extra 4 4 Maintainer: Sarah Smith <sarah.j.smith@nokia.com> 5 Build-Depends: debhelper (>= 7), libqtcore4 (>= 4.7.3), libqtgui4 (>= 4.7.3), libqt4-opengl (>= 4.7.3), libqt4-declarative-dev (>= 4.7.3),cdbs (>= 0.4.87+maemo2+0m6)5 Build-Depends: debhelper (>= 7), libqtcore4 (>= 4.7.3), libqtgui4 (>= 4.7.3), libqt4-opengl (>= 4.7.3), cdbs (>= 0.4.87+maemo2+0m6) 6 6 Standards-Version: 3.8.4 7 7 8 8 Package: libqt4-3d 9 9 Architecture: any 10 Depends: libqtcore4 (>= 4.7.3), libqtgui4 (>= 4.7.3), libqt4-opengl (>= 4.7.3) , libqt4-declarative (>= 4.7.3)10 Depends: libqtcore4 (>= 4.7.3), libqtgui4 (>= 4.7.3), libqt4-opengl (>= 4.7.3) 11 11 Description: Qt4 3D module 12 12 Qt is a cross-platform C++ application framework. Qt's primary feature 13 13 is its rich set of widgets that provide standard GUI functionality. -
debian/rules
diff --git a/debian/rules b/debian/rules index bfd3e9b..e9b5279 100755
a b 1 1 #!/usr/bin/make -f 2 2 # -*- makefile -*- 3 3 4 # This rules file is for new Nokia devices using maemo6/meego.5 # For fremantle / N900 see the file devices/maemo5/debian/rules.6 # For ubuntu desktop see the file devices/ubuntu/debian/rules.7 8 4 # To build using this rules file: 9 5 # # 10 6 # ### install debian packaging stuff if not already present: … … 15 11 # 16 12 # ### copy all the stuff across - cannot shadow build (probably don't want git) 17 13 # (cd ~/depot/qt/quick3d && tar cf - --exclude-vcs .)|(cd quick3d-tp1 && tar xf -) 18 # 19 # ### if the qmake in the $PATH is not the Qt you want to use 20 # ### you can use a binary package or a Qt built from source (even if its installed with 21 # ### "make install") as long as it has declarative & opengl 22 # # export PATH=/usr/local/qt/%VERSION%/bin:$PATH 14 # cp -f ~/depot/qt/quick3d/devices/ubuntu/debian/* quick3d-tp1/debian/. 23 15 # 24 16 # cd quick3d-tp1 25 17 # export DEB_BUILD_OPTIONS="parallel=4" 26 # dpkg-buildpackage -b18 # fakeroot dpkg-buildpackage -b 27 19 28 20 # Uncomment this to turn on verbose mode. 29 21 export DH_OPTIONS=-v … … ifneq (,$(filter parallel=%,$(TMP_BUILD_OPTS))) 39 31 PARALLEL_MAKEFLAGS += -j$(NUMJOBS) 40 32 endif 41 33 34 ifeq (arm,$(findstring arm,$(shell g++ -v 2>&1 | sed -n '/Target: arm/p'))) 35 QMAKE_CONF_MKSPEC = -spec linux-g++-maemo 36 QMAKE_CONF_OPTS = CONFIG+=maemo 37 endif 38 42 39 DEB_MAKE_INVOKE := $(MAKE) $(PARALLEL_MAKEFLAGS) 43 40 DEB_MAKE_INSTALL_TARGET := INSTALL_ROOT=$(DEB_DESTDIR) install 44 41 DEB_DH_INSTALL_SOURCEDIR := debian/tmp 45 42 46 43 common-configure-arch:: 47 qmake -spec linux-g++-maemo qt3d.pro CONFIG+=maemo CONFIG+=package 44 qmake $(QMAKE_CONF_MKSPEC) qt3d.pro $(QMAKE_CONF_OPTS) CONFIG+=package 45 46 common-install-arch:: install-desktops 47 48 install-desktops: 49 mkdir -p $(DEB_DESTDIR)/usr/share/applications 50 find . -name *.desktop -exec cp {} $(DEB_DESTDIR)/usr/share/applications \; 51 mkdir -p $(DEB_DESTDIR)/usr/share/pixmaps 52 find . -name icon-*.png -exec cp {} $(DEB_DESTDIR)/usr/share/pixmaps \; 53 mkdir -p $(DEB_DESTDIR)/usr/lib/ 54 find . -name libQt3D.so.* -exec cp {} $(DEB_DESTDIR)/usr/lib \; 55 find . -name libQt3DQuick.so.* -exec cp {} $(DEB_DESTDIR)/usr/lib \; 56 mkdir -p $(DEB_DESTDIR)/usr/lib/qt4/plugins 57 find src/plugins/ -name '*.so' -exec cp {} $(DEB_DESTDIR)/usr/lib/qt4/plugins \; 58 mkdir -p $(DEB_DESTDIR)/usr/lib/qt4/imports 59 find src/imports -name '*.so' -exec cp {} $(DEB_DESTDIR)/usr/lib/qt4/imports \; 60 mkdir -p $(DEB_DESTDIR)/usr/lib/pkgconfig 61 find src/pkgconfig -name '*.pc' -exec cp {} $(DEB_DESTDIR)/usr/lib/pkgconfig \; 62 mkdir -p $(DEB_DESTDIR)/usr/share/qt4/mkspecs/features/ 63 find ./features -exec cp {} $(DEB_DESTDIR)/usr/share/qt4/mkspecs/features/ \; 64 mkdir -p $(DEB_DESTDIR)/usr/include/qt4/Qt3D/ 65 find src/threed -name '*.h' -P -exec cp {} $(DEB_DESTDIR)/usr/include/qt4/Qt3D/ \; 66 mkdir -p $(DEB_DESTDIR)/usr/include/qt4/Qt3DQuick/ 67 find src/quick3d -name '*.h' -P -exec cp {} $(DEB_DESTDIR)/usr/include/qt4/Qt3DQuick/ \; 68 mkdir -p $(DEB_DESTDIR)/usr/bin 69 find bin -perm /+x -type f -exec cp {} $(DEB_DESTDIR)/usr/bin \; 70 mkdir -p $(DEB_DESTDIR)/usr/share/qt4/quick3d 71 mkdir -p $(DEB_DESTDIR)/usr/share/icons/hicolor/80x80/apps 72