add configure option for pyvips8
it tests for pygobject as well
This commit is contained in:
parent
d454b9161e
commit
abdd98409d
@ -9,6 +9,7 @@
|
|||||||
- support python3.4 and python2.7 in new python binding
|
- support python3.4 and python2.7 in new python binding
|
||||||
- vips_gaussmat() and vips_logmat() are now int by default, to match
|
- vips_gaussmat() and vips_logmat() are now int by default, to match
|
||||||
vips_conv(), and use @precision, not @integer
|
vips_conv(), and use @precision, not @integer
|
||||||
|
- added --disable-pyvips8 switch to turn off new py binding
|
||||||
|
|
||||||
25/7/14 started 7.41.0
|
25/7/14 started 7.41.0
|
||||||
- start working on --disable-deprecated
|
- start working on --disable-deprecated
|
||||||
|
@ -20,7 +20,7 @@ P_DIST_DIR = swig
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# turn on vips8 Python if we can
|
# turn on vips8 Python if we can
|
||||||
if HAVE_PYTHON
|
if ENABLE_PYVIPS8
|
||||||
P8_COMPILE_DIR = python
|
P8_COMPILE_DIR = python
|
||||||
P8_DIST_DIR =
|
P8_DIST_DIR =
|
||||||
else
|
else
|
||||||
@ -28,6 +28,7 @@ P8_COMPILE_DIR =
|
|||||||
P8_DIST_DIR = python
|
P8_DIST_DIR = python
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# turn docs on or off
|
||||||
if ENABLE_DOCS
|
if ENABLE_DOCS
|
||||||
D_DIST_DIR =
|
D_DIST_DIR =
|
||||||
D_BUILD_DIR = doc
|
D_BUILD_DIR = doc
|
||||||
|
6
TODO
6
TODO
@ -1,11 +1,5 @@
|
|||||||
- tests have stopped working with python2?
|
- tests have stopped working with python2?
|
||||||
|
|
||||||
- configure should check for pygobject too
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(PYTHON, [pygobject-3.0 >= $PYGOBJECT_REQUIRED])
|
|
||||||
|
|
||||||
have separate conditionals for old py and new py
|
|
||||||
|
|
||||||
- use vips_resize() in vipsthumbnail?
|
- use vips_resize() in vipsthumbnail?
|
||||||
|
|
||||||
should the sharpening filter be selectable?
|
should the sharpening filter be selectable?
|
||||||
|
38
configure.ac
38
configure.ac
@ -664,12 +664,35 @@ if test x"$with_pangoft2" != "xno"; then
|
|||||||
PKG_CHECK_MODULES(PANGOFT2, pangoft2,
|
PKG_CHECK_MODULES(PANGOFT2, pangoft2,
|
||||||
[AC_DEFINE(HAVE_PANGOFT2,1,[define if you have pangoft2 installed.])
|
[AC_DEFINE(HAVE_PANGOFT2,1,[define if you have pangoft2 installed.])
|
||||||
with_pangoft2=yes
|
with_pangoft2=yes
|
||||||
PACKAGES_USED="$PACKAGES_USED pangoft2"],
|
PACKAGES_USED="$PACKAGES_USED pangoft2"
|
||||||
|
],
|
||||||
[AC_MSG_WARN([pangoft2 not found; disabling pangoft2 support])
|
[AC_MSG_WARN([pangoft2 not found; disabling pangoft2 support])
|
||||||
with_pangoft2=no
|
with_pangoft2=no
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# install vips8 python
|
||||||
|
AC_ARG_ENABLE([pyvips8],
|
||||||
|
AS_HELP_STRING([--enable-pyvips8],
|
||||||
|
[install vips8 Python overrides (default: install)]))
|
||||||
|
|
||||||
|
if test x"$enable_pyvips8" != "xno"; then
|
||||||
|
PKG_CHECK_MODULES(PYGOBJECT, [pygobject-3.0 >= 3.1.0],
|
||||||
|
[pyoverridesdir="\$(pyexecdir)/gi/overrides"
|
||||||
|
AC_SUBST(pyoverridesdir)
|
||||||
|
],
|
||||||
|
[AC_MSG_WARN([pgobject-3.0 not found; disabling vips8 python support])
|
||||||
|
])
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x"$enable_pyvips8" != x"no"; then
|
||||||
|
AM_CONDITIONAL(ENABLE_PYVIPS8, true)
|
||||||
|
enable_pyvips8=yes
|
||||||
|
else
|
||||||
|
AM_CONDITIONAL(ENABLE_PYVIPS8, false)
|
||||||
|
enable_pyvips8=no
|
||||||
|
fi
|
||||||
|
|
||||||
# hmm, these don't have .pc files on ubuntu 5.10, how odd
|
# hmm, these don't have .pc files on ubuntu 5.10, how odd
|
||||||
FIND_ZIP(
|
FIND_ZIP(
|
||||||
[with_zip=yes],
|
[with_zip=yes],
|
||||||
@ -755,9 +778,7 @@ if test x"$with_python" != "xno"; then
|
|||||||
with_python=no
|
with_python=no
|
||||||
AC_MSG_WARN([C++ is off, disabling Python binding])
|
AC_MSG_WARN([C++ is off, disabling Python binding])
|
||||||
else
|
else
|
||||||
AM_PATH_PYTHON(2.7,
|
AM_PATH_PYTHON(2.7,,
|
||||||
[pyoverridesdir="\$(pyexecdir)/gi/overrides"
|
|
||||||
AC_SUBST(pyoverridesdir)],
|
|
||||||
[with_python=no
|
[with_python=no
|
||||||
AC_MSG_WARN([Python not found; disabling Python binding])])
|
AC_MSG_WARN([Python not found; disabling Python binding])])
|
||||||
fi
|
fi
|
||||||
@ -854,7 +875,7 @@ AC_OUTPUT([
|
|||||||
])
|
])
|
||||||
|
|
||||||
AC_MSG_RESULT([
|
AC_MSG_RESULT([
|
||||||
* general build options
|
* build options
|
||||||
native win32: $vips_os_win32
|
native win32: $vips_os_win32
|
||||||
native OS X: $vips_os_darwin
|
native OS X: $vips_os_darwin
|
||||||
open files in binary mode: $vips_binary_open
|
open files in binary mode: $vips_binary_open
|
||||||
@ -864,8 +885,11 @@ build C++ components: $enable_cxx
|
|||||||
build docs with gtkdoc: $enable_gtk_doc
|
build docs with gtkdoc: $enable_gtk_doc
|
||||||
install docs: $enable_docs
|
install docs: $enable_docs
|
||||||
gobject introspection: $found_introspection
|
gobject introspection: $found_introspection
|
||||||
|
build vips7 Python binding: $with_python
|
||||||
|
install vips8 Python overrides: $enable_pyvips8
|
||||||
|
(requires pygobject-3.1.0 or later)
|
||||||
|
|
||||||
* optional packages and modules
|
* optional dependencies
|
||||||
use fftw3 for FFT: $with_fftw
|
use fftw3 for FFT: $with_fftw
|
||||||
Magick package: $with_magickpackage
|
Magick package: $with_magickpackage
|
||||||
file import with libMagick: $with_magick
|
file import with libMagick: $with_magick
|
||||||
@ -886,4 +910,4 @@ file import/export with libjpeg: $with_jpeg
|
|||||||
image pyramid export: $with_gsf
|
image pyramid export: $with_gsf
|
||||||
(requires libgsf-1 1.14.27 or later)
|
(requires libgsf-1 1.14.27 or later)
|
||||||
use libexif to load/save JPEG metadata: $with_libexif
|
use libexif to load/save JPEG metadata: $with_libexif
|
||||||
build Python binding: $with_python])
|
])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user