mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 18:20:07 +00:00
33 lines
951 B
Plaintext
33 lines
951 B
Plaintext
# description : Next generation of the python high-level scripting language
|
|
# depends : libffi-32 python3
|
|
|
|
name=python3-32
|
|
version=3.10.8
|
|
release=1
|
|
source="https://www.python.org/ftp/python/$version/Python-$version.tar.xz"
|
|
|
|
build() {
|
|
cd Python-$version
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
|
|
|
|
CXX="/usr/bin/g++" \
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--enable-shared \
|
|
--with-system-expat \
|
|
--with-system-ffi \
|
|
--without-ensurepip
|
|
make
|
|
make DESTDIR=$PWD/DESTDIR install
|
|
mkdir -p $PKG/usr/lib32
|
|
cp -Rv DESTDIR/usr/lib32/* $PKG/usr/lib32
|
|
mkdir -p $PKG/usr/include/python${version%.*}
|
|
cp DESTDIR/usr/include/python${version%.*}/pyconfig.h $PKG/usr/include/python${version%.*}/pyconfig-32.h
|
|
|
|
chmod -v 755 $PKG/usr/lib32/libpython${version%.*}.so
|
|
chmod -v 755 $PKG/usr/lib32/libpython3.so
|
|
}
|