sam: generalize 32/64-bit distinction
This commit is contained in:
parent
72b2c2f39e
commit
7f0499ef2c
1 changed files with 5 additions and 6 deletions
|
@ -19,15 +19,14 @@ post_extract() {
|
|||
sed -i '/Straddc/s/int/wchar_t/g' sam/sam.h
|
||||
}
|
||||
do_build() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686*|armv*) USE64BITS=0;;
|
||||
x86_64*|aarch64*|ppc64*) USE64BITS=1;;
|
||||
*) msg_error "Unknown word length for $XBPS_TARGET_MACHINE";;
|
||||
esac
|
||||
local use64bits=0
|
||||
if [ "$XBPS_TARGET_WORDSIZE" = "64" ]; then
|
||||
use64bits=1
|
||||
fi
|
||||
|
||||
make ${makejobs} CC="${CC} ${CFLAGS}" DESTDIR=/usr LDFLAGS="$LDFLAGS" \
|
||||
INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/freetype2 \
|
||||
RXSAMNAME=rsam TERMNAME=/usr/bin/samterm USE64BITS=${USE64BITS}
|
||||
RXSAMNAME=rsam TERMNAME=/usr/bin/samterm USE64BITS=${use64bits}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
|
Loading…
Reference in a new issue