[calculix-cgx] 01/01: Initial packaging

Wolfgang Fütterer wlfuetter-guest at moszumanska.debian.org
Thu Mar 26 14:10:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

wlfuetter-guest pushed a commit to branch master
in repository calculix-cgx.

commit 93187cef98caa47aba47f6a8ecded74d00da32f7
Author: Wolfgang Fuetterer <debian at wlf-online.de>
Date:   Thu Mar 26 08:36:04 2015 +0100

    Initial packaging
---
 debian/README.source                               |  3 +
 debian/changelog                                   |  5 ++
 debian/compat                                      |  1 +
 debian/control                                     | 17 +++++
 debian/copyright                                   | 43 +++++++++++
 debian/docs                                        |  2 +
 ...d-Patch-to-build-with-freeglut-and-libsnl.patch | 84 ++++++++++++++++++++++
 debian/patches/0001-Debian-Build.patch             | 84 ++++++++++++++++++++++
 ...eglut-Using-standard-header-from-freeglut.patch | 21 ++++++
 debian/patches/0002-Using-freeglut.patch           | 21 ++++++
 debian/patches/0003-No-format-arg-in-sprintf.patch | 31 ++++++++
 debian/patches/series                              |  3 +
 debian/rules                                       |  8 +++
 debian/source/format                               |  1 +
 14 files changed, 324 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..09ef1cf
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,3 @@
+The original package file was repacked to remove non-free
+source code of glut (3.5). The source for libsnl was also removed
+and packaged separatly.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f9be29d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+calculix-cgx (2.8.dfsg-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #nnnn)  
+
+ -- Wolfgang Fuetterer <debian at wlf-online.de>  Tue, 24 Mar 2015 15:40:23 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..63cec22
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: calculix-cgx
+Section: science
+Priority: optional
+Maintainer: Wolfgang Fuetterer <debian at wlf-online.de>
+Build-Depends: debhelper (>= 9), freeglut3-dev, libglu1-mesa-dev, libgl1-mesa-glx, libxmu-dev, libxi-dev, libsm-dev, libice-dev, libsnl-dev
+Standards-Version: 3.9.6
+Homepage: http://www.calculix.de
+#Vcs-Git: git://anonscm.debian.org/collab-maint/calculix-cgx.git
+#Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/calculix-cgx.git;a=summary
+
+Package: calculix-cgx
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: CalculiX GraphiX is the graphical interface for Calculix CrunchiX
+ CalculiX Finite Element Models can be build, calculated and
+ post-processed. The pre- and post-processor is an 
+ interactive 3D-tool using the openGL API.
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d02a3aa
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,43 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: calculix-cgx
+Source: http://www.calculix.de
+
+Files: *
+Copyright: 2015 Klaus Wittig <klaus.wittig at calculix.de>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+Files: debian/*
+Copyright: 2015 Wolfgang Fuetterer <debian at wlf-online.de>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..bda4248
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+CHANGES
+README
diff --git a/debian/patches/0001-Debian-Build-Patch-to-build-with-freeglut-and-libsnl.patch b/debian/patches/0001-Debian-Build-Patch-to-build-with-freeglut-and-libsnl.patch
new file mode 100644
index 0000000..8218acf
--- /dev/null
+++ b/debian/patches/0001-Debian-Build-Patch-to-build-with-freeglut-and-libsnl.patch
@@ -0,0 +1,84 @@
+From: Wolfgang Fuetterer <debian at wlf-online.de>
+Date: Thu, 26 Mar 2015 08:38:03 +0100
+Subject: Debian Build Patch to build with freeglut and libsnl from debian
+ repository
+
+---
+ src/Makefile | 54 +++++-------------------------------------------------
+ 1 file changed, 5 insertions(+), 49 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 78055f5..26c3a27 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -1,20 +1,12 @@
+-CFLAGS = -O3 -Wall \
++CFLAGS += -O3 -Wall \
+   -I./ \
+   -I/usr/include \
+   -I/usr/include/GL \
+-  -I../../libSNL/src \
+-  -I../../glut-3.5/src \
+-  -I/usr/X11/include 
+ 
+-LFLAGS = \
+-  -L/usr/lib64 -lGL -lGLU \
+-  -L/usr/X11R6/lib64 -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
+-  -lm -lpthread -lrt
+-
+-
+-# on 32bit systems change lib64 to lib
+-# -lpthread is needed if mesaGL is using threading, otherwhise it is not needed
+-# -L/usr/X11/lib64 -lpthread -lX11 -lXext -lXi -lXmu -lXt -lSM -lICE \
++LFLAGS += \
++  -L/usr/lib64 -lGL -lGLU -lglut -lSNL\
++  -L/usr/X11R6/lib -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
++  -lm -lpthread
+ 
+ include Makefile.inc
+ 
+@@ -22,44 +14,8 @@ ULIB = \
+  userFunction.c
+ 
+ SUTIL = \
+- ../../glut-3.5/src/layerutil.c \
+- ../../glut-3.5/src/glut_dials.c \
+- ../../glut-3.5/src/glut_ext.c \
+- ../../glut-3.5/src/glut_mesa.c \
+- ../../glut-3.5/src/glut_menu.c \
+- ../../glut-3.5/src/glut_modifier.c \
+- ../../glut-3.5/src/glut_space.c \
+- ../../glut-3.5/src/glut_shapes.c \
+- ../../glut-3.5/src/glut_tablet.c \
+- ../../glut-3.5/src/glut_warp.c \
+- ../../glut-3.5/src/glut_8x13.c \
+- ../../glut-3.5/src/glut_9x15.c \
+- ../../glut-3.5/src/glut_hel10.c \
+- ../../glut-3.5/src/glut_hel18.c \
+- ../../glut-3.5/src/glut_hel12.c \
+- ../../glut-3.5/src/glut_tr10.c \
+- ../../glut-3.5/src/glut_tr24.c \
+- ../../glut-3.5/src/glut_bitmap.c \
+- ../../glut-3.5/src/glut_cursor.c \
+- ../../glut-3.5/src/glut_event.c \
+- ../../glut-3.5/src/glut_get.c \
+- ../../glut-3.5/src/glut_overlay.c \
+- ../../glut-3.5/src/glut_input.c \
+- ../../glut-3.5/src/glut_stroke.c \
+- ../../glut-3.5/src/glut_teapot.c \
+- ../../glut-3.5/src/glut_winmisc.c \
+- ../../glut-3.5/src/glut_fullscrn.c \
+- ../../glut-3.5/src/glut_cindex.c \
+- ../../glut-3.5/src/glut_roman.c \
+- ../../glut-3.5/src/glut_mroman.c \
+- ../../glut-3.5/src/glut_swidth.c \
+- ../../glut-3.5/src/glut_bwidth.c \
+- ../../glut-3.5/src/glut_win.c \
+- ../../glut-3.5/src/glut_init.c \
+- ../../glut-3.5/src/glut_util.c \
+  uselibSNL.cpp \
+  generateTet.cpp \
+- ../../libSNL/src/*.cpp
+ 
+ OLIB = $(SLIB:.c=.o)
+ OULIB = $(ULIB:.c=.o)
diff --git a/debian/patches/0001-Debian-Build.patch b/debian/patches/0001-Debian-Build.patch
new file mode 100644
index 0000000..8218acf
--- /dev/null
+++ b/debian/patches/0001-Debian-Build.patch
@@ -0,0 +1,84 @@
+From: Wolfgang Fuetterer <debian at wlf-online.de>
+Date: Thu, 26 Mar 2015 08:38:03 +0100
+Subject: Debian Build Patch to build with freeglut and libsnl from debian
+ repository
+
+---
+ src/Makefile | 54 +++++-------------------------------------------------
+ 1 file changed, 5 insertions(+), 49 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 78055f5..26c3a27 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -1,20 +1,12 @@
+-CFLAGS = -O3 -Wall \
++CFLAGS += -O3 -Wall \
+   -I./ \
+   -I/usr/include \
+   -I/usr/include/GL \
+-  -I../../libSNL/src \
+-  -I../../glut-3.5/src \
+-  -I/usr/X11/include 
+ 
+-LFLAGS = \
+-  -L/usr/lib64 -lGL -lGLU \
+-  -L/usr/X11R6/lib64 -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
+-  -lm -lpthread -lrt
+-
+-
+-# on 32bit systems change lib64 to lib
+-# -lpthread is needed if mesaGL is using threading, otherwhise it is not needed
+-# -L/usr/X11/lib64 -lpthread -lX11 -lXext -lXi -lXmu -lXt -lSM -lICE \
++LFLAGS += \
++  -L/usr/lib64 -lGL -lGLU -lglut -lSNL\
++  -L/usr/X11R6/lib -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
++  -lm -lpthread
+ 
+ include Makefile.inc
+ 
+@@ -22,44 +14,8 @@ ULIB = \
+  userFunction.c
+ 
+ SUTIL = \
+- ../../glut-3.5/src/layerutil.c \
+- ../../glut-3.5/src/glut_dials.c \
+- ../../glut-3.5/src/glut_ext.c \
+- ../../glut-3.5/src/glut_mesa.c \
+- ../../glut-3.5/src/glut_menu.c \
+- ../../glut-3.5/src/glut_modifier.c \
+- ../../glut-3.5/src/glut_space.c \
+- ../../glut-3.5/src/glut_shapes.c \
+- ../../glut-3.5/src/glut_tablet.c \
+- ../../glut-3.5/src/glut_warp.c \
+- ../../glut-3.5/src/glut_8x13.c \
+- ../../glut-3.5/src/glut_9x15.c \
+- ../../glut-3.5/src/glut_hel10.c \
+- ../../glut-3.5/src/glut_hel18.c \
+- ../../glut-3.5/src/glut_hel12.c \
+- ../../glut-3.5/src/glut_tr10.c \
+- ../../glut-3.5/src/glut_tr24.c \
+- ../../glut-3.5/src/glut_bitmap.c \
+- ../../glut-3.5/src/glut_cursor.c \
+- ../../glut-3.5/src/glut_event.c \
+- ../../glut-3.5/src/glut_get.c \
+- ../../glut-3.5/src/glut_overlay.c \
+- ../../glut-3.5/src/glut_input.c \
+- ../../glut-3.5/src/glut_stroke.c \
+- ../../glut-3.5/src/glut_teapot.c \
+- ../../glut-3.5/src/glut_winmisc.c \
+- ../../glut-3.5/src/glut_fullscrn.c \
+- ../../glut-3.5/src/glut_cindex.c \
+- ../../glut-3.5/src/glut_roman.c \
+- ../../glut-3.5/src/glut_mroman.c \
+- ../../glut-3.5/src/glut_swidth.c \
+- ../../glut-3.5/src/glut_bwidth.c \
+- ../../glut-3.5/src/glut_win.c \
+- ../../glut-3.5/src/glut_init.c \
+- ../../glut-3.5/src/glut_util.c \
+  uselibSNL.cpp \
+  generateTet.cpp \
+- ../../libSNL/src/*.cpp
+ 
+ OLIB = $(SLIB:.c=.o)
+ OULIB = $(ULIB:.c=.o)
diff --git a/debian/patches/0002-Using-freeglut-Using-standard-header-from-freeglut.patch b/debian/patches/0002-Using-freeglut-Using-standard-header-from-freeglut.patch
new file mode 100644
index 0000000..e3d3757
--- /dev/null
+++ b/debian/patches/0002-Using-freeglut-Using-standard-header-from-freeglut.patch
@@ -0,0 +1,21 @@
+From: Wolfgang Fuetterer <debian at wlf-online.de>
+Date: Thu, 26 Mar 2015 08:38:45 +0100
+Subject: Using freeglut Using standard header from freeglut
+
+---
+ src/extUtil.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/extUtil.h b/src/extUtil.h
+index 0f5165c..342c618 100644
+--- a/src/extUtil.h
++++ b/src/extUtil.h
+@@ -34,7 +34,7 @@ void printf_fflush(const char *fmt,...);
+ }
+   #endif
+ #else
+-  #include <GL/glut_cgx.h>
++  #include <GL/freeglut_std.h>
+ #endif
+ 
+ #define     PI          3.14159265358979323846264338327950288
diff --git a/debian/patches/0002-Using-freeglut.patch b/debian/patches/0002-Using-freeglut.patch
new file mode 100644
index 0000000..e3d3757
--- /dev/null
+++ b/debian/patches/0002-Using-freeglut.patch
@@ -0,0 +1,21 @@
+From: Wolfgang Fuetterer <debian at wlf-online.de>
+Date: Thu, 26 Mar 2015 08:38:45 +0100
+Subject: Using freeglut Using standard header from freeglut
+
+---
+ src/extUtil.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/extUtil.h b/src/extUtil.h
+index 0f5165c..342c618 100644
+--- a/src/extUtil.h
++++ b/src/extUtil.h
+@@ -34,7 +34,7 @@ void printf_fflush(const char *fmt,...);
+ }
+   #endif
+ #else
+-  #include <GL/glut_cgx.h>
++  #include <GL/freeglut_std.h>
+ #endif
+ 
+ #define     PI          3.14159265358979323846264338327950288
diff --git a/debian/patches/0003-No-format-arg-in-sprintf.patch b/debian/patches/0003-No-format-arg-in-sprintf.patch
new file mode 100644
index 0000000..d907ae3
--- /dev/null
+++ b/debian/patches/0003-No-format-arg-in-sprintf.patch
@@ -0,0 +1,31 @@
+From: Wolfgang Fuetterer <debian at wlf-online.de>
+Date: Thu, 26 Mar 2015 10:31:54 +0100
+Subject: No format arg in sprintf Adding format arguments to some sprintf
+ statements
+
+---
+ src/cgx.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/cgx.c b/src/cgx.c
+index dd9568b..06f8364 100644
+--- a/src/cgx.c
++++ b/src/cgx.c
+@@ -2036,7 +2036,7 @@ void ConfigureAndShowWindow_Sequence( void )
+     for(n=0; n<dsSequence.nds; n++)
+     {
+       i=dsSequence.ds[n];
+-      sprintf(lcase[lcase_animList].compName[n], lcase[i].compName[cur_entity]);
++      sprintf(lcase[lcase_animList].compName[n], "%s", lcase[i].compName[cur_entity]);
+ 
+       if (lcase[i].irtype == 3)
+       {
+@@ -2263,7 +2263,7 @@ void ConfigureAndShowWindow_Vector( void )
+   for(n=0; n<dsSequence.nds; n++)
+   {
+     i=dsSequence.ds[n];
+-    if(v_dim==4) sprintf(lcase[lcase_animList].compName[n], lcase[i].compName[cur_entity]);
++    if(v_dim==4) sprintf(lcase[lcase_animList].compName[n], "%s", lcase[i].compName[cur_entity]);
+     else 
+     {
+       if(v_dim==3) sprintf(lcase[lcase_animList].compName[n], "v(%s,%s,%s)", lcase[i].compName[entity_v[0]], lcase[i].compName[entity_v[1]], lcase[i].compName[entity_v[2]]);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bd94109
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+0001-Debian-Build.patch
+0002-Using-freeglut.patch
+0003-No-format-arg-in-sprintf.patch
diff --git a/debian/rules b/debian/rules
new file mode 100644
index 0000000..6e2303a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+DH_VERBOSE = 1
+
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+%:
+	dh $@ -Dsrc
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/calculix-cgx.git



More information about the debian-science-commits mailing list