wok-next annotate fpc/receipt @ rev 16459

ARM: Mplayer need a gmplayer sym link and so we have a gui video player for arm :-)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 20 16:57:15 2014 +0200 (2014-04-20)
parents 096424797d95
children 72166e2a51e5
rev   line source
slaxemulator@9411 1 # SliTaz package receipt.
slaxemulator@9411 2
slaxemulator@9411 3 PACKAGE="fpc"
pascal@16231 4 VERSION="2.6.4"
slaxemulator@9411 5 CATEGORY="development"
pankso@16194 6 SHORT_DESC="The Free Pascal Compiler"
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
pankso@16194 16 CROSS_BUGS="arm-slitaz-gnueabi-as: Command not found"
pankso@16194 17 #HOST_ARCH="i486 arm"
pankso@16194 18
pascal@15215 19 DEPENDS="ncurses"
pascal@15215 20 BUILD_DEPENDS="fpc-bootstrap"
pascal@15215 21
pankso@16194 22 # Handle cross compilation. ARM: fpc-bootstrap build host must be installed
pankso@16194 23 case "$ARCH" in
pankso@16194 24 arm*) BUILD_DEPENDS="" ;;
pankso@16194 25 esac
pankso@16194 26
slaxemulator@9411 27 # Rules to configure and make the package.
slaxemulator@9411 28 compile_rules()
slaxemulator@9411 29 {
pankso@16194 30 case "$ARCH" in
pankso@16194 31 i?86)
pankso@16194 32 make ${ARCH_ARGS} NOGDB=1 build
pankso@16194 33 make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install ;;
pankso@16194 34 arm*)
pankso@16194 35 make crossinstall \
pankso@16194 36 NOGDB=1 \
pankso@16194 37 CPU_TARGET=arm \
pankso@16194 38 OS_TARGET=linux \
pankso@16194 39 OPT=-dFPC_ARMEL \
pankso@16194 40 CROSSBINDIR=/cross/$ARCH/tools/bin \
pankso@16194 41 BINUTILSPREFIX=arm-slitaz-gnueabi- \
pankso@16194 42 INSTALL_PREFIX=$DESTDIR/usr ;;
pankso@16194 43 esac &&
pankso@16194 44
slaxemulator@9411 45 # install package license
pankso@16194 46 install -m 755 -d $DESTDIR/usr/share/licenses/fpc &&
pankso@16194 47 install -m 644 $src/fpcsrc/rtl/COPYING.FPC \
pankso@16194 48 $DESTDIR/usr/share/licenses/fpc/
slaxemulator@9411 49 }
slaxemulator@9411 50
slaxemulator@9411 51 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9411 52 genpkg_rules()
slaxemulator@9411 53 {
slaxemulator@9411 54 mkdir -p $fs/usr $fs/etc
pascal@15215 55 cp -a $install/usr/bin $fs/usr
pascal@15215 56 cp -a $install/usr/lib $fs/usr
slaxemulator@9411 57 # create symlink for compiler
slaxemulator@9411 58 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin
pankso@16194 59 # config file
slaxemulator@9411 60 mkdir -p $fs/etc
slaxemulator@9411 61 cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg
slaxemulator@9411 62 }
slaxemulator@9411 63