blob: b5f8756ccabf4f79ae93c3629a3296fba7e3337d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# symlink for 32-bit Pascal compiler
# temporary:
# the package has been built wrongly in the past, so we have to force
# a ppc386 symlink in build (PP variable) because the Makefile is trying to
# guess the target platform by executing fpc
_pkgver=$(
find /usr/lib/fpc -name ppc386 \
| cut -d/ -f5 \
| sort -V \
| tail -n1
)
eval "$(
declare -f package | \
sed '
/"\$CARCH" = "x86_64"/ {
p
s@ppcx64@ppc386@g
s@x86_64@i686@
p
s@i686@i486@
p
s@i486@pentium4@
}
s@NOGDB=1@NOGDB=1 PP=/usr/lib/fpc/'"$_pkgver"'/ppc386 @
'
declare -f build | \
sed '
s@NOGDB=1@NOGDB=1 PP=/usr/lib/fpc/'"$_pkgver"'/ppc386 @
'
)"
|