xmakemol stable port information

Package: xmakemol
Version: 5.16
Revision: 1
Maintainer: None
Source: http://savannah.nongnu.org/download/%n/%n-%v.tar.gz
Source-MD5: e466a81bf407be6e7476f279af1968dc
Depends: lesstif-shlibs, mesa-libglw-lesstif-shlibs, imagemagick (>= 5.5.1-13), gifsicle | ungifsicle, libgl, x11, freeglut-shlibs
BuildDepends: lesstif, mesa-libglw-lesstif, x11-dev, freeglut, fink (>= 0.24.12-1)
PatchFile: %n.patch
PatchFile-MD5: 578fa5a786ee87348302bca1fbec401e
PatchScript: sed 's|@FINKPREFIX@|%p|g' <%{PatchFile} | patch -p1
ConfigureParams: --mandir=%p/share/man
InstallScript: <<
make install DESTDIR=%d
mkdir -p %i/share/doc/%n
cp -r examples %i/share/doc/%n
<<
DocFiles: AUTHORS COPYING NEWS PROBLEMS README ToDo.txt xmakemol.html
Description: View atomic and molecular systems
DescDetail: <<
XMakemol is a program used to view and manipulate atomic and molecular
data given in xyz form. XMakemol can produce output in PostScript (black
and white or colour) and in xpm format. XMakemol can also produce a series
of xpm files which can be translated into an animated gif file using the
bundled utility xmake_anim.pl
<<
DescPackaging: <<
Originally packaged by Matt Stephenson.
<<
License: GPL
Homepage: http://savannah.nongnu.org/projects/xmakemol

xmakemol stable port .patch

diff -Nurd -x'*~' xmakemol-5.16.orig/configure xmakemol-5.16/configure
--- xmakemol-5.16.orig/configure 2007-08-30 13:45:18.000000000 -0400
+++ xmakemol-5.16/configure 2007-10-15 00:18:43.000000000 -0400
@@ -6209,9 +6209,9 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else

- XWIDGETLIBS="$X_LIBS $X11_LIBS $XT_LIBS $X_LIBS $X_PRE_LIBS $XM_LIBS"
+ XWIDGETLIBS="$X_LIBS $X11_LIBS $XM_LIBS $XT_LIBS $X_LIBS $X_PRE_LIBS"
sim_cv_motif_glwidget=UNKNOWN
- for lib in GLwM GLw MesaGLwM MesaGLw; do
+ for lib in GLw; do
if test x"$sim_cv_motif_glwidget" = x"UNKNOWN"; then
LIBS="-l$lib $SAVELIBS $XWIDGETLIBS $GL_LIBS -lm"
cat >conftest.$ac_ext <<_ACEOF
diff -Nurd -x'*~' xmakemol-5.15.orig/file.c xmakemol-5.15/file.c
--- xmakemol-5.15.orig/file.c 2005-03-06 12:04:32.000000000 -0500
+++ xmakemol-5.15/file.c 2005-12-16 01:38:10.000000000 -0500
@@ -29,6 +29,7 @@
#include
#endif
#include /* aro - needed for isalnum() */
+#include
#include
#include
#include
@@ -96,6 +97,15 @@
/* directory that was accessed in any of the file selection dialogs */
static XmString current_directory = NULL;

+ void export_type_cb(Widget, XtPointer, XtPointer);
+ void file_type_cb(Widget, XtPointer, XtPointer);
+ void load_file_cb(Widget, XtPointer, XtPointer);
+ void save_file_cb(Widget, XtPointer, XtPointer);
+ void merge_file_cb(Widget, XtPointer, XtPointer);
+ void export_file_cb(Widget, XtPointer, XtPointer);
+ void print_file_cb(Widget, XtPointer, XtPointer);/* aro */
+ void print_file_select_cb(Widget, XtPointer, XtPointer);/* aro */
+ void cleanup_cb(Widget, XtPointer, XtPointer);/* aro */

void
file_cb(Widget widget, XtPointer client_data, XtPointer call_data)
@@ -112,15 +122,6 @@
Widgets p_dialog, print_printer, temp_widget;
XmStringTable printer_xmstrings. */

- void export_type_cb(Widget, XtPointer, XtPointer);
- void file_type_cb(Widget, XtPointer, XtPointer);
- void load_file_cb(Widget, XtPointer, XtPointer);
- void save_file_cb(Widget, XtPointer, XtPointer);
- void merge_file_cb(Widget, XtPointer, XtPointer);
- void export_file_cb(Widget, XtPointer, XtPointer);
- void print_file_cb(Widget, XtPointer, XtPointer);/* aro */
- void print_file_select_cb(Widget, XtPointer, XtPointer);/* aro */
- void cleanup_cb(Widget, XtPointer, XtPointer);/* aro */
int item_no=(int) client_data, i, j;/* aro */
char *printer_name, *line_ptr, line[1024], printer_strings[MAX_PRINTERS+1][80],
print_command_string[1024];/* aro */
diff -Nurd -x'*~' xmakemol-5.15.orig/xmake_anim.pl xmakemol-5.15/xmake_anim.pl
--- xmakemol-5.15.orig/xmake_anim.pl 2005-03-07 05:10:41.000000000 -0500
+++ xmakemol-5.15/xmake_anim.pl 2005-12-16 01:38:39.000000000 -0500
@@ -27,13 +27,13 @@

# Configure: specify where the binaries are

-$convert = "/usr/bin/convert";
+$convert = "@FINKPREFIX@/bin/convert";
if (! -e $convert)
{
die ("Cannot find convert program (part of ImageMagick). Please install it.\n");
}

-$gifsicle = "/usr/bin/gifsicle";
+$gifsicle = "@FINKPREFIX@/bin/gifsicle";
if (! -e $gifsicle)
{
print ("Cannot find gifsicle program, install it for better performance.\n");
diff -Nurd -x'*~' xmakemol-5.15.orig/xmakemol.1 xmakemol-5.15/xmakemol.1
--- xmakemol-5.15.orig/xmakemol.1 2005-01-28 09:34:54.000000000 -0500
+++ xmakemol-5.15/xmakemol.1 2005-12-16 01:39:03.000000000 -0500
@@ -47,7 +47,7 @@

.SH FILES
.LP
-\fI/usr/share/xmakemol/elements\fP
+\fI@FINKPREFIX@/share/xmakemol/elements\fP
List of element properties.

.SH ENVIRONMENT VARIABLES

xmakemol _unstable_ port .patch