From e7159c52ae8da4a846bd649e49fafe59739eda66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 31 Jan 2014 12:50:45 +0100 Subject: [PATCH] package: added debian package. Thanks to Costas Hatzis for the help. --- doc/building.dox | 14 ++++++++++++++ package/debian/changelog | 5 +++++ package/debian/compat | 1 + package/debian/control | 25 +++++++++++++++++++++++++ package/debian/copyright | 25 +++++++++++++++++++++++++ package/debian/magnum-dev.install | 6 ++++++ package/debian/magnum.install | 3 +++ package/debian/rules | 19 +++++++++++++++++++ package/debian/source/format | 1 + 9 files changed, 99 insertions(+) create mode 100644 package/debian/changelog create mode 100644 package/debian/compat create mode 100644 package/debian/control create mode 100644 package/debian/copyright create mode 100644 package/debian/magnum-dev.install create mode 100644 package/debian/magnum.install create mode 100755 package/debian/rules create mode 100644 package/debian/source/format diff --git a/doc/building.dox b/doc/building.dox index 5bef9436f..71edec083 100644 --- a/doc/building.dox +++ b/doc/building.dox @@ -269,6 +269,20 @@ project root: makepkg -p package/archlinux/ +@subsection building-packages-deb DEB packages + +There is also `package/debian/` directory with all files needed for building +Debian packages. You need to have `corrade-dev` DEB packages installed and in +addition also `dpkg-dev` package. Building is easy, just change directory to +package root, copy `package/debian` directory there and run `dpkg-buildpackage`: + + cp -r package/debian . + dpkg-buildpackage + +This will compile binary and development packages, which will then appear in +parent directory. If you need to modify CMake flags (enabling/disabling some +features, for example), modify the last entry in `debian/rules`. + @section building-crosscompiling Crosscompiling For crosscompiling you need to have *both* target and native version of diff --git a/package/debian/changelog b/package/debian/changelog new file mode 100644 index 000000000..796c69eba --- /dev/null +++ b/package/debian/changelog @@ -0,0 +1,5 @@ +magnum (1.0-1) UNRELEASED; urgency=low + + * Latest upstream version + + -- Vladimír Vondruš Fri, 31 Jan 2014 12:20:58 +0100 diff --git a/package/debian/compat b/package/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/package/debian/compat @@ -0,0 +1 @@ +9 diff --git a/package/debian/control b/package/debian/control new file mode 100644 index 000000000..38669b8aa --- /dev/null +++ b/package/debian/control @@ -0,0 +1,25 @@ +Source: magnum +Priority: optional +Maintainer: Vladimír Vondruš +Build-Depends: debhelper (>= 9), cmake (>= 2.8.8) +Standards-Version: 3.9.2 +Section: libs +Homepage: http://mosra.cz/blog/magnum.php +Vcs-Git: git://github.com/mosra/magnum.git +Vcs-Browser: https://github.com/mosra/magnum + +Package: magnum-dev +Section: libdevel +Architecture: any +Depends: magnum (= ${binary:Version}), corrade-dev, libgl-dev, freeglut3-dev, libopenal-dev +Description: Magnum development files + Headers and tools needed for developing with Magnum. + +Package: magnum +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, corrage, libgl1, freeglut3, libopenal1 +Description: C++11 and OpenGL 2D/3D graphics engine + Magnum is 2D/3D graphics engine written in C++11 and modern OpenGL. Its goal + is to simplify low-level graphics development and interaction with OpenGL + using recent C++11 features and to abstract away platform-specific issues. diff --git a/package/debian/copyright b/package/debian/copyright new file mode 100644 index 000000000..a9eaab973 --- /dev/null +++ b/package/debian/copyright @@ -0,0 +1,25 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Magnum +Upstream-Contact: Vladimír Vondruš +Source: https://github.com/mosra/magnum + +Files: * +Copyright: 2010-2014 Vladimír Vondruš +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. diff --git a/package/debian/magnum-dev.install b/package/debian/magnum-dev.install new file mode 100644 index 000000000..dccc382dd --- /dev/null +++ b/package/debian/magnum-dev.install @@ -0,0 +1,6 @@ +usr/include/Magnum/* +usr/include/MagnumExternal/* +usr/include/MagnumPlugins/* +usr/lib*/lib*.so +usr/lib*/lib*.a +usr/share/cmake* diff --git a/package/debian/magnum.install b/package/debian/magnum.install new file mode 100644 index 000000000..27b2ed6b2 --- /dev/null +++ b/package/debian/magnum.install @@ -0,0 +1,3 @@ +usr/bin/* +usr/lib*/magnum/* +usr/lib*/lib*.so.* diff --git a/package/debian/rules b/package/debian/rules new file mode 100755 index 000000000..3723072df --- /dev/null +++ b/package/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +%: + dh $@ --parallel + +override_dh_auto_configure: + dh_auto_configure -- \ + -DWITH_AUDIO=ON \ + -DWITH_GLUTAPPLICATION=ON \ + -DWITH_GLXAPPLICATION=ON \ + -DWITH_WINDOWLESSGLXAPPLICATION=ON \ + -DWITH_MAGNUMFONT=ON \ + -DWITH_MAGNUMFONTCONVERTER=ON \ + -DWITH_TGAIMAGECONVERTER=ON \ + -DWITH_TGAIMPORTER=ON \ + -DWITH_WAVAUDIOIMPORTER=ON \ + -DWITH_DISTANCEFIELDCONVERTER=ON \ + -DWITH_FONTCONVERTER=ON \ + -DWITH_MAGNUMINFO=ON diff --git a/package/debian/source/format b/package/debian/source/format new file mode 100644 index 000000000..89ae9db8f --- /dev/null +++ b/package/debian/source/format @@ -0,0 +1 @@ +3.0 (native)