source: trunk/dports/lang/mosml/Portfile

Last change on this file was 94857, checked in by mww@…, 5 years ago

mosml: add license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 94857 2012-07-01 20:52:51Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name              mosml
6version           2.01
7revision          2
8categories        lang devel ml
9platforms         darwin
10license           GPL-2+
11maintainers       rift.dk:cso
12description       Moscow ML is an implementation of Standard ML (SML)
13long_description  Moscow ML is a light-weight implementation of Standard ML\
14                  (SML), a strict functional language widely used in teaching\
15                  and research. Version 2.01 implements the full SML language,\
16                  including SML Modules, and much of the SML Basis Library.
17homepage          http://www.dina.dk/~sestoft/mosml.html
18master_sites      http://www.dina.kvl.dk/~sestoft/mosml
19distfiles         mos201src.tar.gz
20checksums         md5 74aaaf988201fe92a9dbfbcb1e646f70
21patchfiles        patch-src-Makefile.diff\
22                  patch-src-Makefile-inc.diff\
23                  patch-src-launch-Makefile.diff\
24                  patch-src-dynlibs.diff \
25                  patch-src-runtime-mosml.c.diff \
26                  patch-src-runtime-sys.c.diff
27
28worksrcdir        mosml
29
30post-patch {
31   reinplace  "s|LD=gcc|LD=${configure.cc}|"      ${worksrcpath}/src/Makefile.inc
32   reinplace  "s|CC=gcc|CC=${configure.cc}|"      ${worksrcpath}/src/Makefile.inc
33   reinplace  "s|CCP=|CPP=${configure.cpp}|"      ${worksrcpath}/src/Makefile.inc
34}
35
36configure.dir     ${worksrcpath}/src/config
37configure.cmd     ./autoconf
38configure.pre_args ${configure.cc}
39
40build.target      world
41build.pre_args    -Csrc DESTROOT=${prefix} ${build.target}
42
43destroot.pre_args -Csrc DESTROOT=${destroot}${prefix} ${destroot.target}
44post-destroot {
45   system "ln -sf ${prefix}/bin/camlrunm ${destroot}${prefix}/lib/mosml/camlrunm"
46}
47
Note: See TracBrowser for help on using the repository browser.