source: trunk/dports/lang/pfe/Portfile @ 97628

Last change on this file since 97628 was 97628, checked in by ciserlohn@…, 7 years ago

pfe: doesn't build with clang or llvm-gcc; use libtool from macports (fixes #36075)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 97628 2012-09-10 07:44:28Z ciserlohn@macports.org $
2
3PortSystem 1.0
4
5name            pfe
6version         0.33.71
7revision        1
8categories      lang
9license         LGPL-2
10maintainers     nomaintainer
11platforms       darwin
12description     Implementation of ANSI Forth
13long_description        The Forth-system is closely modeled along the new American National Standard for the programming language Forth. Every word of every word set mentioned in the dpANS-6 document of June 1993 has been implemented.  Additionally it is compatible to Forth-83.
14
15homepage        http://pfe.sourceforge.net/
16master_sites    sourceforge
17use_bzip2       yes
18
19checksums       sha1    2e61bbf550767793b20bffc544b625fc4e889f44 \
20                rmd160  5bfdc5561c281f5d506151ec17552b03e6a411ab
21
22configure.args  --with-sbr-static --without-testmodule
23
24compiler.blacklist  clang llvm-gcc
25
26depends_build   port:libtool
27depends_lib     port:ncurses
28
29# configure: error: cannot determine a size for long
30universal_variant       no
31
32post-configure {
33        global reldir
34        set reldir [string map {" " "_" "/" "_"} [exec uname -srm].d]
35        xinstall -m 755 ${prefix}/bin/glibtool ${worksrcpath}/${reldir}/pfe/libtool
36}
37
38destroot {
39        global reldir
40        xinstall -m 755 ${worksrcpath}/${reldir}/pfe/.libs/pfe ${destroot}${prefix}/bin
41        eval xinstall -m 644 [glob ${worksrcpath}/${reldir}/pfe/.libs/*.dylib] ${destroot}${prefix}/lib
42        xinstall -m 755 -d ${destroot}${prefix}/lib/pfe-fastest
43        eval xinstall -m 644 [glob ${worksrcpath}/${reldir}/pfe/.libs/*.so] ${destroot}${prefix}/lib/pfe-fastest
44        xinstall -m 644 ${worksrcpath}/doc/pfe.1 ${destroot}${prefix}/share/man/man1
45        xinstall -m 755 -d ${destroot}${prefix}/share/pfe
46        eval xinstall -m 644 [glob ${worksrcpath}/lib/*.4th] ${destroot}${prefix}/share/pfe
47        xinstall -m 644 ${worksrcpath}/lib/easy4th.f ${destroot}${prefix}/share/pfe
48}
49
50# Fix gcc Intel bug, apparently. See:
51# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11001
52# And:
53# http://factor-language.blogspot.com/2007/08/gcc-is-open-sores-software.html
54# The problem is only with -O1, which is pfe's built-in default.
55configure.optflags      -O2
56configure.args-append   --with-opt=[string map {"-O" ""} ${configure.optflags}]
Note: See TracBrowser for help on using the repository browser.