wok annotate fpc/receipt @ rev 17591
syslinux/isohybrib.exe: add --md5, --undo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 10 08:53:27 2015 +0100 (2015-02-10) |
parents | e43333671f19 |
children | 9e01bc6321ea |
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 |
erjo@16709 | 57 |
slaxemulator@9411 | 58 # create symlink for compiler |
slaxemulator@9411 | 59 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin |
erjo@16709 | 60 |
pankso@16194 | 61 # config file |
erjo@16709 | 62 #mkdir -p $fs/etc |
erjo@16709 | 63 #cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg |
slaxemulator@9411 | 64 } |
slaxemulator@9411 | 65 |
erjo@16709 | 66 post_install() |
erjo@16709 | 67 { |
erjo@16709 | 68 echo"Processing postinstall commands..." |
erjo@16709 | 69 if [ ! -f $1/etc/fpc.cfg ]; then |
erjo@16709 | 70 chroot $1/ fpcmkcfg > /etc/fpc.cfg |
erjo@16709 | 71 fi |
erjo@16709 | 72 |
erjo@16709 | 73 # Fix units search path |
erjo@16709 | 74 sed -i -e 's!^-Fu/units/$fpctarget!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget!' \ |
erjo@16709 | 75 -e 's!^-Fu/units/$fpctarget/*!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget/*!' \ |
erjo@16709 | 76 -e 's!^-Fu/units/$fpctarget/rtl!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget/rtl!' $1/etc/fpc.cfg |
erjo@16709 | 77 |
erjo@16709 | 78 } |