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