fpc: add ppc64le support
Closes https://github.com/void-linux/void-packages/pull/29986.
This commit is contained in:
parent
f5ea0ff0fc
commit
0f7882bd11
1 changed files with 23 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
pkgname=fpc
|
pkgname=fpc
|
||||||
version=3.2.0
|
version=3.2.0
|
||||||
revision=1
|
revision=1
|
||||||
archs="x86_64* i686*"
|
archs="x86_64* i686* ppc64le"
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
build_wrksrc="${pkgname}build-${version}"
|
build_wrksrc="${pkgname}build-${version}"
|
||||||
conf_files="/etc/fpc.cfg /etc/fppkg.cfg"
|
conf_files="/etc/fpc.cfg /etc/fppkg.cfg"
|
||||||
|
@ -23,6 +23,9 @@ i686*)
|
||||||
distfiles+=" ${SOURCEFORGE_SITE}/freepascal/Linux/${version}/${pkgname}-${version}-1.i686.rpm"
|
distfiles+=" ${SOURCEFORGE_SITE}/freepascal/Linux/${version}/${pkgname}-${version}-1.i686.rpm"
|
||||||
checksum+=" 05c5600c9461362a08df100cf50ca125cb2b4d5bfe4da48cf8c144f2bf4617a2"
|
checksum+=" 05c5600c9461362a08df100cf50ca125cb2b4d5bfe4da48cf8c144f2bf4617a2"
|
||||||
;;
|
;;
|
||||||
|
ppc64le*)
|
||||||
|
distfiles+=" ${SOURCEFORGE_SITE}/freepascal/Linux/${version}/${pkgname}-${version}.powerpc64le-linux.tar"
|
||||||
|
checksum+=" 9bf59ae3d336f0de4624c63e4e892ea95de4be2ca66182d185defc50b69b65f3"
|
||||||
esac
|
esac
|
||||||
# TODO: figure out cross-build and how to unwrap the ARM .tar.
|
# TODO: figure out cross-build and how to unwrap the ARM .tar.
|
||||||
nocross=yes
|
nocross=yes
|
||||||
|
@ -30,9 +33,25 @@ nopie=yes
|
||||||
noverifyrdeps=yes
|
noverifyrdeps=yes
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
|
# extract recursive tar files or otherwise post-process.
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
ppc64le*)
|
||||||
|
mkdir ${wrksrc}/usr
|
||||||
|
cd ${wrksrc}/${pkgname}-${version}.powerpc64-linux
|
||||||
|
for f in $(bsdtar -tf binary.powerpc64-linux.tar)
|
||||||
|
do
|
||||||
|
bsdtar -xOf binary.powerpc64-linux.tar $f | bsdtar -C ${wrksrc}/usr -xzf -
|
||||||
|
done
|
||||||
|
cd ${wrksrc}
|
||||||
|
ln -sf ../lib/fpc/${version}/ppcppc64 usr/bin
|
||||||
|
;;
|
||||||
|
x86_64*|i686*)
|
||||||
# relative links needed
|
# relative links needed
|
||||||
ln -sf ../lib64/fpc/${version}/ppcx64 usr/bin
|
ln -sf ../lib64/fpc/${version}/ppcx64 usr/bin
|
||||||
ln -sf ../lib/fpc/${version}/ppc386 usr/bin
|
ln -sf ../lib/fpc/${version}/ppc386 usr/bin
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
# tweak PT_INTERP for musl targets
|
# tweak PT_INTERP for musl targets
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue