wok-next view fpc/receipt @ rev 18855

syslinux/c32box.c32: show detected features.
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 26 09:24:12 2016 +0100 (2016-01-26)
parents d6ca18366f41
children c4e53a39395a
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/
50 # move man pages to the right place
51 mv $install/usr/man $install/usr/share
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr $fs/etc
58 cp -a $install/usr/bin $fs/usr
59 cp -a $install/usr/lib $fs/usr
61 # create symlink for compiler
62 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin
64 # config file
65 #mkdir -p $fs/etc
66 #cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg
67 }
69 post_install()
70 {
71 if [ ! -f "$1/etc/fpc.cfg" ]; then
72 chroot "$1/" fpcmkcfg > /etc/fpc.cfg
73 fi
75 # Fix units search path
76 sed -i -e 's!^-Fu/units/$fpctarget!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget!' \
77 -e 's!^-Fu/units/$fpctarget/*!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget/*!' \
78 -e 's!^-Fu/units/$fpctarget/rtl!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget/rtl!' "$1/etc/fpc.cfg"
79 }