contrib/fpc/Pkgfile

42 lines
1.5 KiB
Plaintext
Raw Normal View History

2010-04-04 08:33:04 +02:00
# Description: A Free Pascal compiler.
# URL: http://www.freepascal.org/
# Packager: Danny Rawlins, monster dot romster at gmail dot com
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
name=fpc
2014-04-29 18:14:12 +02:00
version=2.6.4
2012-04-19 10:24:20 +02:00
release=1
2010-04-04 08:33:04 +02:00
source=(ftp://ftp.freepascal.org/pub/fpc/dist/$version/source/fpcbuild-$version.tar.gz
2014-09-12 10:58:51 +02:00
http://crux.ster.zone/distfiles/fpc/md5/2f440a0e40d134ed67db2fbf58c6e30a/x86_64-linux-ppcx64.bz2
2012-04-19 10:24:20 +02:00
ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/v7.2/libgdb_mingw702.zip)
2010-04-04 08:33:04 +02:00
build() {
2014-01-24 13:44:54 +01:00
bunzip2 x86_64-linux-ppcx64.bz2
chmod 0755 x86_64-linux-ppcx64
2010-04-04 08:33:04 +02:00
2014-01-24 13:44:54 +01:00
export LIBGDBDIR=$SRC/libgdb/win64/x86_64/
2010-04-04 08:33:04 +02:00
cd fpcbuild-$version/fpcsrc/
2014-01-24 13:44:54 +01:00
make -j 1 PP=$SRC/x86_64-linux-ppcx64 build
2010-04-04 08:33:04 +02:00
2014-01-24 13:44:54 +01:00
cp $SRC/fpcbuild-$version/fpcsrc/compiler/ppcx64 \
$SRC/fpcbuild-$version/fpcsrc/compiler/ppcx64.new
2010-04-04 08:33:04 +02:00
2014-01-24 13:44:54 +01:00
make -j 1 PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppcx64.new build
rm $SRC/fpcbuild-$version/fpcsrc/compiler/ppcx64.new
2010-04-04 08:33:04 +02:00
2014-01-24 13:44:54 +01:00
make -j 1 PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppcx64 rtl_clean
make -j 1 PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppcx64 rtl packages_all utils
2010-04-04 08:33:04 +02:00
2014-01-24 13:44:54 +01:00
set -- PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppcx64 \
2010-04-04 08:33:04 +02:00
FPCMAKE=$SRC/fpcbuild-$version/fpcsrc/utils/fpcm/fpcmake \
INSTALL_PREFIX=$PKG/usr \
INSTALL_DOCDIR=$PKG/usr/share/doc/fpcbuild \
INSTALL_MANDIR=$PKG/usr/share/man \
INSTALL_SOURCEDIR=$PKG/usr/lib/fpc/fpcbuild-$version/source
make -j 1 "$@" compiler_install rtl_install packages_install utils_install
2014-01-24 13:44:54 +01:00
ln -sf /usr/lib/fpc/$version/ppcx64 $PKG/usr/bin/ppcx64
2010-04-04 08:33:04 +02:00
}