wok diff fpc/receipt @ rev 16224
Up: mhwaveedit (1.4.23)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Tue Apr 01 07:06:14 2014 +0000 (2014-04-01) |
parents | 7bb096863642 |
children | 096424797d95 |
line diff
1.1 --- a/fpc/receipt Sat Sep 14 17:06:00 2013 +0000 1.2 +++ b/fpc/receipt Tue Apr 01 07:06:14 2014 +0000 1.3 @@ -1,9 +1,9 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="fpc" 1.7 -VERSION="2.4.2" 1.8 +VERSION="2.6.4" 1.9 CATEGORY="development" 1.10 -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." 1.11 +SHORT_DESC="The Free Pascal Compiler" 1.12 MAINTAINER="slaxemulator@gmail.com" 1.13 LICENSE="GPL2 LGPL2.1" 1.14 SOURCE="fpcbuild" 1.15 @@ -13,19 +13,39 @@ 1.16 CONFIG_FILE="/etc/fpc.cfg" 1.17 TAGS="compiler pascal" 1.18 1.19 +CROSS_BUGS="arm-slitaz-gnueabi-as: Command not found" 1.20 +#HOST_ARCH="i486 arm" 1.21 + 1.22 DEPENDS="ncurses" 1.23 BUILD_DEPENDS="fpc-bootstrap" 1.24 1.25 +# Handle cross compilation. ARM: fpc-bootstrap build host must be installed 1.26 +case "$ARCH" in 1.27 + arm*) BUILD_DEPENDS="" ;; 1.28 +esac 1.29 + 1.30 # Rules to configure and make the package. 1.31 compile_rules() 1.32 { 1.33 - cd $src 1.34 - make NOGDB=1 build 1.35 - make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install 1.36 - 1.37 + case "$ARCH" in 1.38 + i?86) 1.39 + make ${ARCH_ARGS} NOGDB=1 build 1.40 + make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install ;; 1.41 + arm*) 1.42 + make crossinstall \ 1.43 + NOGDB=1 \ 1.44 + CPU_TARGET=arm \ 1.45 + OS_TARGET=linux \ 1.46 + OPT=-dFPC_ARMEL \ 1.47 + CROSSBINDIR=/cross/$ARCH/tools/bin \ 1.48 + BINUTILSPREFIX=arm-slitaz-gnueabi- \ 1.49 + INSTALL_PREFIX=$DESTDIR/usr ;; 1.50 + esac && 1.51 + 1.52 # install package license 1.53 - install -m 755 -d $DESTDIR/usr/share/licenses/fpc 1.54 - install -m 644 $src/fpcsrc/rtl/COPYING.FPC $DESTDIR/usr/share/licenses/fpc/ 1.55 + install -m 755 -d $DESTDIR/usr/share/licenses/fpc && 1.56 + install -m 644 $src/fpcsrc/rtl/COPYING.FPC \ 1.57 + $DESTDIR/usr/share/licenses/fpc/ 1.58 } 1.59 1.60 # Rules to gen a SliTaz package suitable for Tazpkg. 1.61 @@ -34,10 +54,9 @@ 1.62 mkdir -p $fs/usr $fs/etc 1.63 cp -a $install/usr/bin $fs/usr 1.64 cp -a $install/usr/lib $fs/usr 1.65 - 1.66 # create symlink for compiler 1.67 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin 1.68 - 1.69 + # config file 1.70 mkdir -p $fs/etc 1.71 cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg 1.72 }