--- /dev/null
+Document: ctsim
+Title: CTSim
+Author: Kevin M. Rosenberg
+Abstract: This manual describes the theory
+ and use of CTSim - A Computed Tomography Simulator.
+Section: math
+
+Format: PDF
+Files: /usr/share/doc/ctsim/ctsim.pdf.gz
+
+Format: HTML
+Index: /usr/share/doc/ctsim/html/index.html
+Files: /usr/share/doc/ctsim/html/*.html
+
+
usr/share/doc/ctsim
usr/share/man
usr/share/man/man1
+usr/X11R6
+usr/X11R6/include
+usr/X11R6/include/X11
+usr/X11R6/include/X11/pixmaps
+
+
+
+++ /dev/null
-Document: ctsim
-Title: CTSim
-Author: Kevin M. Rosenberg
-Abstract: This manual describes the theory
- and use of CTSim - A Computed Tomography Simulator.
-Section: math
-
-Format: PDF
-Files: /usr/share/doc/ctsim/ctsim.pdf.gz
-
-Format: HTML
-Index: /usr/share/doc/ctsim/html/index.html
-Files: /usr/share/doc/ctsim/html/*.html
-
-
--- /dev/null
+?package(ctsim):needs="X11" section="Apps/Graphics"\
+ title="CtSim" icon="/usr/X11R6/include/X11/pixmaps/ctsim.xpm"\
+ command="/usr/bin/ctsim"\
+ hints="Computed Tomograpy Simulator"
--- /dev/null
+/* XPM */
+static char * logo_xpm[] = {
+"32 32 9 1",
+" c None",
+". c #FFFFFF",
+"+ c #E5E5E5",
+"@ c #CCCCCC",
+"# c #B2B2B2",
+"$ c #FFFF00",
+"% c #7F7F00",
+"& c #999999",
+"* c #7F7F7F",
+"...........++@@+@@++++..........",
+"........++++.......+++++........",
+".......+++.............+@+......",
+".....+++.................++.....",
+".........+................++....",
+"....#$+....................++...",
+"..+++$$$$@+++......+........++..",
+"..+.+$$$$$$$$$@@+............+..",
+".++..$$$$$$$$%$$$$$@+..+.....++.",
+".++.++$$$$$$$$$$$$$$$$$#@+....+.",
+"++....$$$$$$$$$%%$$$$$$$$$$$$@++",
+"++....$$$$$$$$%$$%%$$$$$$$$$$$$@",
+"++....@$%$$$%%$$$$$%$$$$$$$$$$$#",
+"+......$$$$$$$%$$%$$$$$%$$$$$$$&",
+"+......$$$$$%$%$$%$%$$$$$$$$$$$%",
+"@......@%$$$$$$%%$$$%$$$$$$$$$$$",
+"@......+$$$$%$$%%$$$$$$$$$$$$%$%",
+"+......+*$$$%$$$$%$%%$$$$$$$$$$%",
+"+.......@$$$$$$$$$$%$$$$$$$$$$$&",
+"++......+$$$$%$%%$$%$$$$$$$$$$$#",
+"++.......$$$$%$$$$%$$$%$$$$$$$$#",
+".+.......@$$$$$%$%$$$$$$$$$$$$%+",
+".++......+$$%$$$$$$$$$$$$$$$$$@.",
+".++......+$$$$$$$$%$$$$$$$$$$%+.",
+"..++......@$$$$$$$$$$$$$$$$$$#..",
+"...+......+$$$$$$$$$$$$$$$$$*+..",
+"...+++.....$$$$$$$$$$$$$$$$$@...",
+"....++.....$$$$$$$$$$$$$$$%+....",
+"......++...+$$$$$$$$$$$$$*@.....",
+".......+++..$$$$$$$$$$$%&.......",
+"........++++@$$$$$$$$%&+........",
+"..........++@&%*$%&#@+.........."};
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
-export DH_VERBOSE=1
+export DH_VERBOSE=0
# This is the debhelper compatibility version to use.
export DH_COMPAT=3
-pkg := ctsim
-prefix := debian/$(pkg)
-DESTDIR := `pwd`/$(prefix)
-SHAREDOCDIR := $(DESTDIR)/usr/share/doc/$(pkg)
-SHAREDATADIR := $(DESTDIR)/usr/share/$(pkg)/.
+pkg := ctsim
+pkg-help := ctsim-help
+pkg-doc := ctsim-doc
-INSTALL := install
+prefix := debian/$(pkg)
+prefix-help := debian/$(pkg-help)
+prefix-doc := debian/$(pkg-doc)
+
+DESTDIR := $(prefix)
+HELPDIR := $(prefix-help)/usr/share/ctsim
+DOCDIR := $(prefix-doc)/usr/share/doc/$(pkg-doc)
+
+INSTALL := install
INSTALLFLAGS := -g root -o root -m 0644
INSTALLDIRFLAGS := -d -g root -o root -m 0755
configure-stamp:
dh_testdir
# Add here commands to configure the package.
- ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(SHAREDATADIR)
+ ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(HELPDIR)
touch configure-stamp
dh_testroot
dh_clean -k
dh_installdirs
- # Add here commands to install the package into debian/ctsim.
+ # Below command also installs helpfile
${MAKE} install
- $(INSTALL) $(INSTALLFLAGS) $(shell echo docs/html/*) $(SHAREDOCDIR)/html
- ln -sf $(pkg)_contents.html $(SHAREDOCDIR)/html/index.html
- $(INSTALL) $(INSTALLFLAGS) docs/ctsim.pdf $(SHAREDOCDIR)
- GZIP=-9 gzip $(SHAREDOCDIR)/ctsim.pdf
+ $(INSTALL) $(INSTALLFLAGS) debian/ctsim.xpm $(prefix)/usr/X11R6/include/X11/pixmaps
+ $(INSTALL) $(INSTALLFLAGS) $(shell echo docs/html/*) $(DOCDIR)/html
+ ln -sf $(pkg)_contents.html $(DOCDIR)/html/index.html
+ $(INSTALL) $(INSTALLFLAGS) docs/ctsim.pdf $(DOCDIR)
+ GZIP=-9 gzip $(DOCDIR)/ctsim.pdf
# Build architecture-independent files here.
binary-indep: build install
# dh_installdebconf
dh_installdocs docs/html
dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh
-# dh_installmenu
+ dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam