wok-next annotate fpc/receipt @ rev 21370
updated minidlna (1.1.4 -> 1.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 09:58:07 2020 +0100 (2020-04-16) |
parents | a3c581bf52b8 |
children |
rev | line source |
---|---|
al@20481 | 1 # SliTaz package receipt v2. |
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" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15215 | 8 LICENSE="GPL2 LGPL2.1" |
al@20906 | 9 WEB_SITE="https://www.freepascal.org/" |
al@20481 | 10 |
al@20481 | 11 TARBALL="fpcbuild-$VERSION.tar.gz" |
slaxemulator@9411 | 12 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL" |
slaxemulator@9411 | 13 |
al@20481 | 14 BUILD_DEPENDS="fpc-bootstrap" |
al@21020 | 15 SPLIT="$PACKAGE-src $PACKAGE" |
pankso@16194 | 16 |
al@20481 | 17 compile_rules() { |
al@20491 | 18 sed -i 's|/man$|/share/man|' $src/install/man/Makefile # fix man install path |
al@20491 | 19 |
al@20491 | 20 case $ARCH in |
al@20491 | 21 i?86) Arch='386';; |
al@20491 | 22 x86_64) Arch='x64';; |
al@20491 | 23 esac |
al@20491 | 24 |
al@21020 | 25 make NOGDB=1 FPC=/usr/bin/ppc$Arch build && |
al@21020 | 26 make -j1 NOGDB=1 FPC=/usr/bin/ppc$Arch PREFIX=$install/usr install || return 1 |
al@18734 | 27 |
slaxemulator@9411 | 28 # install package license |
al@21020 | 29 install -Dm644 fpcsrc/rtl/COPYING.FPC \ |
al@20491 | 30 $install/usr/share/licenses/fpc/COPYING.FPC |
al@20491 | 31 |
al@20491 | 32 # create symlink for compiler |
al@20491 | 33 ln -s ../lib/fpc/$VERSION/ppc$Arch $install/usr/bin |
al@20491 | 34 |
al@20491 | 35 # config file |
al@20491 | 36 # mkdir -p $install/etc |
al@20491 | 37 # cp -a $install/usr/lib/fpc/$VERSION/samplecfg $install/etc/fpc.cfg |
al@20491 | 38 |
al@20491 | 39 # FPC sources |
al@20491 | 40 mkdir -p $install/usr/lib/fpc |
al@20491 | 41 cp -a $src/fpcsrc $install/usr/lib/fpc/src |
slaxemulator@9411 | 42 } |
slaxemulator@9411 | 43 |
al@20481 | 44 genpkg_rules() { |
al@20491 | 45 case $PACKAGE in |
al@20491 | 46 fpc-src) |
al@20491 | 47 copy /usr/lib/fpc/src/ |
al@20491 | 48 CAT="development|sources requierd by the Lazarus IDE" |
al@20491 | 49 ;; |
al@20491 | 50 fpc) |
al@20491 | 51 copy @std @rm |
al@20491 | 52 DEPENDS="ncurses" |
al@21020 | 53 CONFIG_FILES="/etc/fpc.cfg" |
al@20491 | 54 TAGS="compiler pascal" |
al@20491 | 55 ;; |
al@20491 | 56 esac |
slaxemulator@9411 | 57 } |
slaxemulator@9411 | 58 |
al@20481 | 59 post_install() { |
al@20491 | 60 if [ ! -s "$1/etc/fpc.cfg" ]; then |
al@20481 | 61 chroot "$1/" fpcmkcfg > /etc/fpc.cfg |
erjo@16709 | 62 fi |
al@18734 | 63 |
erjo@16709 | 64 # Fix units search path |
al@20491 | 65 sed -i \ |
al@20491 | 66 -e 's!^-Fu/units/$fpctarget!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget!' \ |
pascal@18730 | 67 -e 's!^-Fu/units/$fpctarget/*!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget/*!' \ |
al@20491 | 68 -e 's!^-Fu/units/$fpctarget/rtl!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget/rtl!' \ |
al@20491 | 69 "$1/etc/fpc.cfg" |
erjo@16709 | 70 } |