Commit 463ea4aa authored by timur's avatar timur
Browse files

Make sure that you can compile all supplimentary ports without Python bindings

parent 84330c36
......@@ -77,7 +77,8 @@ PLIST_FILES= include/ldb_version.h \
%%PKGCONFIGDIR%%/ldb.pc
.if defined(NO_PYTHON)
CONFIGURE_ARGS+= --disable-python
USES+= python:2.7,build
#CONFIGURE_ARGS+= --disable-python
.else
USES+= python:2.7
......@@ -141,6 +142,25 @@ post-install:
.if !defined(NO_PYTHON)
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpyldb-util.so
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ldb.so
.else
.for file in include/pyldb.h \
lib/libpyldb-util.so \
lib/libpyldb-util.so.1 \
lib/ldb/libpytalloc-util.so.2
${RM} ${STAGEDIR}${PREFIX}/${file}
.endfor
.for file in ${PYTHON_SITELIBDIR}/ldb.so \
${PYTHON_SITELIBDIR}/_ldb_text.py \
${PYTHON_SITELIBDIR}/_tdb_text.py \
${PYTHON_SITELIBDIR}/_tevent.so \
${PYTHON_SITELIBDIR}/talloc.so \
${PYTHON_SITELIBDIR}/tdb.so \
${PYTHON_SITELIBDIR}/tevent.py \
${PKGCONFIGDIR}/pyldb-util.pc
${RM} ${STAGEDIR}/${file}
.endfor
${RMDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${RMDIR} ${STAGEDIR}${PYTHON_LIBDIR}
.endif
.include <bsd.port.post.mk>
......@@ -79,6 +79,7 @@ PLIST_FILES= include/ldb_version.h \
%%PKGCONFIGDIR%%/ldb.pc
.if defined(NO_PYTHON)
USES+= python:2.7,build
CONFIGURE_ARGS+= --disable-python
.else
USES+= python:2.7
......
......@@ -79,6 +79,7 @@ PLIST_FILES= include/ldb_version.h \
%%PKGCONFIGDIR%%/ldb.pc
.if defined(NO_PYTHON)
USES+= python:2.7,build
CONFIGURE_ARGS+= --disable-python
.else
USES+= python:2.7
......
......@@ -44,6 +44,7 @@ PLIST_FILES+= include/tdb.h \
%%PKGCONFIGDIR%%/tdb.pc
.if defined(NO_PYTHON)
USES+= python:2.7,build
CONFIGURE_ARGS+= --disable-python
.else
USES+= python:2.7
......
......@@ -37,6 +37,7 @@ PLIST_FILES+= include/talloc.h \
%%PKGCONFIGDIR%%/talloc.pc
.if defined(NO_PYTHON)
USES+= python:2.7,build
CONFIGURE_ARGS+= --disable-python
.else
USES+= python:2.7
......
......@@ -43,6 +43,7 @@ PLIST_FILES+= include/tevent.h \
%%PKGCONFIGDIR%%/tevent.pc
.if defined(NO_PYTHON)
USES+= python:2.7,build
CONFIGURE_ARGS+= --disable-python
.else
USES+= python:2.7
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment