Skip to content
Permalink
Browse files

Fix for gcc 4.0.

Bug:            https://trac.macports.org/ticket/9007
Submitted by:   dominik@acm.org
Reviewed by:
Approved by:
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@18676 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
pguyot committed Jul 22, 2006
1 parent fd5f405 commit f9e0663ea9fa7397f66d02b49e614f5507b4b1ea
Showing with 29 additions and 6 deletions.
  1. +7 −6 graphics/xfig/Portfile
  2. +22 −0 graphics/xfig/files/patch-u_fonts.h
@@ -1,9 +1,9 @@
# $Id: Portfile,v 1.10 2005/09/04 15:17:49 pguyot Exp $
# $Id: Portfile,v 1.11 2006/07/22 04:30:31 pguyot Exp $

PortSystem 1.0
name xfig
version 3.2.4
revision 4
revision 5
categories graphics x11
maintainers pguyot@kallisys.net
description Facility for Interactive Generation of figures under X11
@@ -22,9 +22,11 @@ distfiles ${distname}.full${extract.suffix}
checksums ${distname}.full${extract.suffix} \
md5 1911fc0f733cb2f40336a8d0e82513de \
sha1 723bf10355a92c079be08cd7be18b75baaccfbdc \
rmd160 3cae7c8d3f2a89ef54fd4a4693e84fa7a9bacf44 \
xfig-3.2.4-Xaw3d-1.5E.udiff \
md5 d7585496ec07b42f03fce98b432ac22e \
sha1 8516f66602b11f55b0aa23049ca4c3af60ca7cca
sha1 8516f66602b11f55b0aa23049ca4c3af60ca7cca \
rmd160 0ddc33554a8f327e8367a45eddc7ec506838001c
depends_lib lib:libXaw3d:Xaw3d \
lib:libpng:libpng \
lib:libjpeg:jpeg
@@ -33,9 +35,8 @@ depends_run bin:gs:ghostscript \
use_xmkmf yes
patch_sites ftp://ftp.visi.com/users/hawkeyd/X/
patchfiles xfig-3.2.4-Xaw3d-1.5E.udiff \
patch-Imakefile
# xfig isn't written in valid C. Let's use gcc 3 as a workaround.
build.args CC=gcc-3.3
patch-Imakefile \
patch-u_fonts.h
post-patch {
reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/Imakefile
reinplace "s|__DESTROOT|${destroot}|g" ${worksrcpath}/Imakefile
@@ -0,0 +1,22 @@
--- u_fonts.h.orig 2006-07-22 12:51:10.000000000 +0900
+++ u_fonts.h 2006-07-22 12:51:45.000000000 +0900
@@ -32,9 +32,6 @@

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,
@@ -61,5 +58,9 @@
* sizes */
};

+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 */

0 comments on commit f9e0663

Please sign in to comment.
You can’t perform that action at this time.