forked from ports/contrib
fpc: new port
This commit is contained in:
parent
bb706e540a
commit
596bf67ae9
2122
fpc/.footprint
Normal file
2122
fpc/.footprint
Normal file
File diff suppressed because it is too large
Load Diff
3
fpc/.md5sum
Normal file
3
fpc/.md5sum
Normal file
@ -0,0 +1,3 @@
|
||||
af49e9a8bb632f361395add30ece8934 fpcbuild-2.4.0.tar.gz
|
||||
11debf667e4aca6265a22ce7e4c5fdf5 libgdb_mingw701.zip
|
||||
a30fe61d16dcb14109c0cddeb5c8fdc1 ppc386-i386-linux.bz2
|
41
fpc/Pkgfile
Normal file
41
fpc/Pkgfile
Normal file
@ -0,0 +1,41 @@
|
||||
# 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
|
||||
version=2.4.0
|
||||
release=1
|
||||
source=(ftp://ftp.freepascal.org/pub/fpc/dist/$version/source/fpcbuild-$version.tar.gz
|
||||
ftp://ftp.freepascal.org/pub/fpc/dist/$version/bootstrap/ppc386-i386-linux.bz2
|
||||
ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/v7.0.1/libgdb_mingw701.zip)
|
||||
|
||||
build() {
|
||||
bunzip2 ppc386-i386-linux.bz2
|
||||
chmod 0755 ppc386-i386-linux
|
||||
|
||||
export LIBGDBDIR=$SRC/libgdb/win32/i386/
|
||||
|
||||
cd fpcbuild-$version/fpcsrc/
|
||||
|
||||
make -j 1 PP=$SRC/ppc386-i386-linux build
|
||||
|
||||
cp $SRC/fpcbuild-$version/fpcsrc/compiler/ppc386 \
|
||||
$SRC/fpcbuild-$version/fpcsrc/compiler/ppc386.new
|
||||
|
||||
make -j 1 PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppc386.new build
|
||||
rm $SRC/fpcbuild-$version/fpcsrc/compiler/ppc386.new
|
||||
|
||||
make -j 1 PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppc386 rtl_clean
|
||||
make -j 1 PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppc386 rtl packages_all utils
|
||||
|
||||
set -- PP=$SRC/fpcbuild-$version/fpcsrc/compiler/ppc386 \
|
||||
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
|
||||
ln -sf /usr/lib/fpc/$version/ppc386 $PKG/usr/bin/ppc386
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user