wok-next annotate fpc/receipt @ rev 15397
Up: ofono-dev (1.12)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat Nov 02 20:37:28 2013 +0100 (2013-11-02) |
parents | e53e5e4b0f9e |
children | e6bbb8cc0677 |
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" |
pascal@15215 | 8 LICENSE="GPL2 LGPL2.1" |
slaxemulator@9411 | 9 SOURCE="fpcbuild" |
slaxemulator@9411 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
slaxemulator@9411 | 11 WEB_SITE="http://www.freepascal.org/" |
slaxemulator@9411 | 12 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL" |
slaxemulator@9411 | 13 CONFIG_FILE="/etc/fpc.cfg" |
pascal@13034 | 14 TAGS="compiler pascal" |
slaxemulator@9411 | 15 |
pascal@15215 | 16 DEPENDS="ncurses" |
pascal@15215 | 17 BUILD_DEPENDS="fpc-bootstrap" |
pascal@15215 | 18 |
slaxemulator@9411 | 19 # Rules to configure and make the package. |
slaxemulator@9411 | 20 compile_rules() |
slaxemulator@9411 | 21 { |
slaxemulator@9411 | 22 cd $src |
slaxemulator@9411 | 23 make NOGDB=1 build |
slaxemulator@9411 | 24 make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install |
slaxemulator@9411 | 25 |
slaxemulator@9411 | 26 # install package license |
slaxemulator@9411 | 27 install -m 755 -d $DESTDIR/usr/share/licenses/fpc |
slaxemulator@9411 | 28 install -m 644 $src/fpcsrc/rtl/COPYING.FPC $DESTDIR/usr/share/licenses/fpc/ |
slaxemulator@9411 | 29 } |
slaxemulator@9411 | 30 |
slaxemulator@9411 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9411 | 32 genpkg_rules() |
slaxemulator@9411 | 33 { |
slaxemulator@9411 | 34 mkdir -p $fs/usr $fs/etc |
pascal@15215 | 35 cp -a $install/usr/bin $fs/usr |
pascal@15215 | 36 cp -a $install/usr/lib $fs/usr |
slaxemulator@9411 | 37 |
slaxemulator@9411 | 38 # create symlink for compiler |
slaxemulator@9411 | 39 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin |
slaxemulator@9411 | 40 |
slaxemulator@9411 | 41 mkdir -p $fs/etc |
slaxemulator@9411 | 42 cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg |
slaxemulator@9411 | 43 } |
slaxemulator@9411 | 44 |