mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
Make sure that you can compile all supplimentary ports without Python bindings
This commit is contained in:
parent
4e15df801d
commit
dbaa72074d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=454619
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user