the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: xfig323
Version: 3.2.3d
Revision: 4
Distribution: 10.5, 10.6
BuildDepends: libjpeg, libpng3, libtiff, xaw3d-static, x11-dev, fink (>= 0.24.12), xmkmf (>= 1.0.2-3)
Depends: x11, app-defaults, x-ghostscript-fonts, transfig323 (>= 3.2.3d-4)
Conflicts: xfig
#Source: http://www.xfig.org/xfigdist/xfig.%v.full.tar.gz
Source: mirror:sourceforge:fink/direct_download/source/xfig.%v.full.tar.gz
Source-MD5: c6321efc1e2796e111b250c58de2f2e0
SourceDirectory: xfig.%v
PatchFile: %n.patch
PatchFile-MD5: fe38c7f227c3e63548d3b09b0a1cc9c6
PatchScript: <<
sed 's|@FINKPREFIX@|%p|g' < %{PatchFile} | patch -p1
<<
CompileScript: <<
#!/bin/sh -ev
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
xmkmf
make xfig PREFIX=%p CC=cc
<<
InstallScript: <<
#!/bin/sh -ev
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
make install PREFIX=%p DESTDIR=%d
make install.all PREFIX=%p DESTDIR=%d MANDIR=%p/share/man/man1 DOCDIR=%p/share/doc/xfig
mkdir -p %i/share/xfig/Examples
install -p -m644 Examples/*.* %i/share/xfig/Examples
mkdir -p %i/share/doc/xfig
install -p -m644 CHANGES FIGAPPS LATEX.AND.XFIG README %i/share/doc/xfig
rm -Rf %d/usr
rm -Rf %d/etc
<<
License: BSD
Description: Menu-driven tool to create graphical objects (old version)
DescPort: <<
We don't need xpm since it is already in XFree86 4.1. There is a
small problem with the makefile so one of the make targets is done by
hand in the compile script.
There have been reports that this package does not compile succesfully when
xtools is intalled rather than xfree86.
<<
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.
<<
DescUsage: <<
The environment variable XAPPLRESDIR must point to
/sw/etc/app-defaults when using this package. (This happens by default
if /sw/bin/init.* is sourced, thanks to the app-defaults package.) The
user can also specify "*customization: -color" in the .Xdefaults or
.Xresources file, to take advantage of the color support which was
compiled in.
<<
Homepage: http://www.xfig.org/
Maintainer: Dave Morrison
diff -cr xfig.3.2.3d/Imakefile xfig.3.2.3d.patched/Imakefile
*** xfig.3.2.3d/Imakefile Tue May 29 12:32:11 2001
--- xfig.3.2.3d.patched/Imakefile Mon Jul 16 07:11:26 2001
***************
*** 26,34 ****
XCOMM app-defaults resource files to go. You will have to use the environment
XCOMM variable XAPPLRESDIR to point to this directory.
! XCOMM BINDIR = /usr/bin/X11
! XCOMM MKDIRHIER = /bin/sh /usr/bin/X11/mkdirhier
! XCOMM XAPPLOADDIR = /home/user/xfig
XCOMM If don't want JPEG support, comment out the #define USEJPEG line
XCOMM Uncomment the #define for USEJPEG if you want to be able to import
--- 26,34 ----
XCOMM app-defaults resource files to go. You will have to use the environment
XCOMM variable XAPPLRESDIR to point to this directory.
! BINDIR = $(PREFIX)/bin
! MKDIRHIER = /bin/sh @FINKPREFIX@/lib/xmkmf/bin/mkdirhier
! XAPPLOADDIR = $(PREFIX)/etc/app-defaults
XCOMM If don't want JPEG support, comment out the #define USEJPEG line
XCOMM Uncomment the #define for USEJPEG if you want to be able to import
***************
*** 47,54 ****
#ifdef USEJPEG
#ifdef USEINSTALLEDJPEG
! JPEGLIBDIR = /usr/local/lib
! JPEGINCDIR = /usr/include/X11
#else
JPEGLIBDIR = ../jpeg
JPEGINCDIR = $(JPEGLIBDIR)
--- 47,54 ----
#ifdef USEJPEG
#ifdef USEINSTALLEDJPEG
! JPEGLIBDIR = $(PREFIX)/lib
! JPEGINCDIR = $(PREFIX)/include
#else
JPEGLIBDIR = ../jpeg
JPEGINCDIR = $(JPEGLIBDIR)
***************
*** 72,83 ****
XCOMM Change XPMLIBDIR if necessary to point to the xpm library (libXpm)
XCOMM Change XPMINC if necessary to point to the include file for xpm (xpm.h)
! XCOMM #define USEXPM
! XCOMM #define USEXPM_ICON
#ifdef USEXPM
! XPMLIBDIR = $(USRLIBDIR)
! XPMINC = -I/usr/include/X11
#endif
XCOMM Uncomment the following definiton if you want to use the small icons
--- 72,83 ----
XCOMM Change XPMLIBDIR if necessary to point to the xpm library (libXpm)
XCOMM Change XPMINC if necessary to point to the include file for xpm (xpm.h)
! #define USEXPM
! #define USEXPM_ICON
#ifdef USEXPM
! XPMLIBDIR = /usr/X11R6/lib
! XPMINC = -I/usr/X11R6/include/X11
#endif
XCOMM Uncomment the following definiton if you want to use the small icons
***************
*** 93,99 ****
#define XAW3D
#ifdef XAW3D
! XAW3DINC = -I/usr/include/X11/Xaw3d
DUSEXAW3D = -DXAW3D
XAWLIB = -lXaw3d
#endif
--- 93,99 ----
#define XAW3D
#ifdef XAW3D
! XAW3DINC = -I/usr/X11R6/include/X11/Xaw3d
DUSEXAW3D = -DXAW3D
XAWLIB = -lXaw3d
#endif
***************
*** 136,149 ****
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
! XCOMM XFIGLIBDIR = /usr/local/lib/xfig
XCOMM use this if you want the multi-key data base file in the standard X11 tree
! XFIGLIBDIR = $(LIBDIR)/xfig
XCOMM now you can configure where the documentation should be located
! XFIGDOCDIR = $(LIBDIR)/xfig
! XCOMM XFIGDOCDIR = /usr/share/doc/xfig-doc
XCOMM If your system doesn't have strstr undefine the following definition
XCOMM HAVE_NO_NOSTRSTR = -DNOSTRSTR
--- 136,149 ----
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
! XFIGLIBDIR = $(PREFIX)/share/xfig
XCOMM use this if you want the multi-key data base file in the standard X11 tree
! XCOMM XFIGLIBDIR = $(LIBDIR)/xfig
XCOMM now you can configure where the documentation should be located
! XCOMM XFIGDOCDIR = $(LIBDIR)/xfig
! XFIGDOCDIR = $(PREFIX)/share/doc/xfig
XCOMM If your system doesn't have strstr undefine the following definition
XCOMM HAVE_NO_NOSTRSTR = -DNOSTRSTR
diff -ur xfig.3.2.3d.bak/u_fonts.h xfig.3.2.3d/u_fonts.h
--- xfig.3.2.3d.bak/u_fonts.h 2000-01-03 10:09:39.000000000 -0800
+++ xfig.3.2.3d/u_fonts.h 2005-06-13 17:15:38.000000000 -0700
@@ -30,12 +30,6 @@
/* font number for the "nil" font (when user wants tiny text) */
#define NILL_FONT NUM_FONTS
-extern int psfontnum();
-extern int latexfontnum();
-extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[];
-extern struct _fstruct ps_fontinfo[];
-extern struct _fstruct latex_fontinfo[];
-
/* element of linked list for each font
The head of list is for the different font NAMES,
and the elements of this list are for each different
@@ -61,5 +55,13 @@
* sizes */
};
+
+extern int psfontnum();
+extern int latexfontnum();
+extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[];
+extern struct _fstruct ps_fontinfo[];
+extern struct _fstruct latex_fontinfo[];
+
+
int x_fontnum();
#endif /* U_FONTS_H */