Update of /cvsroot/fink/experimental/dmacks/finkinfo
In directory vz-cvs-3.sog:/tmp/cvs-serv21549

Modified Files:
        xfig.info xfig.patch 
Log Message:
new version, which fixes lots of compiler warnings; upgrade lib deps


Index: xfig.info
===================================================================
RCS file: /cvsroot/fink/experimental/dmacks/finkinfo/xfig.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- xfig.info   23 Sep 2012 19:13:37 -0000      1.1
+++ xfig.info   23 Sep 2012 19:14:28 -0000      1.2
@@ -1,29 +1,52 @@
 Package: xfig
-Version: 3.2.5
-Revision: 2013
+Version: 3.2.5b
+Revision: 1
 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
+BuildDepends: <<
+       fink-package-precedence,
+       freetype219,
+       libjpeg8,
+       libpng15,
+       x11-dev,
+       libxaw3dxft,
+       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: 5d8febda2c80b3bcb4af3318e16d84cf
 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
+# CC="clang -arch i386"
  make PREFIX=%p
+ fink-package-precedence --depfile-ext='\.d' .
 <<
 InstallScript: <<
 #!/bin/sh -ev
@@ -62,6 +85,10 @@
  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)
+
+ Use various fixes from debian's packaging.
 <<
 DescUsage: <<
  The environment variable XAPPLRESDIR must point to  

Index: xfig.patch
===================================================================
RCS file: /cvsroot/fink/experimental/dmacks/finkinfo/xfig.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- xfig.patch  23 Sep 2012 19:13:37 -0000      1.1
+++ xfig.patch  23 Sep 2012 19:14:28 -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,9 @@
 -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 some new features, including "Tips", which replace xfig's "help 
balloons"
- 
--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 @@
+ XCOMM Comment out the following definition for XAW3D if you don't to want to 
use
+ XCOMM the 3d Athena Widget Set
+@@ -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 +34,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 +64,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 +83,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 +122,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 +131,40 @@
        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_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
  


------------------------------------------------------------------------------
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