wok-6.x annotate fpc/receipt @ rev 11512

libbonoboui: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 22 23:24:47 2011 +0100 (2011-12-22)
parents
children e53e5e4b0f9e
rev   line source
slaxemulator@9411 1 # SliTaz package receipt.
slaxemulator@9411 2
slaxemulator@9411 3 PACKAGE="fpc"
slaxemulator@9411 4 VERSION="2.4.2"
slaxemulator@9411 5 CATEGORY="development"
slaxemulator@9411 6 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."
slaxemulator@9411 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@9411 8 DEPENDS="ncurses"
slaxemulator@9411 9 BUILD_DEPENDS="fpc-bootstrap"
slaxemulator@9411 10 SOURCE="fpcbuild"
slaxemulator@9411 11 TARBALL="$SOURCE-$VERSION.tar.gz"
slaxemulator@9411 12 WEB_SITE="http://www.freepascal.org/"
slaxemulator@9411 13 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL"
slaxemulator@9411 14 CONFIG_FILE="/etc/fpc.cfg"
slaxemulator@9411 15
slaxemulator@9411 16 # Rules to configure and make the package.
slaxemulator@9411 17 compile_rules()
slaxemulator@9411 18 {
slaxemulator@9411 19 cd $src
slaxemulator@9411 20 make NOGDB=1 build
slaxemulator@9411 21 make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install
slaxemulator@9411 22
slaxemulator@9411 23 # install package license
slaxemulator@9411 24 install -m 755 -d $DESTDIR/usr/share/licenses/fpc
slaxemulator@9411 25 install -m 644 $src/fpcsrc/rtl/COPYING.FPC $DESTDIR/usr/share/licenses/fpc/
slaxemulator@9411 26 }
slaxemulator@9411 27
slaxemulator@9411 28 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9411 29 genpkg_rules()
slaxemulator@9411 30 {
slaxemulator@9411 31 mkdir -p $fs/usr $fs/etc
slaxemulator@9411 32 cp -a $_pkg/usr/bin $fs/usr
slaxemulator@9411 33 cp -a $_pkg/usr/lib $fs/usr
slaxemulator@9411 34
slaxemulator@9411 35 # create symlink for compiler
slaxemulator@9411 36 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin
slaxemulator@9411 37
slaxemulator@9411 38 mkdir -p $fs/etc
slaxemulator@9411 39 cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg
slaxemulator@9411 40 }
slaxemulator@9411 41