wok view fpc/receipt @ rev 16628
xorg-xf86-video-ati, xorg-xf86-video-intel: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 10 10:32:14 2014 +0000 (2014-05-10) |
parents | 096424797d95 |
children | 72166e2a51e5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="fpc"
4 VERSION="2.6.4"
5 CATEGORY="development"
6 SHORT_DESC="The Free Pascal Compiler"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2 LGPL2.1"
9 SOURCE="fpcbuild"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.freepascal.org/"
12 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL"
13 CONFIG_FILE="/etc/fpc.cfg"
14 TAGS="compiler pascal"
16 CROSS_BUGS="arm-slitaz-gnueabi-as: Command not found"
17 #HOST_ARCH="i486 arm"
19 DEPENDS="ncurses"
20 BUILD_DEPENDS="fpc-bootstrap"
22 # Handle cross compilation. ARM: fpc-bootstrap build host must be installed
23 case "$ARCH" in
24 arm*) BUILD_DEPENDS="" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 case "$ARCH" in
31 i?86)
32 make ${ARCH_ARGS} NOGDB=1 build
33 make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install ;;
34 arm*)
35 make crossinstall \
36 NOGDB=1 \
37 CPU_TARGET=arm \
38 OS_TARGET=linux \
39 OPT=-dFPC_ARMEL \
40 CROSSBINDIR=/cross/$ARCH/tools/bin \
41 BINUTILSPREFIX=arm-slitaz-gnueabi- \
42 INSTALL_PREFIX=$DESTDIR/usr ;;
43 esac &&
45 # install package license
46 install -m 755 -d $DESTDIR/usr/share/licenses/fpc &&
47 install -m 644 $src/fpcsrc/rtl/COPYING.FPC \
48 $DESTDIR/usr/share/licenses/fpc/
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr $fs/etc
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/lib $fs/usr
57 # create symlink for compiler
58 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin
59 # config file
60 mkdir -p $fs/etc
61 cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg
62 }