wok-current rev 9411

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.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Mar 29 03:50:39 2011 +0000 (2011-03-29)
parents 9376616c10ac
children ac6070d06f4c
files fpc-bootstrap/receipt fpc-src/receipt fpc/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/fpc-bootstrap/receipt	Tue Mar 29 03:50:39 2011 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="fpc-bootstrap"
     1.7 +VERSION="2.4.2"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="bootstrap to compile fpc."
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +TARBALL="i386-linux-ppc386.bz2"
    1.12 +WEB_SITE="http://freepascal.org/"
    1.13 +WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$TARBALL"
    1.14 +COOK_OPT="!repack_src !unpack"
    1.15 +
    1.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +genpkg_rules()
    1.18 +{
    1.19 +	mkdir -p $fs/usr/bin $WOK/$PACKAGE/tmp
    1.20 +	if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
    1.21 +		cp $SOURCES_REPOSITORY/$TARBALL $WOK/$PACKAGE/tmp
    1.22 +	fi
    1.23 +	bunzip2 -d $WOK/$PACKAGE/tmp/$TARBALL
    1.24 +	cp -a $WOK/$PACKAGE/tmp/i386-linux-ppc386 $fs/usr/bin/ppc386
    1.25 +	chmod +x $fs/usr/bin/ppc386
    1.26 +}
    1.27 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/fpc-src/receipt	Tue Mar 29 03:50:39 2011 +0000
     2.3 @@ -0,0 +1,21 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="fpc-src"
     2.7 +VERSION="2.4.2"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="Sources for the FreePascal compiler (requierd by the Lazarus IDE)."
    2.10 +MAINTAINER="slaxemulator@gmail.com"
    2.11 +DEPENDS=""
    2.12 +SOURCE="fpcbuild"
    2.13 +TARBALL="$SOURCE-$VERSION.tar.gz"
    2.14 +WEB_SITE="http://www.freepascal.org/"
    2.15 +WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL"
    2.16 +COOK_OPT="!strip"
    2.17 +
    2.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.19 +genpkg_rules()
    2.20 +{
    2.21 +	mkdir -p $fs/usr/lib/fpc
    2.22 +	cp -a $src/fpcsrc $fs/usr/lib/fpc/src
    2.23 +}
    2.24 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/fpc/receipt	Tue Mar 29 03:50:39 2011 +0000
     3.3 @@ -0,0 +1,41 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="fpc"
     3.7 +VERSION="2.4.2"
     3.8 +CATEGORY="development"
     3.9 +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."
    3.10 +MAINTAINER="slaxemulator@gmail.com"
    3.11 +DEPENDS="ncurses"
    3.12 +BUILD_DEPENDS="fpc-bootstrap"
    3.13 +SOURCE="fpcbuild"
    3.14 +TARBALL="$SOURCE-$VERSION.tar.gz"
    3.15 +WEB_SITE="http://www.freepascal.org/"
    3.16 +WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL"
    3.17 +CONFIG_FILE="/etc/fpc.cfg"
    3.18 +
    3.19 +# Rules to configure and make the package.
    3.20 +compile_rules()
    3.21 +{
    3.22 +	cd $src
    3.23 +	make NOGDB=1 build
    3.24 +	make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install
    3.25 +
    3.26 +	# install package license
    3.27 +	install -m 755 -d $DESTDIR/usr/share/licenses/fpc
    3.28 +	install -m 644 $src/fpcsrc/rtl/COPYING.FPC $DESTDIR/usr/share/licenses/fpc/
    3.29 +}
    3.30 +
    3.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.32 +genpkg_rules()
    3.33 +{
    3.34 +	mkdir -p $fs/usr $fs/etc
    3.35 +	cp -a $_pkg/usr/bin $fs/usr
    3.36 +	cp -a $_pkg/usr/lib $fs/usr
    3.37 +
    3.38 +	# create symlink for compiler
    3.39 +	ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin
    3.40 +
    3.41 +	mkdir -p $fs/etc
    3.42 +	cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg
    3.43 +}
    3.44 +