source: trunk/dports/lang/pfe/Portfile

Last change on this file was 139469, checked in by jmr@…, 2 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            pfe
6version         0.33.71
7revision        2
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
24# error: global register variables are not supported
25compiler.blacklist  *clang* *llvm-gcc-4.2
26
27depends_build   port:libtool
28depends_lib     port:ncurses
29
30# configure: error: cannot determine a size for long
31universal_variant       no
32
33post-configure {
34        global reldir
35        set reldir [string map {" " "_" "/" "_"} [exec uname -srm].d]
36        xinstall -m 755 ${prefix}/bin/glibtool ${worksrcpath}/${reldir}/pfe/libtool
37}
38
39destroot {
40        global reldir
41        xinstall -m 755 ${worksrcpath}/${reldir}/pfe/.libs/pfe ${destroot}${prefix}/bin
42        eval xinstall -m 644 [glob ${worksrcpath}/${reldir}/pfe/.libs/*.dylib] ${destroot}${prefix}/lib
43        xinstall -m 755 -d ${destroot}${prefix}/lib/pfe-fastest
44        eval xinstall -m 644 [glob ${worksrcpath}/${reldir}/pfe/.libs/*.so] ${destroot}${prefix}/lib/pfe-fastest
45        xinstall -m 644 ${worksrcpath}/doc/pfe.1 ${destroot}${prefix}/share/man/man1
46        xinstall -m 755 -d ${destroot}${prefix}/share/pfe
47        eval xinstall -m 644 [glob ${worksrcpath}/lib/*.4th] ${destroot}${prefix}/share/pfe
48        xinstall -m 644 ${worksrcpath}/lib/easy4th.f ${destroot}${prefix}/share/pfe
49}
50
51# Fix gcc Intel bug, apparently. See:
52# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11001
53# And:
54# http://factor-language.blogspot.com/2007/08/gcc-is-open-sores-software.html
55# The problem is only with -O1, which is pfe's built-in default.
56configure.optflags      -O2
57configure.args-append   --with-opt=[string map {"-O" ""} ${configure.optflags}]
Note: See TracBrowser for help on using the repository browser.