# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/pil/pil.conf # Copyright (C) 2006 - 2022 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- pil_install_header() { pyver=`python -c "import sys; print sys.version[:3]"` pyinstalldir=`python -c "import sys; print sys.prefix"` cp -fv libImaging/Im*.h ${pyinstalldir}/include/python${pyver}/ } #hook_add postmake 5 pil_install_header pil_configure64() { sed -i -e 's/^JPEG_ROOT.*/JPEG_ROOT = "\/usr\/lib64"/' setup.py sed -i -e 's/^FREETYPE_ROOT.*/FREETYPE_ROOT = "\/usr\/lib64"/' setup.py sed -i -e 's/^TIFF_ROOT.*/TIFF_ROOT = "\/usr\/lib64"/' setup.py sed -i -e 's/^ZLIB_ROOT.*/ZLIB_ROOT = "\/lib64"/' setup.py sed -i -e 's/^TCL_ROOT.*/TCL_ROOT = "\/usr\/lib64"/' setup.py } [[ $libdir = *lib64 ]] && hook_add preconf 3 pil_configure64 [[ $libdir = *lib64 ]] && var_append GCC_WRAPPER_INSERT ' ' '-L/usr/lib64 -L/lib64 -lz'