From 6be9b8416677a3a1bbecc76709603656a968b93e Mon Sep 17 00:00:00 2001 From: Dimitrios Eftaxiopoulos Date: Fri, 9 Mar 2012 23:59:20 +0200 Subject: [PATCH] Define cmake as buildsystem in debian/rules --- debian/control | 41 +++++++++++++++++++++++++++++++++++++++++ debian/rules | 40 ++++++++++++++++++++-------------------- debian/source/options | 2 +- include/mgl/config.h | 3 +++ 4 files changed, 65 insertions(+), 21 deletions(-) create mode 100644 include/mgl/config.h diff --git a/debian/control b/debian/control index e58d13e..e98a980 100644 --- a/debian/control +++ b/debian/control @@ -28,6 +28,34 @@ Description: library for scientific graphs. (utilities and examples) . This package contains MathGL utilities and examples. +Package: mathgl-doc-en +Architecture: all +Section: doc +Depends: dpkg (>= 1.15.4) | install-info, ${misc:Depends} +Replaces: mathgl-doc +Description: library for scientific graphs. (English documentation) + A free cross-platform library of fast C++ routines for plotting data in up + to 3 dimensions. It can export plots to bitmaps and vector EPS, SVG, IDTF + files. There are simple window interfaces based on GLUT, FLTK and/or Qt. + MathGL can also be used in the console. There are interfaces to a set of + languages, such as, C, Fortran, Pascal, Forth, Python, Octave. + . + This package contains the MathGL documentation in English. + +Package: mathgl-doc-ru +Architecture: all +Section: doc +Depends: dpkg (>= 1.15.4) | install-info, ${misc:Depends} +Replaces: mathgl-doc +Description: library for scientific graphs. (Russian documentation) + A free cross-platform library of fast C++ routines for plotting data in up + to 3 dimensions. It can export plots to bitmaps and vector EPS, SVG, IDTF + files. There are simple window interfaces based on GLUT, FLTK and/or Qt. + MathGL can also be used in the console. There are interfaces to a set of + languages, such as, C, Fortran, Pascal, Forth, Python, Octave. + . + This package contains the MathGL documentation in Russian. + Package: libmgl6 Architecture: any Section: libs @@ -80,3 +108,16 @@ Description: library for scientific graphs. (development files) languages, such as, C, Fortran, Pascal, Forth, Python, Octave. . This package contains the development files. + +Package: python-mathgl +Architecture: any +Section: python +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-numpy-abi9 +Description: library for scientific graphs. (Python module) + A free cross-platform library of fast C++ routines for plotting data in up + to 3 dimensions. It can export plots to bitmaps and vector EPS, SVG, IDTF + files. There are simple window interfaces based on GLUT, FLTK and/or Qt. + MathGL can also be used in the console. There are interfaces to a set of + languages, such as, C, Fortran, Pascal, Forth, Python, Octave. + . + This package provides the Python module for mathgl. \ No newline at end of file diff --git a/debian/rules b/debian/rules index f1b3d3f..664d339 100755 --- a/debian/rules +++ b/debian/rules @@ -12,32 +12,32 @@ export DH_OPTIONS=-v clean: dh_testdir - rm -rf png/*.png lang/CMakeFiles/_mathgl.dir/mglPYTHON_wrap.cxx.o \ - CMakeFiles/CompilerIdC/a.out CMakeFiles/CompilerIdCXX/a.out \ - lang/_mathgl.so CMakeCache.txt CMakeFiles Makefile\ - cmake_install.cmake examples/CMakeFiles examples/Makefile \ - examples/cmake_install.cmake include/CMakeFiles \ - include/Makefile include/cmake_install.cmake \ - include/mgl/config.h lang/CMakeFiles lang/Makefile \ - lang/cmake_install.cmake lang/mathgl.py lang/mglPYTHON_wrap.cxx \ - src/CMakeFiles src/Makefile src/cmake_install.cmake \ - texinfo/CMakeFiles texinfo/Makefile texinfo/cmake_install.cmake \ - udav/CMakeFiles udav/Makefile udav/cmake_install.cmake \ - udav/udav.qrc.depends utils/CMakeFiles utils/Makefile \ - utils/cmake_install.cmake widgets/CMakeFiles widgets/Makefile \ - widgets/cmake_install.cmake widgets/libmgl-wnd.so src/libmgl.so \ - widgets/libmgl-wnd.so.6.0.0 examples/mgl_example utils/mglconv \ - src/libmgl.a src/libmgl.so.6.0.0 widgets/libmgl-wnd.a - dh_auto_clean - dh_clean +# rm -rf png/*.png lang/CMakeFiles/_mathgl.dir/mglPYTHON_wrap.cxx.o \ +# CMakeFiles/CompilerIdC/a.out CMakeFiles/CompilerIdCXX/a.out \ +# lang/_mathgl.so CMakeCache.txt CMakeFiles Makefile\ +# cmake_install.cmake examples/CMakeFiles examples/Makefile \ +# examples/cmake_install.cmake include/CMakeFiles \ +# include/Makefile include/cmake_install.cmake \ +# include/mgl/config.h lang/CMakeFiles lang/Makefile \ +# lang/cmake_install.cmake lang/mathgl.py lang/mglPYTHON_wrap.cxx \ +# src/CMakeFiles src/Makefile src/cmake_install.cmake \ +# texinfo/CMakeFiles texinfo/Makefile texinfo/cmake_install.cmake \ +# udav/CMakeFiles udav/Makefile udav/cmake_install.cmake \ +# udav/udav.qrc.depends utils/CMakeFiles utils/Makefile \ +# utils/cmake_install.cmake widgets/CMakeFiles widgets/Makefile \ +# widgets/cmake_install.cmake widgets/libmgl-wnd.so src/libmgl.so \ +# widgets/libmgl-wnd.so.6.0.0 examples/mgl_example utils/mglconv \ +# src/libmgl.a src/libmgl.so.6.0.0 widgets/libmgl-wnd.a + dh_auto_clean --buildsystem=cmake + dh_clean build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir - cmake . - dh_auto_build + dh_auto_configure --buildsystem=cmake + dh_auto_build --buildsystem=cmake # dh_auto_test binary-indep: diff --git a/debian/source/options b/debian/source/options index e957e3f..6058341 100644 --- a/debian/source/options +++ b/debian/source/options @@ -1 +1 @@ - extend-diff-ignore = "(^|/)(config\.log|lang/numpy\.i|texinfo/Makefile\.am|install_manifest\.txt)$" \ No newline at end of file + extend-diff-ignore = "(^|/)(install_manifest\.txt|include/mgl/config\.h)$" \ No newline at end of file diff --git a/include/mgl/config.h b/include/mgl/config.h new file mode 100644 index 0000000..4deae5f --- /dev/null +++ b/include/mgl/config.h @@ -0,0 +1,3 @@ +/* This define enables double precision in MathGL */ +#define MGL_USE_DOUBLE 0 + -- 2.30.2