[76468] trunk/dports/math/xmfract

jmr at macports.org jmr at macports.org
Thu Feb 24 09:18:13 PST 2011


Revision: 76468
          http://trac.macports.org/changeset/76468
Author:   jmr at macports.org
Date:     2011-02-24 09:18:11 -0800 (Thu, 24 Feb 2011)
Log Message:
-----------
xmfract: fix build, improve config file handling, update homepage, add license

Modified Paths:
--------------
    trunk/dports/math/xmfract/Portfile

Added Paths:
-----------
    trunk/dports/math/xmfract/files/patch-src_window_size.c.diff
    trunk/dports/math/xmfract/files/patch-xmfract.ini.diff

Modified: trunk/dports/math/xmfract/Portfile
===================================================================
--- trunk/dports/math/xmfract/Portfile	2011-02-24 15:50:45 UTC (rev 76467)
+++ trunk/dports/math/xmfract/Portfile	2011-02-24 17:18:11 UTC (rev 76468)
@@ -7,24 +7,41 @@
 set release	1-4
 categories	math
 platforms	darwin
+license		GPL-2+
 maintainers	jmpp openmaintainer
 
 description	UNIX clone of the DOS baed Fractint
 long_description	X/Motif based UNIX clone of the DOS based Fractint program used in \
 			the analysis of various fractal figures, created by Darryl House.
 
-homepage	http://spanky.triumf.ca/www/fractint/getting.html
-master_sites	http://spanky.triumf.ca/pub/fractals/programs/unix/ \
-		http://spanky.fractint.org/pub/fractals/programs/unix/
+homepage	http://www.Nahee.com/spanky/www/fractint/getting.html
+master_sites	http://www.Nahee.com/spanky/pub/fractals/programs/unix/
 distfiles	${name}_${release}_tar.gz
 distname	${name}_${version}
 checksums	md5 59cf6bf04fcfdfea06b5f4d903e1152e
 
 depends_lib	lib:libXm:openmotif
 
-patchfiles	patch-all-Makefile.in.diff
+patchfiles	patch-all-Makefile.in.diff patch-src_window_size.c.diff \
+            patch-xmfract.ini.diff
+post-patch {
+    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/xmfract.ini
+}
 
+configure.args  --x-includes=${prefix}/include \
+                --x-libraries=${prefix}/lib \
+                --with-editres
+
 post-destroot {
 	     xinstall -m 644 -v -W ${worksrcpath} README Xmfract.ad xmfract.ini \
 	     ${destroot}${prefix}/share/${name}
+	     move ${destroot}${prefix}/share/xmfract/xmfract.ini \
+	          ${destroot}${prefix}/share/xmfract/xmfract.ini.default
 }
+
+post-activate {
+    if {![file exists ${prefix}/share/xmfract/xmfract.ini]} {
+        copy ${prefix}/share/xmfract/xmfract.ini.default \
+             ${prefix}/share/xmfract/xmfract.ini
+    }
+}

Added: trunk/dports/math/xmfract/files/patch-src_window_size.c.diff
===================================================================
--- trunk/dports/math/xmfract/files/patch-src_window_size.c.diff	                        (rev 0)
+++ trunk/dports/math/xmfract/files/patch-src_window_size.c.diff	2011-02-24 17:18:11 UTC (rev 76468)
@@ -0,0 +1,20 @@
+--- src/window_size.c.orig	1995-06-21 01:47:14.000000000 +1000
++++ src/window_size.c	2011-02-25 03:45:09.000000000 +1100
+@@ -28,8 +28,6 @@
+ /* static variables */
+ static Widget resize_main_window_shell = NULL;
+ static Widget resize_main_window_dialog = NULL;
+-static Widget explicit_x_size_scale = NULL;
+-static Widget explicit_y_size_scale = NULL;
+ 
+ /*ARGSUSED*/
+ void window_size_cb(
+@@ -489,7 +489,7 @@
+   int item_no;
+   char tempstr[4];
+ 
+-  sprintf((char *) &tempstr, "%d", (char *)client_data);
++  sprintf((char *) &tempstr, "%lu", (unsigned long)client_data);
+   item_no = atoi((char *) &tempstr);
+   changed = 0;
+ 

Added: trunk/dports/math/xmfract/files/patch-xmfract.ini.diff
===================================================================
--- trunk/dports/math/xmfract/files/patch-xmfract.ini.diff	                        (rev 0)
+++ trunk/dports/math/xmfract/files/patch-xmfract.ini.diff	2011-02-24 17:18:11 UTC (rev 76468)
@@ -0,0 +1,7 @@
+--- xmfract.ini.orig	1995-06-21 01:46:55.000000000 +1000
++++ xmfract.ini	2011-02-25 04:05:09.000000000 +1100
+@@ -1,3 +1,4 @@
++fractdir=@PREFIX@/share/xmfract/data
+ verbose=yes
+ overwrite=no
+ exitnoask=no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110224/f46a5dce/attachment.html>


More information about the macports-changes mailing list