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

Up: libwekkit-video-dev (1.8.3)
author Dominique Corbex <domcox@slitaz.org>
date Sun Feb 24 09:19:30 2013 +0100 (2013-02-24)
parents 6408ba48363a
children 7bb096863642
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"
pascal@13034 15 TAGS="compiler pascal"
slaxemulator@9411 16
slaxemulator@9411 17 # Rules to configure and make the package.
slaxemulator@9411 18 compile_rules()
slaxemulator@9411 19 {
slaxemulator@9411 20 cd $src
slaxemulator@9411 21 make NOGDB=1 build
slaxemulator@9411 22 make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install
slaxemulator@9411 23
slaxemulator@9411 24 # install package license
slaxemulator@9411 25 install -m 755 -d $DESTDIR/usr/share/licenses/fpc
slaxemulator@9411 26 install -m 644 $src/fpcsrc/rtl/COPYING.FPC $DESTDIR/usr/share/licenses/fpc/
slaxemulator@9411 27 }
slaxemulator@9411 28
slaxemulator@9411 29 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9411 30 genpkg_rules()
slaxemulator@9411 31 {
slaxemulator@9411 32 mkdir -p $fs/usr $fs/etc
slaxemulator@9411 33 cp -a $_pkg/usr/bin $fs/usr
slaxemulator@9411 34 cp -a $_pkg/usr/lib $fs/usr
slaxemulator@9411 35
slaxemulator@9411 36 # create symlink for compiler
slaxemulator@9411 37 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin
slaxemulator@9411 38
slaxemulator@9411 39 mkdir -p $fs/etc
slaxemulator@9411 40 cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg
slaxemulator@9411 41 }
slaxemulator@9411 42