*/*: convert to USES=cmake:indirect

Convert several ports to use cmake:indirect
This commit is contained in:
Max Brazhnikov 2024-04-08 12:15:43 +03:00
parent ba50bfd158
commit f3b9cb19fa
4 changed files with 14 additions and 18 deletions

View file

@ -26,7 +26,8 @@ OPTIONS_DEFINE= CMARK
OPTIONS_DEFAULT= CMARK OPTIONS_DEFAULT= CMARK
CMARK_DESC= CommonMark support (Markdown -> HTML rendering) CMARK_DESC= CommonMark support (Markdown -> HTML rendering)
CMARK_BUILD_DEPENDS= cmake:devel/cmake-core CMARK_USES= cmake:indirect
CMAKE_OFF= CMARK_SHARED CMARK_TESTS
CMARK_QMAKE_OFF= CONFIG+="mfnomd2html" CMARK_QMAKE_OFF= CONFIG+="mfnomd2html"
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
@ -39,9 +40,9 @@ USE_QT+= webkit
.endif .endif
pre-build-CMARK-on: pre-build-CMARK-on:
@cd ${WRKSRC_cm} && cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ @cd ${WRKSRC_cm} && ${SETENVI} ${WRK_ENV} ${CONFIGURE_ENV} \
-DCMARK_TESTS:BOOL=OFF -DCMARK_SHARED:BOOL=OFF \ ${CMAKE_BIN} ${CMAKE_ARGS} -B build && \
-B build && cmake --build build ${CMAKE_BIN} --build build
post-patch: post-patch:
@${REINPLACE_CMD} -e '/_WIN32/s,_APPLE,_${OPSYS},' \ @${REINPLACE_CMD} -e '/_WIN32/s,_APPLE,_${OPSYS},' \

View file

@ -12,12 +12,10 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-build>=0.13:devel/py-scikit-build@${PY_FLAVOR} \ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-build>=0.13:devel/py-scikit-build@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR}
cmake-core>0:devel/cmake-core
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rapidfuzz>0:devel/py-rapidfuzz@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rapidfuzz>0:devel/py-rapidfuzz@${PY_FLAVOR}
USES= python USES= cmake:indirect python
USE_PYTHON= autoplist pep517 USE_PYTHON= autoplist pep517
post-install: post-install:

View file

@ -10,12 +10,11 @@ WWW= https://github.com/coin3d/pivy
LICENSE= MIT LICENSE= MIT
BUILD_DEPENDS= cmake:devel/cmake-core \ BUILD_DEPENDS= swig:devel/swig
swig:devel/swig
LIB_DEPENDS= libCoin.so:graphics/Coin \ LIB_DEPENDS= libCoin.so:graphics/Coin \
libSoQt.so:x11-toolkits/soqt libSoQt.so:x11-toolkits/soqt
USES= compiler:c11 python qt:5 USES= cmake:indirect compiler:c11 python qt:5
USE_GITHUB= yes USE_GITHUB= yes
GH_ACCOUNT= coin3d GH_ACCOUNT= coin3d
USE_PYTHON= distutils USE_PYTHON= distutils

View file

@ -165,9 +165,10 @@ pre-test:
# XXX https://github.com/HowardHinnant/date/issues/799 # XXX https://github.com/HowardHinnant/date/issues/799
.if ${CXX} == c++ && exists(/usr/include/c++/v1/__chrono/concepts.h) .if ${CXX} == c++ && exists(/usr/include/c++/v1/__chrono/concepts.h)
BUILD_DEPENDS+= ${CMAKE_BIN}:devel/cmake-core USES+= cmake:indirect
CONFIGURE_ENV+= CC="${CC}" CXX="${CXX}" CPP="${CPP}" CMAKE_ARGS= -B ${WRKDIR}/libcxx_build -S ${WRKSRC_libcxx}/libcxx
CMAKE_BIN= ${LOCALBASE}/bin/cmake CMAKE_OFF= LIBCXX_INCLUDE_BENCHMARKS
CMAKE_INSTALL_PREFIX= ${WRKDIR}/libcxx_prefix
# XXX Move into separate port and standardize via USES # XXX Move into separate port and standardize via USES
GH_TUPLE+= llvm:llvm-project:llvmorg-16.0.1:libcxx GH_TUPLE+= llvm:llvm-project:llvmorg-16.0.1:libcxx
@ -177,10 +178,7 @@ CXXFLAGS+= -nostdinc++ -isystem${WRKDIR}/libcxx_prefix/include/c++/v1
pre-configure: bundled-libcxx pre-configure: bundled-libcxx
bundled-libcxx: bundled-libcxx:
@${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \ @${SETENVI} ${WRK_ENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS}
-DLIBCXX_INCLUDE_BENCHMARKS:BOOL=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=${WRKDIR}/libcxx_prefix \
-B ${WRKDIR}/libcxx_build -S ${WRKSRC_libcxx}/libcxx
@${DO_MAKE_BUILD:NDESTDIR*} install -C ${WRKDIR}/libcxx_build @${DO_MAKE_BUILD:NDESTDIR*} install -C ${WRKDIR}/libcxx_build
.endif # exists(/usr/include/c++/v1/__chrono/concepts.h) .endif # exists(/usr/include/c++/v1/__chrono/concepts.h)