source: trunk/dports/lang/mosml/Portfile @ 87771

Last change on this file since 87771 was 87771, checked in by mww@…, 6 years ago

mosml: fix build on 10.7

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