forked from ports/compat-32
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Description: Python interpreter, version 2.7
|
|
# URL: https://www.python.org/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: bzip2-32 db-32 gdbm-32 libtirpc-32 openssl-32 python sqlite3-32 zlib-32
|
|
|
|
name=python-32
|
|
version=2.7.18
|
|
release=2
|
|
source=(https://www.python.org/ftp/python/$version/Python-$version.tar.xz)
|
|
|
|
build() {
|
|
cd Python-$version
|
|
|
|
# set OPT to the python default without -O3
|
|
# our CFLAGS are used as well
|
|
OPT="-Wall -Wstrict-prototypes -fwrapv" \
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--enable-shared \
|
|
--with-threads \
|
|
--enable-ipv6
|
|
|
|
make
|
|
make -j1 DESTDIR=$PKG install
|
|
|
|
ln -sf python2.7 $PKG/usr/bin/python
|
|
ln -s python2.7 $PKG/usr/lib32/python
|
|
ln -s python2.7 $PKG/usr/include/python
|
|
ln -s /usr/lib32/libpython2.7.so $PKG/usr/lib32/python2.7/config/libpython2.7.so
|
|
|
|
mv $PKG/usr/include/python2.7/pyconfig.h $PKG/
|
|
rm -r $PKG/usr/{bin,include,lib,share/man}
|
|
install -d $PKG/usr/include/python2.7
|
|
mv $PKG/pyconfig.h $PKG/usr/include/python2.7/pyconfig-32.h
|
|
|
|
install -d $PKG/usr/lib32/python2.7/site-packages
|
|
}
|