wok-current view fpc/receipt @ rev 17512
util-linux-blkid: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 11 11:40:15 2015 +0100 (2015-01-11) |
parents | e43333671f19 |
children | 9e01bc6321ea |
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
58 # create symlink for compiler
59 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin
61 # config file
62 #mkdir -p $fs/etc
63 #cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg
64 }
66 post_install()
67 {
68 echo"Processing postinstall commands..."
69 if [ ! -f $1/etc/fpc.cfg ]; then
70 chroot $1/ fpcmkcfg > /etc/fpc.cfg
71 fi
73 # Fix units search path
74 sed -i -e 's!^-Fu/units/$fpctarget!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget!' \
75 -e 's!^-Fu/units/$fpctarget/*!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget/*!' \
76 -e 's!^-Fu/units/$fpctarget/rtl!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget/rtl!' $1/etc/fpc.cfg
78 }