Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/graphics
In directory vz-cvs-3.sog:/tmp/cvs-serv17480/stable/main/finkinfo/graphics

Modified Files:
        xfig.info xfig.patch 
Log Message:
new version with lots of build-fixes and such


Index: xfig.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/graphics/xfig.info,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- xfig.info   3 Sep 2012 09:19:23 -0000       1.4
+++ xfig.info   23 Sep 2012 22:02:59 -0000      1.5
@@ -1,29 +1,52 @@
 Package: xfig
-Version: 3.2.5
-Revision: 2013
-Distribution: 10.5, 10.6, 10.7
-BuildDepends: libjpeg (>= 6b-3), libpng3, libtiff, xaw3d (>= 1.5-11), x11-dev, 
fink (>= 0.24.12), xmkmf (>= 1.0.2-3)
-Depends: x11, xaw3d-shlibs (>= 1.5-11), libjpeg-bin, app-defaults, 
x-ghostscript-fonts, transfig-graphicx (>= 3.2.5-1008) | transfig-epsfig (>= 
3.2.5-1008), libjpeg-shlibs, libpng3-shlibs, x11-shlibs
-Source: http://www.xfig.org/software/%n/%v/%n.%v.full.tar.gz
-Source-MD5: fae0c67a3951bd41c057deb63b6aa47a
+Version: 3.2.5b
+Revision: 1
+BuildDepends: <<
+       fink-package-precedence,
+       fontconfig2-dev (>= 2.8.0-4),
+       freetype219 (>= 2.3.12-1),
+       libjpeg8,
+       libpng15,
+       x11-dev,
+       libxaw3dxft,
+       xft2-dev (>= 2.1.14-1),
+       xmkmf (>= 1.0.2-3)
+<<
+Depends: <<
+       app-defaults,
+       libjpeg-bin,
+       libjpeg8-shlibs,
+       libpng15-shlibs,
+       libxaw3dxft-shlibs,
+       netpbm-bin,
+       transfig-graphicx (>= 3.2.5-1008) | transfig-epsfig (>= 3.2.5-1008),
+       x-ghostscript-fonts,
+       x11,
+       x11-shlibs
+<<
+#Source: http://www.xfig.org/software/%n/%v/%n.%v.full.tar.gz
+Source: mirror:debian:pool/main/x/%n/%n_3.2.5.b.orig.tar.gz
+Source-MD5: d466efd7a293df39262a6ee0083f3197
 SourceDirectory: %n.%v
+Source2: mirror:debian:pool/main/x/%n/%n_3.2.5.b-3.debian.tar.gz
+Source2-MD5: 78667dff343cd1e17dd424eb0ab1d27a
 PatchFile: %n.patch
-PatchFile-MD5: 132f1ab681b4ef8985f0eee0d6ac2a26
+PatchFile-MD5: 3708243117e77203c07ca90c262c1e88
 PatchScript: <<
- rm -f Libraries/*/*.bak
  sed 's|@FINKPREFIX@|%p|g' < %{PatchFile} | patch -p1
- chmod 644 CHANGES FIGAPPS LATEX.AND.XFIG README
- perl -pi -e 's|XCOMM CC = /opt/SUNWspro/bin/cc|CC = cc|' Imakefile
- perl -pi -e 's|-lpng|%p/lib/libpng.dylib|' Imakefile
- perl -pi -e 's|void main|int main|' main.c
+ patch -p1 < ../debian/patches/35_CVE-2010-4262.patch
+ patch -p1 < ../debian/patches/36_libpng15.patch
+ patch -p1 < ../debian/patches/38_formatstring.patch
 <<
 CompileScript: <<
 #!/bin/sh -ev
  export PATH=%p/lib/xmkmf/bin:$PATH 
  export IMAKEINCLUDE=-I%p/lib/X11/config
  xmkmf
+ perl -pi -e 's/^(\s*CCOPTIONS\s*=)/\1 -MD /' Makefile
  make PREFIX=%p CDEBUGFLAGS=-O0 w_fontpanel.o
  make PREFIX=%p
+ fink-package-precedence --depfile-ext='\.d' .
 <<
 InstallScript: <<
 #!/bin/sh -ev
@@ -46,22 +69,32 @@
 License: BSD
 Description: Menu-driven tool to create graphical objects
 DescPort: <<
- There have been reports that this package does not compile succesfully when
- xtools is intalled rather than xfree86.
-
  Patched an 'install' command to fix installation of filenames
  beginning with hyphens (may not be needed in future upstream
  releases) and an internal system(gunzip) to be able to read the
  installed files.
+ ^-- not sure if 3.2.5b still needs this (dmacks)
 
  Thanks to Martin Costabel for devising a fix for the 10.6 bug reported
  at http://www.mail-archive.com/[email protected]/msg31785.html
+
+ Fix return-types for a bunch of Xt callback functions (thanks Snaggle
+ and MacPorts!)--became error under xcode4.5, was warning with older
+ compilers. DMacks isn't sure fix is "correct", since their uses are
+ documented to be (void)func not (XtSomething)func{return(0)}, but it
+ builds and doesn't crash...
 <<
 DescPackaging: <<
  XFIGLIBDIR was set to %p/share/xfig.  Looks in /etc/printcap
  for printer descriptions, which may not be correct for darwin or OS X.
  Also, "make install" creates some empty directories in the /usr and /etc
  trees so we remove them. 
+
+ Hack required -I for our xaw3d (xmkmf doesn't read xaw3d.pc), and also
+ set a flag to declare xaw3d version/compatibility
+
+ Use various fixes from debian's packaging. DMacks only cherry-picked
+ the critical ones, not sure others are needed or useful.
 <<
 DescUsage: <<
  The environment variable XAPPLRESDIR must point to  

Index: xfig.patch
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/graphics/xfig.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- xfig.patch  17 Jul 2008 03:56:51 -0000      1.1
+++ xfig.patch  23 Sep 2012 22:02:59 -0000      1.2
@@ -1,11 +1,11 @@
-diff -ruN xfig.3.2.5/Imakefile xfig.3.2.5-patched/Imakefile
---- xfig.3.2.5/Imakefile       2006-10-10 16:19:22.000000000 -0700
-+++ xfig.3.2.5-patched/Imakefile       2007-05-11 17:36:09.000000000 -0700
+diff -Nurd -x'*~' xfig.3.2.5b.orig/Imakefile xfig.3.2.5b/Imakefile
+--- xfig.3.2.5b.orig/Imakefile 2009-03-30 11:53:05.000000000 -0400
++++ xfig.3.2.5b/Imakefile      2012-09-23 15:08:52.000000000 -0400
 @@ -30,9 +30,9 @@
  XCOMM Also, you may have to uncomment and redefine MKDIRHIER because "make" 
looks
  XCOMM for it relative to the BINDIR variable.
  XCOMM
--BINDIR = /usr/bin
+-XCOMM BINDIR = /usr/bin
 -XCOMM MKDIRHIER = /bin/sh /usr/bin/X11/mkdirhier -p
 -MKDIRHIER = mkdirhier 
 +BINDIR = $(PREFIX)/bin
@@ -21,23 +21,18 @@
 -XCOMM XAPPLOADDIR = /home/user/xfig
 +XAPPLOADDIR = $(PREFIX)/etc/app-defaults
  
- XCOMM Uncomment the following definition for XAW3D if you want to use
- XCOMM the 3d Athena Widget Set (highly recommended!)
-@@ -55,11 +55,11 @@
- XCOMM Uncomment the following if you have David Hawkey's Xaw3D version 1.5E 
which has
+ XCOMM Comment out the following definition for XAW3D if you don't to want to 
use
+ XCOMM the 3d Athena Widget Set
+@@ -60,7 +60,7 @@
  XCOMM some new features, including "Tips", which replace xfig's "help 
balloons"
+ XCOMM NOTE: This is the default for many X systems now.
  
 -XCOMM #define XAW3D1_5E
 +#define XAW3D1_5E
  
  #ifdef XAW3D1_5E
      DUSEXAW3D = -DXAW3D -DXAW3D1_5E
--    XAWLIB = -lXaw3d15e
-+    XAWLIB = -lXaw3d
- #else
-     XAW_SRC = w_menuentry.c SmeCascade.c SmeBSB.c SimpleMenu.c
-     XAW_OBJ = w_menuentry.o SmeCascade.o SmeBSB.o SimpleMenu.o
-@@ -72,8 +72,8 @@
+@@ -75,8 +75,8 @@
  XCOMM Redefine the following if your PNG library, zlib library and/or include 
file
  XCOMM are in different places
  
@@ -48,18 +43,26 @@
  ZLIBDIR = $(USRLIBDIR)
  
  XCOMM If don't want JPEG support, comment out the #define USEJPEG line
-@@ -93,8 +93,8 @@
+@@ -95,13 +95,13 @@
+ #define USEINSTALLEDJPEG
  
  #ifdef USEJPEG
- #ifdef USEINSTALLEDJPEG
--JPEGLIBDIR = /usr/local/lib
--JPEGINC = -I/usr/include/X11
-+JPEGLIBDIR = $(PREFIX)/lib
-+JPEGINC = -I$(PREFIX)/include
- #else
- JPEGLIBDIR = ../jpeg
- JPEGINC = -I$(JPEGLIBDIR)
-@@ -116,8 +116,8 @@
+-    #ifdef USEINSTALLEDJPEG
+-      JPEGLIBDIR = /usr/local/lib
+-      JPEGINC = -I/usr/include/X11
+-    #else
++#ifdef USEINSTALLEDJPEG
++      JPEGLIBDIR = $(PREFIX)/lib
++      JPEGINC = -I$(PREFIX)/include
++#else
+       JPEGLIBDIR = ../jpeg
+       JPEGINC = -I$(JPEGLIBDIR)
+-    #endif /* USEINSTALLEDJPEG */
++#endif /* USEINSTALLEDJPEG */
+ #endif /* USEJPEG */
+ 
+ XCOMM Uncomment the #define for USEXPM if you want to use the XPM
+@@ -119,8 +119,8 @@
  #define USEXPM_ICON
  
  #ifdef USEXPM
@@ -70,7 +73,7 @@
  #endif
  
  XCOMM Uncomment the following definiton if you want to use the small icons
-@@ -163,14 +163,14 @@
+@@ -166,14 +166,14 @@
  XCOMM use (and change) the following if you want the multi-key data base file
  XCOMM somewhere other than the standard X11 library directory
  XCOMM be sure to comment out the second copy of XFIGLIBDIR if you use this one
@@ -89,10 +92,37 @@
  
  XCOMM MANDIR tells where the standard man pages should go (no need to change 
it
  XCOMM if you want the man pages installed in the standard place on your system
-diff -Nurd -x'*~' xfig.3.2.5-alpha5.orig/f_util.c xfig.3.2.5-alpha5/f_util.c
---- xfig.3.2.5-alpha5.orig/f_util.c    2004-01-06 14:46:08.000000000 -0500
-+++ xfig.3.2.5-alpha5/f_util.c 2005-10-26 02:17:42.000000000 -0400
-@@ -782,7 +782,7 @@
+@@ -221,7 +221,7 @@
+ 
+ XCOMM If you want a compiler other than "cc", define it here
+ 
+-XCOMM CC = /opt/SUNWspro/bin/cc
++CC = cc
+ 
+ XCOMM Shorten unnecessary dependencies:
+ XCOMM #define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) 
$(EXTRAXAWCLIENTLIBS) $(XLIB)
+@@ -278,7 +278,7 @@
+ DUSESMALLICONS = -DUSE_SMALL_ICONS
+ #endif /* USESMALLICONS */
+ 
+-PNGLIBS = -L$(PNGLIBDIR) -lpng -L$(ZLIBDIR) -lz
++PNGLIBS = -L$(PNGLIBDIR) @FINKPREFIX@/lib/libpng.dylib -L$(ZLIBDIR) -lz
+ 
+ #ifdef USEJPEG
+ DUSEJPEG = -DUSE_JPEG
+@@ -353,7 +353,7 @@
+ SRCS = $(XFIGSRC)
+ OBJS = $(XFIGOBJ)
+ 
+-EXTRA_INCLUDES = $(JPEGINC) $(PNGINC) $(XPMINC) -I.
++EXTRA_INCLUDES = -I. $(JPEGINC) $(PNGINC) -I$(PREFIX)/include/freetype2 
$(XPMINC)
+ DEPLIBS = XawClientDepLibs
+ 
+ LOCAL_LIBRARIES =     $(JPEGLIB)
+diff -Nurd -x'*~' xfig.3.2.5b.orig/f_util.c xfig.3.2.5b/f_util.c
+--- xfig.3.2.5b.orig/f_util.c  2009-03-30 11:52:18.000000000 -0400
++++ xfig.3.2.5b/f_util.c       2012-09-23 14:05:58.000000000 -0400
+@@ -781,7 +781,7 @@
      else strcpy(dirname, ".");
  
      if (access(dirname, W_OK) == 0) {  /* OK - the directory is writable */
@@ -101,7 +131,7 @@
        if (system(unc) != 0)
        file_msg("Couldn't uncompress the file: \"%s\"", unc);
        strcpy(name, plainname);
-@@ -793,7 +793,7 @@
+@@ -792,7 +792,7 @@
          sprintf(tmpfile, "%s%s", TMPDIR, c);
        else
          sprintf(tmpfile, "%s/%s", TMPDIR, plainname);
@@ -110,42 +140,129 @@
        if (system(unc) != 0)
          file_msg("Couldn't uncompress the file: \"%s\"", unc);
        file_msg ("Uncompressing file %s in %s because it is in a read-only 
directory",
---- xfig.3.2.5/fig.h   2006-02-24 12:15:16.000000000 -0800
-+++ xfig.3.2.5-patched/fig.h   2007-05-12 10:07:56.000000000 -0700
-@@ -383,6 +383,9 @@
+diff -Nurd -x'*~' xfig.3.2.5b.orig/fig.h xfig.3.2.5b/fig.h
+--- xfig.3.2.5b.orig/fig.h     2008-05-27 13:39:00.000000000 -0400
++++ xfig.3.2.5b/fig.h  2012-09-23 14:16:50.000000000 -0400
+@@ -374,6 +374,9 @@
  extern        long            random();
  extern        void            srandom(unsigned int);
  
 +#elif defined(__DARWIN__)
-+extern  void            srandom();
++#include <stdlib.h>
 +
- #elif !defined(__osf__) && !defined(__CYGWIN__) && !defined(linux)
+ #elif !defined(__osf__) && !defined(__CYGWIN__) && !defined(linux) && 
!defined(__FreeBSD__) && !defined(__GLIBC__)
  extern        void            srandom(int);
  
-diff -ruN xfig.3.2.5/w_keyboard.c xfig.3.2.5-patched/w_keyboard.c
---- xfig.3.2.5/w_keyboard.c    2004-11-09 13:10:22.000000000 -0800
-+++ xfig.3.2.5-patched/w_keyboard.c    2007-05-28 08:24:15.000000000 -0700
-@@ -37,6 +37,10 @@
+diff -Nurd -x'*~' xfig.3.2.5b.orig/main.c xfig.3.2.5b/main.c
+--- xfig.3.2.5b.orig/main.c    2009-03-30 11:52:18.000000000 -0400
++++ xfig.3.2.5b/main.c 2012-09-23 13:54:25.000000000 -0400
+@@ -629,7 +629,7 @@
+ int setup_visual (int *argc_p, char **argv, Arg *args);
+ void get_pointer_mapping (void);
+ 
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+     Widget        children[NCHILDREN];
+     XEvent        event;
+diff -Nurd -x'*~' xfig.3.2.5b.orig/w_export.c xfig.3.2.5b/w_export.c
+--- xfig.3.2.5b.orig/w_export.c        2007-09-19 15:32:30.000000000 -0400
++++ xfig.3.2.5b/w_export.c     2012-09-23 16:38:06.000000000 -0400
+@@ -1016,7 +1016,7 @@
+     /* set global state */
+     print_hpgl_pcl_switch = state;
+ 
+-    return;
++    return 0;
+ }
+ 
+ static XtCallbackProc
+@@ -1038,7 +1038,7 @@
+     /* set global state */
+     hpgl_specified_font = state;
+ 
+-    return;
++    return 0;
+ }
+ 
+ void create_export_panel(Widget w)
+diff -Nurd -x'*~' xfig.3.2.5b.orig/w_keyboard.c xfig.3.2.5b/w_keyboard.c
+--- xfig.3.2.5b.orig/w_keyboard.c      2008-05-20 15:38:18.000000000 -0400
++++ xfig.3.2.5b/w_keyboard.c   2012-09-23 14:43:32.000000000 -0400
+@@ -41,7 +41,7 @@
  #define REG_NOERROR REG_OKAY
  #endif
  
-+#ifndef REG_NOERROR
-+#define REG_NOERROR 0
-+#endif
-+
- Boolean keyboard_input_available = False;
- int keyboard_x;
- int keyboard_y;
-diff -ruN xfig.3.2.5/w_library.c xfig.3.2.5-patched/w_library.c
---- xfig.3.2.5/w_library.c     2006-04-03 09:27:30.000000000 -0700
-+++ xfig.3.2.5-patched/w_library.c     2007-05-28 10:11:06.000000000 -0700
-@@ -1029,8 +1029,8 @@
-     Widget         menu, entry;
- #ifndef XAW3D1_5E
-     Widget         submenu;
--    char           submenu_name[200];
- #endif /* XAW3D1_5E */
-+    char           submenu_name[200];
-     char           menu_name[200];
-     int                    i;
+-#if defined(__FreeBSD__) && !defined(REG_NOERROR)
++#if !defined(REG_NOERROR)
+ #define REG_NOERROR 0
+ #endif
+ 
+diff -Nurd -x'*~' xfig.3.2.5b.orig/w_print.c xfig.3.2.5b/w_print.c
+--- xfig.3.2.5b.orig/w_print.c 2009-04-20 12:26:14.000000000 -0400
++++ xfig.3.2.5b/w_print.c      2012-09-23 16:38:06.000000000 -0400
+@@ -1185,7 +1185,7 @@
+     /* which button */
+     which = (int) XawToggleGetCurrent(w);
+     if (which == 0)           /* no buttons on, in transition so return now */
+-      return;
++      return 0;
+     if (which == 2)           /* "blank" button, invert state */
+       state = !state;
+ 
+@@ -1193,7 +1193,7 @@
+     print_all_layers = state;
+     update_figure_size();
+ 
+-    return;
++    return 0;
+ }
+ 
+ /* when user toggles between printing all or only active layers */
+@@ -1216,6 +1216,7 @@
+     /* set global */
+     bound_active_layers = state;
+     update_figure_size();
++    return 0;
+ }
+ 
+ 
+diff -Nurd -x'*~' xfig.3.2.5b.orig/w_util.c xfig.3.2.5b/w_util.c
+--- xfig.3.2.5b.orig/w_util.c  2009-03-30 11:52:38.000000000 -0400
++++ xfig.3.2.5b/w_util.c       2012-09-23 16:38:06.000000000 -0400
+@@ -710,7 +710,7 @@
+     /* keep track of which one the user is pressing */
+     cur_spin = widget;
+ 
+-    return;
++    return 0;
+ }
+ 
+ static XtEventHandler
+@@ -718,7 +718,7 @@
+ {
+     XtRemoveTimeOut(auto_spinid);
+ 
+-    return;
++    return 0;
+ }
+ 
+ static        XtTimerCallbackProc
+@@ -729,7 +729,7 @@
+     /* call the proper spinup/down routine */
+     XtCallCallbacks(cur_spin, XtNcallback, 0);
  
+-    return;
++    return 0;
+ }
+ 
+ /***************************/
+@@ -1412,7 +1412,7 @@
+     }
+     SetValues(w);
+ 
+-    return;
++    return 0;
+ }
+ 
+ /* assemble main window title bar with xfig title and (base) file name */


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to