the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: fpc-cross-arm-%type_pkg[platform]
Version: 2.6.0
Revision: 1
Type: platform (wince linux gba)
# tried, but not yet working or needed: Nintendo DS, PalmOS, Embedded, Symbian
# linux builds also on powerpc, but wince has a problem with calling postw32
Architecture: i386, x86_64
Depends: fpc-cross-common, arm-%type_pkg[platform]-binutils
Replaces: fpc-arm-cross
Recommends: fpc-doc
CustomMirror: <<
eur-AT: ftp://gd.tuwien.ac.at/languages/pascal/fpc/
eur-BE: ftp://ftp.freepascal.org/pub/fpc/
eur-HU: ftp://ftp.hu.freepascal.org/pub/fpc/
eur-IL: http://mirror.mirimar.net/freepascal/
eur-NL: ftp://freepascal.stack.nl/mirrors/fpc/
eur-NO: ftp://ftp.no.freepascal.org/pub/fpc/
eur-RU: ftp://ftp.chg.ru/pub/lang/pascal/fpc/
Primary: ftp://ftp.freepascal.org/pub/fpc/
<<
Source: mirror:custom:/dist/%v/source/fpc-%v.source.tar.gz
Source-MD5: 0edf0d6f52e1e3fd6ef6836431f4d13b
SourceDirectory: fpc-%v
BuildDepends: fink (>= 0.24.12)
PatchScript: <<
#!/bin/sh -ev
# the following is a start to fix packages for gba
# but still strutils from rtl/objpas is missing
# sed -i.bak 's|eventlog.inc|dummy/eventlog.inc|g' packages/fcl-base/src/eventlog.pp
# sed -i.bak 's|pipes.inc|dummy/pipes.inc|g' packages/fcl-process/src/pipes.pp
# sed -i.bak 's|process.inc|dummy/process.inc|g' packages/fcl-process/src/process.pp
<<
CompileScript: <<
#!/bin/sh -ev
# compile rtl and packages for arm
make rtl OPT="-ap -dFPC_ARMEL" CPU_TARGET=arm OS_TARGET=%type_pkg[platform] CROSSOPT="-Xe"
# packages do not compile on gba
if [ "%type_pkg[platform]" != "gba" ]; then
make packages OPT="-ap -dFPC_ARMEL" CPU_TARGET=arm OS_TARGET=%type_pkg[platform] CROSSOPT="-Xe"
fi
<<
InstallScript: <<
#!/bin/sh -ev
# install all units from the rtl and packages
make rtl_install OS_TARGET=%type_pkg[platform] CPU_TARGET=arm INSTALL_PREFIX=%i CROSSINSTALL=1
# packages do not compile on gba
if [ "%type_pkg[platform]" != "gba" ]; then
make packages_install OS_TARGET=%type_pkg[platform] CPU_TARGET=arm INSTALL_PREFIX=%i CROSSINSTALL=1
fi
<<
InfoTest: <<
TestScript: <<
#!/bin/sh -ev
# Build a trivial small program to test for fundamental flaws
cat >HelloWorld.pas <
begin
// writeln ('Hello World!');
end.
EOFTEST
fpc -Parm -T%type_pkg[platform] -Furtl/units/arm-%type_pkg[platform] -XParm-%type_pkg[platform]- HelloWorld.pas
<<
<<
License: GPL/LGPL
Description: FPC cross-compiler arm-%type_pkg[platform]
DescDetail: <<
Free Pascal (aka FPK Pascal) is a 32 and 64 bit professional Pascal
compiler. Supported processors: Intel x86, Amd64/x86 64, PowerPC,
Sparc, ARM.
Supported operating systems: nds, FreeBSD, Mac OS X/Darwin,
Mac OS classic, DOS, Win32, OS/2, Netware (libc and classic) and MorphOS.
The language syntax has excellent compatibility with TP 7.0 as well as
with most versions of Delphi (classes, rtti, exceptions, ansistrings,
widestrings, interfaces). A Mac Pascal compatibility mode is also provided
to assist users of previous Pascal compilers for the Mac.
Furthermore, Free Pascal supports function overloading, operator
overloading, global properties and other modern features.
http://wiki.freepascal.org/User_Changes_%v also lists changes in fpc.
<<
DescUsage: <<
This Pascal crosscompiler produces arm executables, which run
natively on arm-%type_pkg[platform] systems.
Get help with: fpc -h
Compile and link a Pascal file with:
fpc -T%type_pkg[platform] -Parm FILENAME
For more documentation about Free Pascal in HTML and pdf, install fpc-doc.
<<
DescPort: <<
Please report if it works for you.
known issues:
gba: packages fail to build
gba: linking the test program fails with
./rtl/units/arm-gba/prt0.o: In function `start_vector':
(.init+0x1fc): undefined reference to `fake_heap_end'
<<
Homepage: http://www.freepascal.org
Maintainer: Karl-Michael Schindler
<<