Browse Source

package: added debian package.

Thanks to Costas Hatzis for the help.
pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
e7159c52ae
  1. 14
      doc/building.dox
  2. 5
      package/debian/changelog
  3. 1
      package/debian/compat
  4. 25
      package/debian/control
  5. 25
      package/debian/copyright
  6. 6
      package/debian/magnum-dev.install
  7. 3
      package/debian/magnum.install
  8. 19
      package/debian/rules
  9. 1
      package/debian/source/format

14
doc/building.dox

@ -269,6 +269,20 @@ project root:
makepkg -p package/archlinux/<file> makepkg -p package/archlinux/<file>
@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 @section building-crosscompiling Crosscompiling
For crosscompiling you need to have *both* target and native version of For crosscompiling you need to have *both* target and native version of

5
package/debian/changelog vendored

@ -0,0 +1,5 @@
magnum (1.0-1) UNRELEASED; urgency=low
* Latest upstream version
-- Vladimír Vondruš <mosra@centrum.cz> Fri, 31 Jan 2014 12:20:58 +0100

1
package/debian/compat vendored

@ -0,0 +1 @@
9

25
package/debian/control vendored

@ -0,0 +1,25 @@
Source: magnum
Priority: optional
Maintainer: Vladimír Vondruš <mosra@centrum.cz>
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.

25
package/debian/copyright vendored

@ -0,0 +1,25 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Magnum
Upstream-Contact: Vladimír Vondruš <mosra@centrum.cz>
Source: https://github.com/mosra/magnum
Files: *
Copyright: 2010-2014 Vladimír Vondruš <mosra@centrum.cz>
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.

6
package/debian/magnum-dev.install vendored

@ -0,0 +1,6 @@
usr/include/Magnum/*
usr/include/MagnumExternal/*
usr/include/MagnumPlugins/*
usr/lib*/lib*.so
usr/lib*/lib*.a
usr/share/cmake*

3
package/debian/magnum.install vendored

@ -0,0 +1,3 @@
usr/bin/*
usr/lib*/magnum/*
usr/lib*/lib*.so.*

19
package/debian/rules vendored

@ -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

1
package/debian/source/format vendored

@ -0,0 +1 @@
3.0 (native)
Loading…
Cancel
Save