1/ First I realize we were still using AM_PATH_PYTHON() and not AM_PATH_PYTHON3(). 2/ We don't need to check anymore for pygtk, pycairo, nor do we need Python headers. Everything is now taken care of by GObject Introspection and we have nothing else to build GIMP-side. 3/ Change --enable-python into --with-python. We don't actually build anything now. There is no Python support to enable or disable anymore. We simply install Python plug-ins or not. The 3 values are "yes" (default, configure breaks if a Python 3 interpreter is not found), "no" (Python plug-ins are not installed, not recommended) and "force" (install Python plug-ins anyway even if an interpreter is not found; this can be useful especially for cross-compilation since Python is not useful at build-time anymore). Note that --with-python=force, if an interpreter is not found, the file `pygimp.interp` won't be installed. This is not a problem at all if the interpreter can be found at runtime the standard way. Otherwise packagers should add themselves a pygimp.interp file with the known interpreter path.
79 lines
2.0 KiB
Makefile
79 lines
2.0 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
SUBDIRS = \
|
|
python-console
|
|
|
|
pluginexecdir = $(gimpplugindir)/plug-ins
|
|
|
|
source_scripts = \
|
|
## colorxhtml.py \
|
|
## file-openraster.py \
|
|
## foggify.py \
|
|
## gradients-save-as-css.py \
|
|
## histogram-export.py \
|
|
palette-offset.py \
|
|
## palette-sort.py \
|
|
palette-to-gradient.py
|
|
## py-slice.py \
|
|
## python-eval.py \
|
|
## spyro_plus.py \
|
|
## \
|
|
## benchmark-foreground-extract.py \
|
|
## clothify.py \
|
|
## shadow_bevel.py \
|
|
## sphere.py \
|
|
## whirlpinch.py
|
|
|
|
scripts = \
|
|
## colorxhtml/colorxhtml.py \
|
|
## file-openraster/file-openraster.py \
|
|
## foggify/foggify.py \
|
|
## gradients-save-as-css/gradients-save-as-css.py \
|
|
## histogram-export/histogram-export.py \
|
|
palette-offset/palette-offset.py \
|
|
## palette-sort/palette-sort.py \
|
|
palette-to-gradient/palette-to-gradient.py
|
|
## py-slice/py-slice.py \
|
|
## python-eval/python-eval.py \
|
|
## spyro_plus/spyro_plus.py
|
|
|
|
#test_scripts = \
|
|
# benchmark-foreground-extract/benchmark-foreground-extract.py \
|
|
# clothify/clothify.py \
|
|
# shadow_bevel/shadow_bevel.py \
|
|
# sphere/sphere.py \
|
|
# whirlpinch/whirlpinch.py
|
|
|
|
$(scripts) $(test_scripts): $(source_scripts)
|
|
$(AM_V_GEN) mkdir -p $(@D) && cp -f "$(srcdir)/$(@F)" $@
|
|
|
|
nobase_pluginexec_SCRIPTS = $(scripts)
|
|
|
|
if GIMP_UNSTABLE
|
|
nobase_pluginexec_SCRIPTS += $(test_scripts)
|
|
endif
|
|
|
|
EXTRA_DIST = \
|
|
$(source_scripts)
|
|
|
|
CLEANFILES = $(scripts) $(test_scripts)
|
|
|
|
# Python interpreter file.
|
|
|
|
pyinterpdir = $(gimpplugindir)/interpreters
|
|
pyinterpfile = $(pyinterpdir)/pygimp.interp
|
|
|
|
if HAS_PYTHON_INTERP
|
|
install-interp-file:
|
|
$(mkinstalldirs) '$(DESTDIR)$(pyinterpdir)'
|
|
echo 'python=$(PYBIN_PATH)' > '$(DESTDIR)$(pyinterpfile)'
|
|
echo 'python3=$(PYBIN_PATH)' >> '$(DESTDIR)$(pyinterpfile)'
|
|
echo '/usr/bin/python=$(PYBIN_PATH)' >> '$(DESTDIR)$(pyinterpfile)'
|
|
echo ":Python:E::py::`basename $(PYTHON)`:" >> '$(DESTDIR)$(pyinterpfile)'
|
|
|
|
install-data-local: install-interp-file
|
|
endif
|
|
|
|
uninstall-local:
|
|
rm -f '$(DESTDIR)$(pyinterpfile)'
|