Skip to content
Snippets Groups Projects
Commit 512af892 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[wip/jrl-cmakemodules] add USE_PYTHON & USE_MASTER_GITHUB options

parent ca7130b0
No related branches found
No related tags found
No related merge requests found
......@@ -13,14 +13,30 @@ ifndef VERSION
endif
DISTNAME?= ${NAME}-${VERSION}
ifdef USE_PYTHON
PKGNAME?= ${PKGTAG.python-}${DISTNAME}
endif
MASTER_SITES?= ${MASTER_SITE_OPENROBOTS:=${NAME}/}
MASTER_REPOSITORY?= ${MASTER_REPOSITORY_GITHUB}/${ORG}/${NAME}.git
CHECKOUT_VCS_OPTS+= --recursive
ifdef USE_MASTER_GITHUB
MASTER_SITES?= ${MASTER_SITE_GITHUB:=${ORG}/${NAME}}/releases/download/v${VERSION}/
else
MASTER_SITES?= ${MASTER_SITE_OPENROBOTS:=${NAME}/}
endif
CMAKE_ARGS+= -DCMAKE_INSTALL_LIBDIR=lib
CMAKE_ARGS+= -DPYTHON_STANDARD_LAYOUT=ON
ifdef USE_PYTHON
CMAKE_ARGS+= -DPYTHON_EXECUTABLE=${PYTHON}
CMAKE_ARGS+= -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE}
CMAKE_ARGS+= -DPYTHON_LIBRARY=${PYTHON_LIB}
CMAKE_ARGS+= -DPYTHON_SITELIB=${PYTHON_SITELIB}
endif
DYNAMIC_PLIST_DIRS+= share/doc/${NAME}
include ../../pkgtools/pkg-config/depend.mk
......
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