Skip to content
Snippets Groups Projects
Commit 161ef855 authored by Pierrick Koch's avatar Pierrick Koch
Browse files

[wip/gladys] make python optional

for now comment dep on boost-python since it does not allow to use with
system lib. we should fix boost-python/depend.mk first
parent 7e0e5062
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@ LICENSE= 2-clause-bsd
CMAKE_ARGS+= -DBOOST_INCLUDEDIR=${PREFIX.boost-headers}/include
CMAKE_ARGS+= -DBOOST_LIBDIR=${PREFIX.boost-libs}/include
CMAKE_ARGS+= -DPYTHON_SITE_PACKAGES=${PREFIX}/${PYTHON_SITELIB}
CMAKE_ARGS+= -DCMAKE_INSTALL_LIBDIR=lib
DEPEND_ABI.boost-libs=boost-libs>=1.46.1
......@@ -22,6 +21,20 @@ DEPEND_ABI.boost-headers=boost-headers>=1.46.1
DEPEND_ABI.g++ = g++>=4.6
DEPEND_ABI.clang = clang>=3.0
PKG_SUPPORTED_OPTIONS= python
PKG_SUGGESTED_OPTIONS= python
PKG_OPTION_DESCR.python= Build python bindings
define PKG_OPTION_SET.python
include ../../mk/sysdep/python.mk
# include ../../wip/boost-python/depend.mk
CMAKE_ARGS+= -DBUILD_PYTHON=ON
CMAKE_ARGS+= -DPYTHON_VERSION=${PYTHON_VERSION}
CMAKE_ARGS+= -DPYTHON_SUFFIX=-${PKGTAG.python}
CMAKE_ARGS+= -DPYTHON_SITE_PACKAGES=${PREFIX}/${PYTHON_SITELIB}
endef
PKG_OPTION_UNSET.python= CMAKE_ARGS+=-DBUILD_PYTHON=OFF
# outside world libs/tools
include ../../devel/boost-headers/depend.mk
include ../../devel/boost-libs/depend.mk
......@@ -31,7 +44,6 @@ include ../../pkgtools/pkg-config/depend.mk
# gdalwrap (GDAL wrapper)
include ../../wip/gdalwrap/depend.mk
# language
include ../../mk/sysdep/python.mk
include ../../mk/language/c.mk
include ../../mk/language/c++.mk
# robotpkg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment