| 1 | # $Id: $ |
|---|
| 2 | PortSystem 1.0 |
|---|
| 3 | name fpc |
|---|
| 4 | version 2.2.0 |
|---|
| 5 | categories lang |
|---|
| 6 | description Free Pascal |
|---|
| 7 | long_description Free Pascal compiler compatible with Borland |
|---|
| 8 | homepage http://www.freepascal.org |
|---|
| 9 | distfiles fpc-${version}.source.tar.gz \ |
|---|
| 10 | fpcbins.tar.gz |
|---|
| 11 | master_sites http://personalpages.tds.net/~jwbacon/Ports/distfiles/ \ |
|---|
| 12 | sourceforge:freepascal |
|---|
| 13 | maintainers jwbacon@tds.net |
|---|
| 14 | use_configure no |
|---|
| 15 | worksrcdir fpc-2.2.0 |
|---|
| 16 | |
|---|
| 17 | checksums fpc-2.2.0.source.tar.gz md5 870965d5352ef23dccc1cf277e6edfee \ |
|---|
| 18 | fpc-2.2.0.source.tar.gz sha1 1ea9e9a4b674b7c53e7fb65a6ea01dee60cb7db1 \ |
|---|
| 19 | fpcbins.tar.gz md5 7a88ca3e6f61c02e017b188d54953648 \ |
|---|
| 20 | fpcbins.tar.gz sha1 2d6bed54502d664b8931cc07e7e075cdd677e2f4 |
|---|
| 21 | |
|---|
| 22 | platform i386 { |
|---|
| 23 | build.target build FPC=${workpath}/fpcbins/ppc386 |
|---|
| 24 | destroot { |
|---|
| 25 | cd ${worksrcpath} |
|---|
| 26 | system "${build.cmd} install FPC=${workpath}/fpcbins/ppc386 INSTALL_PREFIX=${destroot}${prefix}" |
|---|
| 27 | system "ln -s ${prefix}/lib/fpc/${version}/ppc386 ${destroot}${prefix}/bin" |
|---|
| 28 | } |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | platform powerpc { |
|---|
| 32 | build.target build FPC=${workpath}/fpcbins/ppcppc |
|---|
| 33 | destroot { |
|---|
| 34 | cd ${worksrcpath} |
|---|
| 35 | system "${build.cmd} install FPC=${workpath}/fpcbins/ppcppc INSTALL_PREFIX=${destroot}${prefix}" |
|---|
| 36 | system "ln -s ${prefix}/lib/fpc/${version}/ppcppc ${destroot}${prefix}/bin" |
|---|
| 37 | } |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | post-destroot { |
|---|
| 41 | file mkdir ${destroot}${prefix}/etc |
|---|
| 42 | system "${destroot}${prefix}/lib/fpc/${version}/samplecfg ${prefix}/lib/fpc/${version} ${destroot}${prefix}/etc" |
|---|
| 43 | } |
|---|