source: trunk/dports/lang/mzscheme/Portfile

Last change on this file was 115019, checked in by ryandesign@…, 4 years ago

revbump ports depending on libpng following libpng 1.6.x update (#41842)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 115019 2013-12-22 09:29:46Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            mzscheme
6epoch           1
7version         4.1.5
8revision        6
9categories      lang
10platforms       darwin
11license         {BSD LGPL-2}
12maintainers     nomaintainer
13description     MzScheme is an implementation of the Scheme programming language
14long_description    ${description}
15
16homepage        http://www.plt-scheme.org/software/mzscheme/
17set subdir      ${version}/mz/
18master_sites \
19  http://download.plt-scheme.org/bundles/${subdir} \
20  http://www.eecs.northwestern.edu/plt-scheme/${subdir} \
21  http://www.cs.utah.edu/plt/download/${subdir} \
22  http://mirror.informatik.uni-tuebingen.de/mirror/plt/${subdir} \
23  ftp://infogroep.be/pub/plt/bundles/${subdir} \
24  http://gd.tuwien.ac.at/languages/scheme/plt/${subdir} \
25  http://russell.cs.bilgi.edu.tr/plt-bundles/${subdir}
26distfiles       mz-${version}-src-unix.tgz
27checksums           md5     cc8545ac0346776c089da63b9ef1d188 \
28                    sha1    54438d051d199bb713453362fa3bc75edef277e4 \
29                    rmd160  47362cd4fc0be7b119f60390e51e54865c5c92b8
30depends_lib     port:jpeg \
31                port:libpng \
32                port:libiconv
33
34worksrcdir      mz-${version}/src
35
36patchfiles patch-configure.diff patch-collects-setup-unixstyle-install.ss.diff patch-mzscheme-Makefile.in.diff
37patch.dir   ${workpath}/mz-${version}
38
39post-patch {
40  reinplace "s|collects|share/mzscheme|g" \
41    ${worksrcpath}/mzscheme/src/startup.ss \
42    ${worksrcpath}/mzscheme/src/startup.inc
43  reinplace "s|~/Library/PLT Scheme/|${prefix}/share/mzscheme/|g" \
44    ${worksrcpath}/mzscheme/src/file.c
45  reinplace "s|@FRAMEWORK_INSTALL_DIR@|${destroot}${frameworks_dir}|" \
46    ${worksrcpath}/mzscheme/Makefile.in
47  reinplace "s|-I\$(srcdir)|-iquote \$(srcdir)|g" \
48    ${worksrcpath}/foreign/gcc/libffi/include/Makefile.in \
49    ${worksrcpath}/foreign/gcc/libffi/Makefile.in \
50    ${worksrcpath}/foreign/Makefile.in \
51    ${worksrcpath}/Makefile.in \
52    ${worksrcpath}/mzscheme/dynsrc/Makefile.in \
53    ${worksrcpath}/mzscheme/gc/doc/Makefile.in \
54    ${worksrcpath}/mzscheme/gc/include/Makefile.in \
55    ${worksrcpath}/mzscheme/gc/Makefile.in \
56    ${worksrcpath}/mzscheme/gc2/Makefile.in \
57    ${worksrcpath}/mzscheme/Makefile.in \
58    ${worksrcpath}/mzscheme/sgc/Makefile.in \
59    ${worksrcpath}/mzscheme/src/Makefile.in   
60}
61
62configure.args  --enable-libfw
63
64post-destroot {
65  ln -s ${frameworks_dir}/PLT_MzScheme.framework/Versions/${version}/PLT_MzScheme \
66    ${destroot}${prefix}/lib/libmzscheme.${version}.dylib
67 
68  system "/usr/bin/install_name_tool -change PLT_MzScheme.framework/Versions/${version}_3m/PLT_MzScheme ${frameworks_dir}/PLT_MzScheme.framework/Versions/${version}_3m/PLT_MzScheme ${destroot}${prefix}/bin/mzscheme"
69}
70
71livecheck.type  regex
72livecheck.url   http://download.plt-scheme.org/mzscheme/
73livecheck.regex {<b>([0-9.]+)</b>}
Note: See TracBrowser for help on using the repository browser.