2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: Özgür pascal derleyicisi
|
2017-05-08 04:38:47 +02:00
|
|
|
|
# URL: http://www.freepascal.org/
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=fpc
|
|
|
|
|
surum=2.6.4
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(ftp://ftp.freepascal.org/pub/fpc/dist/$surum/source/fpcbuild-$surum.tar.gz
|
2017-05-08 04:38:47 +02:00
|
|
|
|
http://crux.ster.zone/downloads/fpc/md5/2f440a0e40d134ed67db2fbf58c6e30a/x86_64-linux-ppcx64.bz2
|
|
|
|
|
ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/v7.2/libgdb_mingw702.zip)
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-05-08 04:38:47 +02:00
|
|
|
|
bunzip2 x86_64-linux-ppcx64.bz2
|
|
|
|
|
chmod 0755 x86_64-linux-ppcx64
|
|
|
|
|
|
|
|
|
|
export LIBGDBDIR=$SRC/libgdb/win64/x86_64/
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd fpcbuild-$surum/fpcsrc/
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
|
|
|
|
make -j 1 PP=$SRC/x86_64-linux-ppcx64 build
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cp $SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64 \
|
|
|
|
|
$SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64.new
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
make -j 1 PP=$SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64.new build
|
|
|
|
|
rm $SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64.new
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
make -j 1 PP=$SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64 rtl_clean
|
|
|
|
|
make -j 1 PP=$SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64 rtl packages_all utils
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
set -- PP=$SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64 \
|
|
|
|
|
FPCMAKE=$SRC/fpcbuild-$surum/fpcsrc/utils/fpcm/fpcmake \
|
2017-05-08 04:38:47 +02:00
|
|
|
|
INSTALL_PREFIX=$PKG/usr \
|
|
|
|
|
INSTALL_DOCDIR=$PKG/usr/share/doc/fpcbuild \
|
|
|
|
|
INSTALL_MANDIR=$PKG/usr/share/man \
|
2017-10-28 14:10:23 +02:00
|
|
|
|
INSTALL_SOURCEDIR=$PKG/usr/lib/fpc/fpcbuild-$surum/source
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
|
|
|
|
make -j 1 "$@" compiler_install rtl_install packages_install utils_install
|
2017-10-28 14:10:23 +02:00
|
|
|
|
ln -sf /usr/lib/fpc/$surum/ppcx64 $PKG/usr/bin/ppcx64
|
2017-05-08 04:38:47 +02:00
|
|
|
|
}
|