9base: fix build on ppc64 targets

This commit is contained in:
q66 2018-12-14 00:51:53 +01:00 committed by maxice8
parent 7acc38a98b
commit ff8ba42296

View file

@ -3,6 +3,7 @@ pkgname=9base
version=6.0.20170806
revision=1
_githash=09e95a2d6f8dbafc6601147b2f5f150355813be6
wrksrc="9base-${_githash}"
build_style=gnu-makefile
# we use byacc instead of internal version
hostmakedepends="byacc"
@ -11,10 +12,9 @@ maintainer='Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>'
license="custom"
homepage="http://git.suckless.org/9base"
distfiles="https://repo.voidlinux.de/distfiles/9base-${_githash}.tar.bz2"
provides="plan9port-20160418_4"
conflicts="plan9port"
checksum=57640696d65a8acbaca5417f1db1dea5ebbc694e8bed0d4ee8a3229f4800dddd
wrksrc="9base-${_githash}"
conflicts="plan9port"
provides="plan9port-20160418_4"
pre_build() {
# These are platform specific, but aarch64 and mips have their
@ -45,6 +45,7 @@ pre_build() {
arm*) sed -i 's|^OBJTYPE \+=.*|OBJTYPE = arm|g' config.mk ;;
aarch64*) sed -i 's|^OBJTYPE \+=.*|OBJTYPE = aarch64|g' config.mk ;;
mips*) sed -i 's|^OBJTYPE \+=.*|OBJTYPE = mips|g' config.mk ;;
ppc64*) sed -i 's|^OBJTYPE \+=.*|OBJTYPE = power|g' config.mk ;;
esac
}