# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name xfig version 3.2.5c categories graphics x11 license Permissive maintainers nomaintainer description Facility for Interactive Generation of figures under X11 long_description \ Xfig is a menu-driven tool that allows the user to draw and \ manipulate objects interactively in an X window. The \ resulting pictures can be saved, printed on PostScript \ printers or converted to a variety of other formats (e.g. to \ allow inclusion in LaTeX documents). homepage http://xfig.org/ platforms darwin master_sites sourceforge:mcj distname ${name}.${version} distfiles ${distname}.full${extract.suffix} checksums rmd160 e1c496dabd70520319f18bf1f591ecd910feff3c \ sha256 ea628f975b79ab175ab29220cc118274466497f6217f2989928317be2993a1f9 depends_lib port:Xaw3d \ port:xorg-libXi \ port:libpng \ port:jpeg \ port:zlib depends_run port:ghostscript \ port:transfig use_xmkmf yes xmkmf.args-append -DUseSeparateConfDir=NO -DBuildHtmlManPages=NO patchfiles patch-Imakefile.diff \ patch-fig.h.diff \ patch-f_util.c.diff \ patch-w_keyboard.c.diff \ patch-w_export.c.diff \ patch-w_print.c.diff \ patch-w_util.c.diff \ patch-main_c.diff post-extract { foreach d "${worksrcpath}/Doc ${worksrcpath}/Libraries" { fs-traverse x ${d} { if {[file isdirectory ${x}]} { file attributes ${x} -permissions 0755 } else { file attributes ${x} -permissions 0644 } } } } post-patch { reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/Imakefile reinplace "s|__DESTROOT|${destroot}|g" ${worksrcpath}/Imakefile } destroot.target install.all install.man post-destroot { set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} eval xinstall -m 644 -W ${worksrcpath} \ CHANGES \ Doc/TODO \ [glob ${worksrcpath}/Doc/FORMAT*] \ FIGAPPS \ README \ ${docdir} } # https://trac.macports.org/ticket/25935 if {[string match "*gcc-4.2" ${configure.compiler}]} { # Fix font selection bug when w_fontpanel.o is compiled with optimization by gcc 4.2 pre-build { system -W ${worksrcpath} "${build.cmd} CDEBUGFLAGS=-O0 w_fontpanel.o" } } livecheck.regex xfig.(\[0-9.a-z\]+).full${extract.suffix}