CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
nss: added .signature
[ports/opt-arm.git] / python / Pkgfile
index f2cf82a0b3999e39714159f7709ec43b33876755..6f452d7c176c0ec21fcc6e5bdefccb99e13b8c58 100644 (file)
@@ -5,7 +5,7 @@
 # Depends on: db gdbm openssl bzip2 zlib sqlite3
 
 name=python
-version=2.7.10
+version=2.7.16
 release=1
 source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
         pyconfig.h)
@@ -13,11 +13,13 @@ source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
 build () {
   cd Python-$version
 
+  export CFLAGS="-O2 -pipe -mfloat-abi=hard"
+  export CXXFLAGS="$CFLAGS"
+
   # set OPT to the python default without -O3
   # our CFLAGS are used as well
   OPT="-Wall -Wstrict-prototypes -fwrapv" \
   ./configure --prefix=/usr \
-              --mandir=/usr/man \
               --enable-shared \
               --with-threads \
               --enable-ipv6
@@ -26,7 +28,7 @@ build () {
   make -j1 DESTDIR=$PKG install
 
   # fix issue with man-page symlink
-  ln -sf python2.7.1 $PKG/usr/man/man1/python.1
+  ln -sf python2.7.1 $PKG/usr/share/man/man1/python.1
 
   ln -sf python2.7 $PKG/usr/bin/python
   ln -s python2.7 $PKG/usr/lib/python