wok-current annotate fpc/receipt @ rev 24174
updated pciids (20200329 -> 20211230)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 30 06:42:15 2021 +0100 (2021-12-30) |
parents | 6e8b1bcb30e2 |
children | 8f37db468deb |
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" |
pascal@20671 | 11 WEB_SITE="https://www.freepascal.org/" |
slaxemulator@9411 | 12 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL" |
pascal@20475 | 13 CONFIG_FILES="/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 |
pascal@24095 | 22 current_version() |
pascal@24095 | 23 { |
pascal@24095 | 24 wget -O - https://gitlab.com/freepascal.org/fpc/source/-/tags 2>/dev/null | \ |
pascal@24095 | 25 sed '/source-/!d;s|.*/source-\([\.0-9]*\)\..*|\1|;q' |
pascal@24095 | 26 } |
pascal@24095 | 27 |
pankso@16194 | 28 # Handle cross compilation. ARM: fpc-bootstrap build host must be installed |
pankso@16194 | 29 case "$ARCH" in |
pankso@16194 | 30 arm*) BUILD_DEPENDS="" ;; |
pankso@16194 | 31 esac |
pankso@16194 | 32 |
slaxemulator@9411 | 33 # Rules to configure and make the package. |
slaxemulator@9411 | 34 compile_rules() |
slaxemulator@9411 | 35 { |
pankso@16194 | 36 case "$ARCH" in |
pankso@16194 | 37 i?86) |
pankso@16194 | 38 make ${ARCH_ARGS} NOGDB=1 build |
pankso@16194 | 39 make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install ;; |
pankso@16194 | 40 arm*) |
pankso@16194 | 41 make crossinstall \ |
pankso@16194 | 42 NOGDB=1 \ |
pankso@16194 | 43 CPU_TARGET=arm \ |
pankso@16194 | 44 OS_TARGET=linux \ |
pankso@16194 | 45 OPT=-dFPC_ARMEL \ |
pankso@16194 | 46 CROSSBINDIR=/cross/$ARCH/tools/bin \ |
pankso@16194 | 47 BINUTILSPREFIX=arm-slitaz-gnueabi- \ |
pankso@16194 | 48 INSTALL_PREFIX=$DESTDIR/usr ;; |
pankso@16194 | 49 esac && |
al@18734 | 50 |
slaxemulator@9411 | 51 # install package license |
pankso@16194 | 52 install -m 755 -d $DESTDIR/usr/share/licenses/fpc && |
pankso@16194 | 53 install -m 644 $src/fpcsrc/rtl/COPYING.FPC \ |
pankso@16194 | 54 $DESTDIR/usr/share/licenses/fpc/ |
al@18803 | 55 |
al@18803 | 56 # move man pages to the right place |
al@18803 | 57 mv $install/usr/man $install/usr/share |
slaxemulator@9411 | 58 } |
slaxemulator@9411 | 59 |
slaxemulator@9411 | 60 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9411 | 61 genpkg_rules() |
slaxemulator@9411 | 62 { |
slaxemulator@9411 | 63 mkdir -p $fs/usr $fs/etc |
pascal@15215 | 64 cp -a $install/usr/bin $fs/usr |
pascal@15215 | 65 cp -a $install/usr/lib $fs/usr |
al@18734 | 66 |
slaxemulator@9411 | 67 # create symlink for compiler |
slaxemulator@9411 | 68 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin |
al@18734 | 69 |
pankso@16194 | 70 # config file |
erjo@16709 | 71 #mkdir -p $fs/etc |
erjo@16709 | 72 #cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg |
slaxemulator@9411 | 73 } |
slaxemulator@9411 | 74 |
erjo@16709 | 75 post_install() |
erjo@16709 | 76 { |
pascal@20624 | 77 if [ ! -s "$1/etc/fpc.cfg" ]; then |
pascal@18730 | 78 chroot "$1/" fpcmkcfg > /etc/fpc.cfg |
erjo@16709 | 79 fi |
al@18734 | 80 |
erjo@16709 | 81 # Fix units search path |
pascal@18730 | 82 sed -i -e 's!^-Fu/units/$fpctarget!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget!' \ |
pascal@18730 | 83 -e 's!^-Fu/units/$fpctarget/*!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget/*!' \ |
pascal@18730 | 84 -e 's!^-Fu/units/$fpctarget/rtl!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget/rtl!' "$1/etc/fpc.cfg" |
erjo@16709 | 85 } |