diff --git a/gladys/Makefile b/gladys/Makefile
index ae47bd377a309e9da41d93cc493c9f67476485dc..63edec0a0e3fd989eb211c5067bd9fc70d5cca1f 100644
--- a/gladys/Makefile
+++ b/gladys/Makefile
@@ -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