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: fpc gdb
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=fpc3
|
|
|
|
|
surum=3.0.2
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(ftp://ftp.freepascal.org/pub/fpc/dist/$surum/source/fpcbuild-$surum.tar.gz)
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd "$SRC"/fpcbuild-$surum
|
2017-05-08 04:38:47 +02:00
|
|
|
|
pushd fpcsrc/compiler
|
|
|
|
|
fpcmake -Tall
|
|
|
|
|
popd
|
|
|
|
|
make build NOGDB=1
|
|
|
|
|
|
2017-05-08 05:36:54 +02:00
|
|
|
|
export HOME="$SRC"
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
|
|
|
|
make -j1 PREFIX="$PKG"/usr install
|
|
|
|
|
|
|
|
|
|
export PATH="$PKG"/usr/bin:$PATH
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -Dm0644 fpcsrc/rtl/COPYING.FPC "$PKG"/usr/share/licenses/${isim}/COPYING.FPC
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
ln -s /usr/lib/fpc/${surum}/ppcx64 "$PKG"/usr/bin/
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
|
|
|
|
mkdir -p "$PKG"/etc
|
2017-10-28 14:10:23 +02:00
|
|
|
|
"$PKG"/usr/lib/fpc/${surum}/samplecfg "$PKG"/usr/lib/fpc/${surum} "$PKG"/etc
|
2017-05-08 04:38:47 +02:00
|
|
|
|
|
|
|
|
|
# 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" {} \;
|
|
|
|
|
}
|