gpc-10.5 stable port information

Package: gpc
Version: 3.4.5u2
Revision: 102
Distribution: 10.5
Architecture: i386
Description: GNU Pascal Compiler
License: GPL
Maintainer: Todai Fink Team
BuildDepends: bison, flex, sed (>= 4.1.4), help2man, gettext-tools, libgettext3-dev, libiconv-dev
Depends: libgettext3-shlibs, libiconv
Source: http://www.j10n.org/files/gpc345u2-sources.tar.gz
Source-MD5: 32a44fa45a917d7da679f219b134373b

PatchScript: <<
%p/bin/tar --no-same-owner --no-same-permissions -jxf packages/gpc-20051116.tar.bz2
%p/bin/tar --no-same-owner --no-same-permissions -jxf packages/gcc-core-3.4.5.tar.bz2
mv gpc-20051116/p gcc-3.4.5/gcc
rm -rf gpc-20051116
(cd gcc-3.4.5 && patch -p0 < gcc/p/diffs/gcc-3.4.5.diff) || exit $?
patch -p0 < packages/gpc345u2-patches.diff
<<
ConfigureParams: --enable-languages=pascal --enable-version-specific-runtime-libs --enable-threads=posix --infodir='${prefix}/share/info' --mandir='${prefix}/share/man' --libdir='${exec_prefix}/lib/%n' --libexecdir='${exec_prefix}/lib/%n'
CompileScript: <<
#! /bin/bash -ev
platform=%m-apple-darwin`uname -r|cut -d. -f1`

./gcc-3.4.5/configure %c --build=$platform --host=$platform --target=$platform
make STAGE1_CFLAGS="-g -DHAVE_DESIGNATED_INITIALIZERS=0" bootstrap
<<
InstallScript: <<
#! /bin/bash -ev
platform=%m-apple-darwin`uname -r|cut -d. -f1`

make install prefix=%i
/bin/rm -rf %i/bin/{binobj,cpp,gcc,gccbug,gcov,$platform-gcc*}
/bin/mv %i/doc %i/share
/bin/rm -f %i/lib/%n/{charset.alias,libiberty.a}
/bin/rm -rf %i/share/info/{cpp,cppinternals,gcc,gccint,gccinstall}.info
/bin/rm -rf %i/share/locale
/bin/rm -f %i/share/man/man1/{binobj,cpp,gcc,gcov,gpc-run}.1
/bin/rm -rf %i/share/man/man7
rmdir %i/include
mkdir -p %i/share/doc/%n
/bin/cp -R packages/docs/* %i/share/doc/%n
mv '%i/share/doc/%n/gpc-html/coding standards' '%i/share/doc/%n/coding_standards'
mv '%i/share/doc/%n/gpc-html/manual/gpc' '%i/share/doc/%n/manual'
rmdir '%i/share/doc/%n/gpc-html/manual' '%i/share/doc/%n/gpc-html'
<<
InfoDocs: gpc.info gpcs.info gpcs-de.info gpcs-es.info gpcs-hr.info
DescDetail: <<
The GNU Pascal Compiler (GPC) is, as the name says, the Pascal compiler
of the GNU family (http://www.gnu.org/software/gcc/). This means:
* GPC is a 32/64 bit compiler,
* does not have limits like the 64 kB or 640 kB limit known
from certain operating systems -- even on those systems --,
* runs on all operating systems supported by GNU C,
* can act as a native or as a cross compiler
between all supported systems,
* produces highly optimized code for all these systems,
* is Free Software (Open-Source Software)
according to the GNU General Public License,
* is compatible to other GNU languages and tools
such as GNU C and the GNU debugger.
<<
DescPort: <<
The compiler was built with a patched alpha snapshot of the GNU Pascal
Compiler front-end (gpc-20051116) and the FSF 3.4.5 release of the
GNU Compiler Collection back-end.
<<
DescPackaging: <<
How to make tarball:
# wget http://www.microbizz.nl/gpcXXX-sources.dmg
$ hdiutil attach gpcXXX-sources.dmg
$ cd /Volumes
$ tar zcf ~/gpcXXX-sources.tar.gz --exclude .Trashes --exclude .DS_Store gpcXXX-sources

TODO:
* fpsave
* docs
* gp
<<
Homepage: http://www.microbizz.nl/gpc.html