aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorribet2007-04-25 12:18:58 +0000
committerribet2007-04-25 12:18:58 +0000
commit81e7b1262f04721de98c4c960554354e00988bf5 (patch)
treec23c1bbbd1999195b6b18daf8e075ecfa40f5130
parentb4312b7c7a5ec9e886dd024b7c7796c23d019083 (diff)
downloadmtc-81e7b1262f04721de98c4c960554354e00988bf5.zip
mtc-81e7b1262f04721de98c4c960554354e00988bf5.tar.gz
mtc-81e7b1262f04721de98c4c960554354e00988bf5.tar.bz2
mtc-81e7b1262f04721de98c4c960554354e00988bf5.tar.xz
First packaging attempt, not yet working.
-rw-r--r--Makefile29
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control20
-rw-r--r--debian/copyright16
-rwxr-xr-xdebian/rules73
6 files changed, 144 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b892c14
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+BASE_SUBDIR=Math Math/Bezier Tk/Zinc SVG SVG/SVG2zinc MTools
+MTOOLS_SUBDIR=Adapters Anim GUI Comp SVG Transform Widget
+
+
+all:
+
+clean:
+ rm -f *~
+
+distclean: clean
+
+$(BASE_SUBDIR:%=install_%):
+ install -d ${DESTDIR}${PREFIX}/share/perl5/mtools/$(@:install_%=%)
+ install src/$(@:install_%=%)/*.pm ${DESTDIR}${PREFIX}/share/perl5/mtools/$(@:install_%=%)
+
+$(MTOOLS_SUBDIR:%=install_%):
+ install -d ${DESTDIR}${PREFIX}/share/perl5/mtools/MTools/$(@:install_%=%)
+ install src/MTools/$(@:install_%=%)/*.pm ${DESTDIR}${PREFIX}/share/perl5/mtools/MTools/$(@:install_%=%)
+
+install: all $(BASE_SUBDIR:%=install_%) $(MTOOLS_SUBDIR:%=install_%)
+ install -d ${DESTDIR}${PREFIX}/share/perl5/mtools/SVG/SVG2zinc/Backend
+ install src/SVG/SVG2zinc/Backend/*.pm.k ${DESTDIR}${PREFIX}/share/perl5/mtools/SVG/SVG2zinc/Backend
+ install -d ${DESTDIR}${PREFIX}/share/doc/mtools/examples
+ install exemples/*.pl exemples/*.pm ${DESTDIR}${PREFIX}/share/doc/mtools/examples
+ install -d ${DESTDIR}${PREFIX}/share/doc/mtools/examples/data
+ install exemples/data/*.svg exemples/data/*.png ${DESTDIR}${PREFIX}/share/doc/mtools/examples/data
+
+#emptycursor.mask
+#emptycursor.xbm
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..00b25cc
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+mtools (1.0-1) unstable; urgency=low
+
+ * Initial Debian release
+
+ -- Philippe Ribet <ribet@cena.fr> Thu, 24 Mar 2007 17:25:00 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0dea980
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,20 @@
+Source: mtools
+Priority: optional
+Maintainer: Philippe Ribet <ribet@cena.fr>
+Build-Depends: debhelper (>= 4.0.0), zinc-perl
+Standards-Version: 3.6.1
+Section: tools
+
+Package: mtools
+Section: x11
+Architecture: any
+Depends: ${misc:Depends}, zinc-perl
+Description: Library over zinc-perl for HMI design
+ MTools library is designed to make zinc easier.
+ MTools code can be mixed easily with zinc-perl code.
+ MTools services includes (partial list):
+ - SVG support
+ - animation capabilities
+ - FSM support
+ - behaviours (multiple selection, mover, inertial, focuser, writable, unoverlapping, simple gesture recognition)
+ - some standard widgets
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..722dafc
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU LGPL Libray General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+ This program 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 Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA,
+or refer to http://www.gnu.org/copyleft/lgpl.html
+
+Copyright Holder: CENA
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4ae3c13
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,73 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#
+# $Id$
+#
+
+package=mtools
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+ touch build-stamp
+ $(MAKE) DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+ $(MAKE) clean
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+# dh_installdocs README
+ dh_installexamples
+ dh_install --source=$(CURDIR)/debian/tmp
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+# dh_compress
+# dh_fixperms
+# dh_perl
+# dh_python
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure