Ticket #12896: Portfile

File Portfile, 1.4 KB (added by jbacon@…, 17 years ago)

New Portfile

Line 
1# $Id: $
2PortSystem      1.0
3name            fpc
4version         2.2.0
5categories      lang
6description     Free Pascal
7long_description        Free Pascal compiler compatible with Borland
8homepage        http://www.freepascal.org
9distfiles       fpc-${version}.source.tar.gz \
10                fpcbins.tar.gz
11master_sites    http://personalpages.tds.net/~jwbacon/Ports/distfiles/ \
12                sourceforge:freepascal
13maintainers     jwbacon@tds.net
14use_configure   no
15worksrcdir      fpc-2.2.0
16
17checksums       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
22platform i386 {
23build.target    build FPC=${workpath}/fpcbins/ppc386
24destroot {
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
31platform powerpc {
32build.target    build FPC=${workpath}/fpcbins/ppcppc
33destroot {
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
40post-destroot {
41        file mkdir ${destroot}${prefix}/etc
42        system "${destroot}${prefix}/lib/fpc/${version}/samplecfg ${prefix}/lib/fpc/${version} ${destroot}${prefix}/etc"
43}