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