blob: 9c5801f09c6d8e502b478b0c7b3432796d73ae3b (
plain)
1 # Description: A Free Pascal compiler.
2 # URL: http://www.freepascal.org/
3 # Packager: Danny Rawlins, monster dot romster at gmail dot com
4 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
5
6 name=fpc
7 version=2.4.0
8 release=1
9 source=(ftp://ftp.freepascal.org/pub/fpc/dist/$version/source/fpcbuild-$version.tar.gz
10 ftp://ftp.freepascal.org/pub/fpc/dist/$version/bootstrap/ppc386-i386-linux.bz2
11 ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/v7.0.1/libgdb_mingw701.zip)
12
13 build() {
14 bunzip2 ppc386-i386-linux.bz2
15 chmod 0755 ppc386-i386-linux
16
17 export LIBGDBDIR=$SRC/libgdb/win32/i386/
18
19 cd fpcbuild-$version/fpcsrc/
20
21 make -j 1 PP=$SRC/ppc386-i386-linux build
22
23 cp $SRC/fpcbuild-$version/fpcsrc/compiler/ppc386 \
24 $SRC/fpcbuild-$version/fpcsrc/compiler/ppc386.new
25
26 make -j 1 PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppc386.new build
27 rm $SRC/fpcbuild-$version/fpcsrc/compiler/ppc386.new
28
29 make -j 1 PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppc386 rtl_clean
30 make -j 1 PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppc386 rtl packages_all utils
31
32 set -- PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppc386 \
33 FPCMAKE=$SRC/fpcbuild-$version/fpcsrc/utils/fpcm/fpcmake \
34 INSTALL_PREFIX=$PKG/usr \
35 INSTALL_DOCDIR=$PKG/usr/share/doc/fpcbuild \
36 INSTALL_MANDIR=$PKG/usr/share/man \
37 INSTALL_SOURCEDIR=$PKG/usr/lib/fpc/fpcbuild-$version/source
38
39 make -j 1 "$@" compiler_install rtl_install packages_install utils_install
40 ln -sf /usr/lib/fpc/$version/ppc386 $PKG/usr/bin/ppc386
41 }
|