1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name fpc |
---|
7 | version 2.2.0 |
---|
8 | categories lang |
---|
9 | platforms darwin |
---|
10 | maintainers tds.net:jwbacon |
---|
11 | description Free Pascal |
---|
12 | long_description Free Pascal compiler compatible with Borland |
---|
13 | homepage http://www.freepascal.org/ |
---|
14 | |
---|
15 | distfiles fpc-${version}.source.tar.gz:fpcsrc \ |
---|
16 | fpcbins.tar.gz:fpcbin |
---|
17 | master_sites sourceforge:freepascal:fpcsrc \ |
---|
18 | http://personalpages.tds.net/~jwbacon/Ports/distfiles/:fpcbin |
---|
19 | checksums fpc-2.2.0.source.tar.gz md5 870965d5352ef23dccc1cf277e6edfee \ |
---|
20 | fpc-2.2.0.source.tar.gz sha1 1ea9e9a4b674b7c53e7fb65a6ea01dee60cb7db1 \ |
---|
21 | fpcbins.tar.gz md5 7a88ca3e6f61c02e017b188d54953648 \ |
---|
22 | fpcbins.tar.gz sha1 2d6bed54502d664b8931cc07e7e075cdd677e2f4 |
---|
23 | |
---|
24 | use_configure no |
---|
25 | worksrcdir fpc-2.2.0 |
---|
26 | |
---|
27 | if {! [string compare ${os.arch} powerpc]} { |
---|
28 | set binname ppcppc |
---|
29 | } else { |
---|
30 | set binname ppc386 |
---|
31 | } |
---|
32 | |
---|
33 | build.target build FPC=${workpath}/fpcbins/${binname} |
---|
34 | |
---|
35 | destroot { |
---|
36 | system "cd ${worksrcpath} && ${build.cmd} install FPC=${workpath}/fpcbins/${binname} INSTALL_PREFIX=${destroot}${prefix}" |
---|
37 | system "ln -s ${prefix}/lib/fpc/${version}/${binname} ${destroot}${prefix}/bin" |
---|
38 | file mkdir ${destroot}${prefix}/etc |
---|
39 | system "${destroot}${prefix}/lib/fpc/${version}/samplecfg ${prefix}/lib/fpc/${version} ${destroot}${prefix}/etc" |
---|
40 | } |
---|