--- javamorph-0.0.20100201.orig/javamorph.desktop +++ javamorph-0.0.20100201/javamorph.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=0.0 +Name=JavaMorph +Exec=/usr/bin/javamorph +Terminal=false +Icon=/usr/share/pixmaps/JavaMorph.xpm +Type=Application +MimeType=application/x-javamorph +Categories=Graphics; +GenericName=JavaMorph +Comment=Merge two human-face-JPEGs! --- javamorph-0.0.20100201.orig/changelog +++ javamorph-0.0.20100201/changelog @@ -0,0 +1,15 @@ ++ UPSTREAM CHANGELOG 2009-01-11 claus.erhard.wimmer@googlemail.com +================================================================== + ++ Source proviced combined with the binary => Classes and Javadoc removed. ++ Paths adopted (for example Workdir in $HOME). ++ Number of Java Runtimes limited. ++ OPENJDK has a slower GUI (POINTERDRAG). ++ GCJ dosn't calculate very fast. ++ PDF viewer necessary to view the help file. + ++ UPSTREAM CHANGELOG 2010-02-02 claus.erhard.wimmer@googlemail.com +================================================================== + ++ COPYING file added and GPLv2 reference anchored. + --- javamorph-0.0.20100201.orig/MANIFEST.MF +++ javamorph-0.0.20100201/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: javamorph.CMain + --- javamorph-0.0.20100201.orig/Makefile +++ javamorph-0.0.20100201/Makefile @@ -0,0 +1,25 @@ +# JavaMorph - Film industry image merging program's MAKEFILE. + +JAVA = /usr/lib/jvm/default-java/bin/ +CONT = input javamorph/*.class mesh polygon JavaMorph.png + +install: + install -m 644 -D javamorph.jar ${DESTDIR}/usr/share/javamorph/javamorph.jar + install -m 644 -D JavaMorph.png ${DESTDIR}/usr/share/pixmaps/JavaMorph.png + install -m 644 -D JavaMorph.xpm ${DESTDIR}/usr/share/pixmaps/JavaMorph.xpm + install -m 755 -D help/javamorph ${DESTDIR}/usr/bin/javamorph + install -m 644 -D help/JavaMorph.pdf ${DESTDIR}/usr/share/doc/javamorph/JavaMorph.pdf + install -m 644 -D changelog ${DESTDIR}/usr/share/doc/javamorph/changelog.gz + install -m 644 -D javamorph.desktop ${DESTDIR}/usr/share/applications/javamorph.desktop + install -m 644 -D javamorph.1 ${DESTDIR}/usr/share/man/man1/javamorph.1 + +build: + ${JAVA}jar -cmf MANIFEST.MF javamorph.jar ${CONT} + +compile: + ${JAVA}javac -d . javamorph/*.java + +clean: + rm -fR javamorph/*.class + rm -f javamorph.jar + --- javamorph-0.0.20100201.orig/JavaMorph.xpm +++ javamorph-0.0.20100201/JavaMorph.xpm @@ -0,0 +1,38 @@ +/* XPM */ +static char * JavaMorph_xpm[] = { +"32 32 3 1", +" c #381AF1", +". c #FFF043", +"+ c #391BF1", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +"................................", +"................................", +"................................", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +"................................", +"................................", +"................................", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +" ... ... ", +"+ ... ... "}; --- javamorph-0.0.20100201.orig/javamorph.1 +++ javamorph-0.0.20100201/javamorph.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH "JAVAMORPH" "1" "January 9, 2010" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +javamorph \- Make a morphing film between two pictures of human faces (GUI). +.SH SYNOPSIS +.B javamorph +.SH DESCRIPTION +\fBjavamorph\fP merges its two input pictures to a film-like sequence of +bitmaps where the left picture morphs to the right one. Feel free to convert +the picture sequence into a MPEG stream by using tools like MENCODER! Morphing +is done by this program in a half automatic way, the user has to mark +characteristic regions by points. +.SH OPTIONS +This program doesn't have any command line options. +.SH SEE ALSO +\fBgimp\fP, \fBmplayer\fP, \fBjava\fP +.br +.SH FILES +Help: \fB/usr/share/doc/javamorph/JavaMorph.pdf\fP +.br +Workdir: \fB$HOME/JavaMorph/\fP +.SH AUTHOR +javamorph was written by Claus Wimmer . +.PP +This manual page was written by Claus Wimmer , +for the Debian project (and may be used by others). + --- javamorph-0.0.20100201.orig/help/javamorph +++ javamorph-0.0.20100201/help/javamorph @@ -0,0 +1,47 @@ +#!/bin/bash + +# Start JavaMorph - Morphing Program. + +# Contains all help files. +HELPDIR="/usr/share/doc/javamorph/" +# Tutorial PDF. +HELPFILE=${HELPDIR}JavaMorph.pdf.gz +# Pass DEBIAN specific help file locations to the JVM. +OPTS="-DHELPDIR=${HELPDIR} -DHELPFILE=${HELPFILE}" +# Location of the OPENJDK JVM. +J_OPEN="/usr/lib/jvm/default-java/jre/bin/java" +# Location of the GCJ JVM. +J_GCJ="/usr/lib/jvm/java-gcj/jre/bin/java" +# Choose the JVM if installed. +if test -a ${J_GCJ} +then + JAVA=${J_GCJ} + echo I take GCJ-1.5.0. +else + if test -a ${J_OPEN} + then + JAVA=${J_OPEN} + echo I take OPENJDK-6. + else + # Stop if no JVM is installed. + echo "ERROR: No Java VM found for JavaMorph!" + exit 1 + fi +fi +# Choose the helpviewer. +if test -a /usr/bin/evince +then + HELPVIEW=/usr/bin/evince +else + if test -a /usr/bin/okular + then + HELPVIEW=/usr/bin/okular + else + echo "WARNING: Help viewer not found!" + fi +fi +# Start the JavaMorph program. +${JAVA} ${OPTS} -DHELPVIEW=${HELPVIEW} -jar /usr/share/javamorph/javamorph.jar +# Say good bye. +echo "Open me again if I'm good or report bugs otherwise! Bye ..." + --- javamorph-0.0.20100201.orig/javamorph/CPopupMenuDecorator.java +++ javamorph-0.0.20100201/javamorph/CPopupMenuDecorator.java @@ -95,8 +95,10 @@ new JRadioButtonMenuItem("Edit polygon."); /** Edit configuration command. */ private JMenuItem m_edit_config = new JMenuItem("Edit Config ->"); + /** Open the help PDF viewer. */ + private JMenuItem m_help = new JMenuItem("Help?"); /** Show about box command. */ - private JMenuItem m_about = new JMenuItem("Help about?"); + private JMenuItem m_about = new JMenuItem("About?"); /** * Constructor. * @param parent The parent JComponent to draw the mouse symbol to. @@ -113,6 +115,7 @@ popup_menu.add(this.mesh_menu); popup_menu.add(this.polygon_menu); popup_menu.addSeparator(); + popup_menu.add(m_help); popup_menu.add(m_about); mesh_menu.add(m_add_mesh_points); mesh_menu.add(m_sub_mesh_points); @@ -143,6 +146,7 @@ m_sub_polygon_points.addActionListener(this); m_off_polygon_points.addActionListener(this); m_delete_polygon.addActionListener(this); + m_help.addActionListener(this); m_about.addActionListener(this); parent.addMouseListener(this); } @@ -226,10 +230,24 @@ if(m_edit_config == e.getSource()){ parent.getParent().showConfigDialog(); } + if(m_help == e.getSource()){ + try{ + String cmd = + System.getProperty("HELPVIEW") + + ' ' + + System.getProperty("HELPFILE"); + System.out.println("Try call " + cmd + ' '); + Runtime.getRuntime().exec(cmd); + }catch(Exception x){ + JOptionPane.showMessageDialog + (parent, "Helpfile missing. Download \"JavaMorph.pdf!\""); + System.out.println(x.getMessage()); + x.printStackTrace(); + } + } if(m_about == e.getSource()){ parent.getParent().showAboutDialog(); } - if(m_add_mesh_points == e.getSource()){ CConfig.edit_state = CConfig.EDIT_MESH_ADD; } --- javamorph-0.0.20100201.orig/javamorph/CMain.java +++ javamorph-0.0.20100201/javamorph/CMain.java @@ -109,7 +109,7 @@ /* Start program. */ CMain prog = new CMain(); /* Debug program info. */ - System.out.println("Main class = " +prog + '.'); + System.out.println("Main class = " + prog + '.'); } } /** --- javamorph-0.0.20100201.orig/javamorph/CAbout.java +++ javamorph-0.0.20100201/javamorph/CAbout.java @@ -99,10 +99,9 @@ g.setFont(new Font("Sans Serif", Font.BOLD, 10)); g.drawString("Home: " + CStrings.HOME, 20, 170); g.drawString - ("Work: " + "Home" + CStrings.SEP + CStrings.APPDIR, 20, 190); + ("Work: " + "$HOME" + CStrings.SEP + CStrings.APPDIR, 20, 190); g.drawString - ("Hint: Find a tutorial within the help subdir of the workdir." - , 20, 210); + ("Hint: Find a tutorial in " + CStrings.HELPDIR + "." , 20, 210); } /** * Satisfy the java API. --- javamorph-0.0.20100201.orig/javamorph/CStrings.java +++ javamorph-0.0.20100201/javamorph/CStrings.java @@ -44,7 +44,7 @@ /** Dir from which this application has been started. */ public static final String DIR = System.getProperty("user.dir"); /** Location of the .jar distribution file. */ - public static final String JAR = DIR + SEP + "JavaMorph_2009_01_19.jar"; + public static final String JAR = DIR + SEP + "JavaMorph_2010_02_01.jar"; /** Program name. */ public static final String PROG = "JavaMorph"; /** Program version. */ @@ -54,15 +54,13 @@ /** License description. */ public static final String LICENSE = "GPLv2"; /** Working directory name. */ - public static final String APPDIR = "Desktop" + SEP + PROG + SEP; + public static final String APPDIR = PROG + SEP; /** Working directory path. */ public static final String WORKDIR = HOME + APPDIR; /** Input directory path. */ public static final String INPUTDIR = HOME + APPDIR + "input" + SEP; /** Debug directory path. */ public static final String DEBUGDIR = HOME + APPDIR + "debug" + SEP; - /** Help directory path. */ - public static final String HELPDIR = HOME + APPDIR + "help" + SEP; /** Polygon data directory path. */ public static final String POLYGONDIR = HOME + APPDIR + "polygon" + SEP; /** Mesh data directory path. */ @@ -87,10 +85,8 @@ public static final String LEFT_DEBUG = DEBUGDIR + "left_debug.png"; /** Right clip matrix file name & path. */ public static final String RIGHT_DEBUG = DEBUGDIR + "right_debug.png"; - /** Copyright file name & path. */ - public static final String COPYING = HELPDIR + "COPYING"; - /** Help file name & path. */ - public static final String HELP = HELPDIR + "JavaMorph.pdf"; + /** Help directory path. */ + public static final String HELPDIR = System.getProperty("HELPDIR"); /** File to store the triangulation of the left mesh to. */ public static final String LEFT_TRI = DEBUGDIR + "t_left_triangles.png"; /** File to store the triangulation of the right mesh to. */ @@ -167,8 +163,6 @@ * sub directories of the working directory. */ public static void extractFiles(){ - copyFile("help/COPYING", COPYING); - copyFile("help/JavaMorph.pdf", HELP); copyFile("input/left.jpg", LEFT_INPUT); copyFile("input/right.jpg", RIGHT_INPUT); copyFile("mesh/left.msh", LEFT_MESH); --- javamorph-0.0.20100201.orig/debian/watch +++ javamorph-0.0.20100201/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://code.google.com/p/javamorph/downloads/list http://javamorph.googlecode.com/files/JavaMorph_(.*)\.jar + --- javamorph-0.0.20100201.orig/debian/changelog +++ javamorph-0.0.20100201/debian/changelog @@ -0,0 +1,81 @@ +javamorph (0.0.20100201-1.3) unstable; urgency=medium + + * Non-maintainer upload. + * Depend on default-jre and use the architecture-indepent default-java path + provided by default-jre-headless (closes: #692147). + + -- Michael Gilbert Tue, 27 Nov 2012 01:43:56 +0000 + +javamorph (0.0.20100201-1.2) unstable; urgency=medium + + * Non-maintainer upload. + * Support arch-specific openjdk paths in javamorph script (closes: #692147). + + -- Michael Gilbert Fri, 02 Nov 2012 21:34:01 +0000 + +javamorph (0.0.20100201-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "FTBFS: /bin/sh: 1: /usr/lib/jvm/java-6-openjdk/bin/javac: not found": + build-depend on default-jdk and set JAVA in Makefile accordingly. + (Closes: #642686) + + -- gregor herrmann Sat, 18 Feb 2012 13:50:35 +0100 + +javamorph (0.0.20100201-1) unstable; urgency=low + + [ Claus Wimmer ] + * COPYING file and License anchored within sources. + * Closes: #567383 (Pdf docu viewer made recommended). + * Closes: #567434 (File paths removed from control file's description). + + [ tony mancill ] + * debian/control: + - Add myself to Uploaders. + - Set Standards-Version to 3.8.4 (no changes necessary). + - Add sun-java6-jre as third ranked choice for JRE. + - Modify Description + + -- tony mancill Fri, 19 Feb 2010 08:30:19 -0800 + +javamorph (0.0.20090514-3) unstable; urgency=low + + * Encoding in desktop-file. + * Doc-Base entry. + + -- Claus Wimmer Sun, 24 Jan 2010 20:48:56 +0100 + +javamorph (0.0.20090514-2) unstable; urgency=low + + * Debian menu entry reordered. + * Version incremented because it was not correct in former revision. + * Closes: #564804 (uncomplete ITP). + * Closes: #565419 (improved ITP). + + -- Claus Wimmer Fri, 15 Jan 2010 19:14:15 +0100 + +javamorph (0.0.20090514-1) unstable; urgency=low + + * Desktop encoding info message unclear, UTF-8 intended. + * DOCBASE invalid, documentation moved to /usr/share/doc/javamorph instead. + * Source file moved back to the "javamorph" folder as provided by project. + * Starter shell bash script: extension ".bash" removed, also manfile.bash. + * PDF no longer copied into $HOME/JavaMorph/help/, popup menu entry added. + * Absolute compiler path defined and used in makefile. + * One of two JVMs required: GCJ or OPENJDK. + * ITP bug number obtained and inserted into changelog. + * Upstream changelog added. + + * Closes: #564804. + + -- Claus Wimmer Tue, 12 Jan 2010 01:35:56 +0100 + +javamorph (0.0.20090514-1) unstable; urgency=low + + * Initial release (Closes: #564804) + * Java project provided as executable JAR which extracts some content to + * the user's home directory. Source is included into the provided binary + * JAR archive and has been used as compilable source. + + -- Claus Wimmer Sat, 09 Jan 2010 21:18:16 +0100 + --- javamorph-0.0.20100201.orig/debian/javamorph.doc-base +++ javamorph-0.0.20100201/debian/javamorph.doc-base @@ -0,0 +1,9 @@ +Document: javamorph +Title: JavaMorph Manual +Author: Claus Wimmer +Abstract: User description of JavaMorph, picture morphing. +Section: Graphics + +Format: PDF +Files: /usr/share/doc/javamorph/JavaMorph.pdf.gz + --- javamorph-0.0.20100201.orig/debian/javamorph.menu +++ javamorph-0.0.20100201/debian/javamorph.menu @@ -0,0 +1,8 @@ +?package(javamorph):\ + needs="X11"\ + section="Applications/Graphics"\ + title="javamorph"\ + command="/usr/bin/javamorph"\ + hints="Merge two human-face pictures!"\ + icon="/usr/share/pixmaps/JavaMorph.xpm" + --- javamorph-0.0.20100201.orig/debian/compat +++ javamorph-0.0.20100201/debian/compat @@ -0,0 +1 @@ +7 --- javamorph-0.0.20100201.orig/debian/control +++ javamorph-0.0.20100201/debian/control @@ -0,0 +1,21 @@ +Source: javamorph +Section: graphics +Priority: optional +Maintainer: Claus Wimmer +Uploaders: tony mancill +Build-Depends: debhelper (>= 7), default-jdk +Standards-Version: 3.8.4 +Homepage: http://code.google.com/p/javamorph/ + +Package: javamorph +Architecture: all +Depends: ${misc:Depends}, default-jre, doc-base +Recommends: evince | okular +Description: Java morphing film-make program for pixel picture-input + Give two human-face pictures as inputs into the program. Then mark + important locations whithin both faces by pairs of corresponding points. + The program will create a short enumerated picture series in which the left + face moves (morphs) into the right one. You can then create a MPEG (see + mencoder) from the picture series. An animated GIF (see GIMP) is also + possible. + --- javamorph-0.0.20100201.orig/debian/README.Debian +++ javamorph-0.0.20100201/debian/README.Debian @@ -0,0 +1,10 @@ +javamorph for Debian +-------------------- + +- Use the openjdk java compiler & interpreter, because of license reasons. + Configuration done per user in $HOME. +- Workdir not under Desktop/JavaMorph but under $HOME/JavaMorph/. +- Binary and Doc under /usr/share/javamorph/ and /usr/share/javamoph/. +- Exec under /usr/bin/. + + -- Claus Wimmer Sat, 09 Jan 2010 21:18:16 +0100 --- javamorph-0.0.20100201.orig/debian/copyright +++ javamorph-0.0.20100201/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Claus Wimmer on +Sat, 09 Jan 2010 21:18:16 +0100. + +It was downloaded from http://code.google.com/p/javamorph/downloads/list + +Upstream Author: + + Claus Wimmer + +Copyright: + + + +License: + + Licensed under the GPL version 2, + see `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is: + + Copyright (C) 2010 Claus Wimmer + + and is licensed under the GPL version 3, + see `/usr/share/common-licenses/GPL-3'. + --- javamorph-0.0.20100201.orig/debian/rules +++ javamorph-0.0.20100201/debian/rules @@ -0,0 +1,73 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# 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 + $(MAKE) compile + $(MAKE) build + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/javamorph install + + +# Build architecture-independent files here. +binary-indep: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install + dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure +