# HG changeset patch # User Christopher Rogers # Date 1301370639 0 # Node ID 6408ba48363a0abb5d424c8bd8c7e841a4c89501 # Parent 9376616c10acd95e59809c42d06e76371899cb78 Add fpc-bootstrap, fpc, and fpc-src. This is freepascal compile. fpc-bootstrap is freepascal compiler to compile itself. fpc-src is need for lazarus ide. diff -r 9376616c10ac -r 6408ba48363a fpc-bootstrap/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fpc-bootstrap/receipt Tue Mar 29 03:50:39 2011 +0000 @@ -0,0 +1,24 @@ +# SliTaz package receipt. + +PACKAGE="fpc-bootstrap" +VERSION="2.4.2" +CATEGORY="development" +SHORT_DESC="bootstrap to compile fpc." +MAINTAINER="slaxemulator@gmail.com" +TARBALL="i386-linux-ppc386.bz2" +WEB_SITE="http://freepascal.org/" +WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$TARBALL" +COOK_OPT="!repack_src !unpack" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $WOK/$PACKAGE/tmp + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then + cp $SOURCES_REPOSITORY/$TARBALL $WOK/$PACKAGE/tmp + fi + bunzip2 -d $WOK/$PACKAGE/tmp/$TARBALL + cp -a $WOK/$PACKAGE/tmp/i386-linux-ppc386 $fs/usr/bin/ppc386 + chmod +x $fs/usr/bin/ppc386 +} + diff -r 9376616c10ac -r 6408ba48363a fpc-src/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fpc-src/receipt Tue Mar 29 03:50:39 2011 +0000 @@ -0,0 +1,21 @@ +# SliTaz package receipt. + +PACKAGE="fpc-src" +VERSION="2.4.2" +CATEGORY="development" +SHORT_DESC="Sources for the FreePascal compiler (requierd by the Lazarus IDE)." +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="" +SOURCE="fpcbuild" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.freepascal.org/" +WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL" +COOK_OPT="!strip" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/fpc + cp -a $src/fpcsrc $fs/usr/lib/fpc/src +} + diff -r 9376616c10ac -r 6408ba48363a fpc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fpc/receipt Tue Mar 29 03:50:39 2011 +0000 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="fpc" +VERSION="2.4.2" +CATEGORY="development" +SHORT_DESC="The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit Pascal Compiler. It comes with fully TP 7.0 compatible run-time library." +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="ncurses" +BUILD_DEPENDS="fpc-bootstrap" +SOURCE="fpcbuild" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.freepascal.org/" +WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL" +CONFIG_FILE="/etc/fpc.cfg" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + make NOGDB=1 build + make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install + + # install package license + install -m 755 -d $DESTDIR/usr/share/licenses/fpc + install -m 644 $src/fpcsrc/rtl/COPYING.FPC $DESTDIR/usr/share/licenses/fpc/ +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr $fs/etc + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + + # create symlink for compiler + ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin + + mkdir -p $fs/etc + cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg +} +