milis/talimatname/genel/f/fpc3/talimat

36 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-01-20 20:47:16 +01:00
# Tanım: The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
2017-05-08 04:38:47 +02:00
# URL: http://www.freepascal.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
2018-01-20 20:47:16 +01:00
# Gerekler: fpc
# Grup: geliştirme
2017-05-08 04:38:47 +02:00
2017-10-28 14:10:23 +02:00
isim=fpc3
2018-01-20 20:47:16 +01:00
surum=3.0.4
2017-10-28 14:10:23 +02:00
devir=1
2018-01-20 20:47:16 +01:00
_gdbsurum=7.10
kaynak=(ftp://ftp.freepascal.org/pub/fpc/dist/3.0.4/source/fpcbuild-3.0.4.tar.gz
https://ftp.gnu.org/gnu/gdb/gdb-${_gdbsurum}.tar.xz)
2017-05-08 04:38:47 +02:00
2018-01-20 20:47:16 +01:00
derle() {
cd "$SRC"/fpcbuild-$surum
export GDBLIBDIR="$SRC"/gdb-${_gdbver}/gdb
export LIBGDBFILE=$GDBLIBDIR/libgdb.a
pushd fpcsrc/compiler
fpcmake -Tall
popd
make build NOGDB=1
cd "$SRC"/fpcbuild-$surum
export HOME="$SRC"
make -j1 PREFIX="$PKG"/usr install
export PATH="$PKG"/usr/bin:$PATH
install -Dm0644 fpcsrc/rtl/COPYING.FPC "$PKG"/usr/share/licenses/${isim}/COPYING.FPC
[ "$CARCH" = "i686" ] && ln -s /usr/lib/fpc/${surum}/ppc386 "$PKG"/usr/bin/
[ "$CARCH" = "x86_64" ] && ln -s /usr/lib/fpc/${surum}/ppcx64 "$PKG"/usr/bin/
mkdir -p "$PKG"/etc
"$PKG"/usr/lib/fpc/${surum}/samplecfg "$PKG"/usr/lib/fpc/${surum} "$PKG"/etc
# use -fPIC by default
echo -e "#ifdef cpux86_64\n# for x86_64 use -fPIC by default\n-Cg\n#endif" >> "$PKG/etc/fpc.cfg"
mv "$PKG"/usr/man "$PKG"/usr/share/
find "$PKG"/etc/ -type f -exec sed -i "s|"$PKG"||g" {} \;
2017-05-08 04:38:47 +02:00
}