Ticket #13174: Portfile

File Portfile, 2.2 KB (added by lorenz.schori@…, 17 years ago)

Portfile with manually fixed HAVE_STAT64

Line 
1# $Id: Portfile 30200 2007-10-22 21:01:36Z jmpp@macports.org $
2
3PortSystem 1.0
4name            guile
5version         1.8.3
6revision        1
7categories      lang
8maintainers     mas@macports.org openmaintainer
9platforms       darwin
10
11description     GNU's Ubiquitous Intelligent Language for Extension (guile)
12long_description        \
13                Guile is an interpreter for the Scheme programming      \
14                language, packaged for use in a wide variety of         \
15                environments. Guile implements Scheme as described in   \
16                the Revised^5 Report on the Algorithmic Language Scheme \
17                (usually known as R5RS), providing clean and general    \
18                data and control structures.                            \
19                                                                        \
20                Guile goes beyond the rather austere language presented \
21                in R5RS, extending it with a module system, full access \
22                to POSIX system calls, networking support, multiple     \
23                threads, dynamic linking, a foreign function call       \
24                interface, powerful string processing, and many other   \
25                features needed for programming in the real world.
26
27#user_notes     You may need to set the environment variable            \
28#               DYLD_LIBRARY_PATH to ${prefix}/lib (or wherever \
29#               the guile libraries have been installed) if you want    \
30#               to load guile modules from an application linked with   \
31#               libguile.  This should only apply to developers using   \
32#               guile as an extension language.
33
34distname        guile-${version}
35homepage        http://www.gnu.org/software/guile/guile.html
36master_sites    ftp://ftp.gnu.org/pub/gnu/guile/
37
38checksums       md5 7fd016924e1bc3e273f4009a080942de
39
40# patchfiles    fix-64bit-problems.diff \
41#               fix-srfi-14-test.diff \
42#               add-osx-stackbase.diff \
43#               patch-slib.scm
44
45patchfiles no-dylib.diff
46
47depends_lib     port:readline port:gmp
48
49configure.args --enable-regex
50
51post-configure {
52        set configh [open "${worksrcpath}/config.h" "a"]
53        # puts $configh "#undef LTDL_DLOPEN_DEPLIBS"
54        # puts $configh "#define LTDL_SHLIB_EXT \".so\""
55        puts $configh "#undef HAVE_STAT64"
56        close $configh
57}
58
59platform darwin 6 {
60                depends_lib-append      port:dlcompat
61        }
62
63platform darwin 8 {
64                configure.compiler      gcc-4.0
65        }
66
67#post-destroot  {
68#                 file delete ${destroot}${prefix}/share/${name}/1.6/ice-9/and-let\*.scm
69#               }
70
71livecheck.check regex
72livecheck.url   "http://ftp.gnu.org/pub/gnu/guile/?C=N;O=D"
73livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"