aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2024-04-08 09:15:43 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2024-04-08 09:15:43 +0000
commitf3b9cb19fa6ea8861b9b966c1dbe4b4bc495d129 (patch)
treeb298b0eea166ad62f85c6354746d9a89e3df6aef
parentba50bfd1585c811c22668b318ebb63bb63038fa8 (diff)
downloadports-f3b9cb19fa6ea8861b9b966c1dbe4b4bc495d129.tar.gz
ports-f3b9cb19fa6ea8861b9b966c1dbe4b4bc495d129.zip
*/*: convert to USES=cmake:indirect
Convert several ports to use cmake:indirect
-rw-r--r--deskutils/mindforger/Makefile9
-rw-r--r--devel/py-Levenshtein/Makefile6
-rw-r--r--graphics/py-pivy/Makefile5
-rw-r--r--x11/waybar/Makefile12
4 files changed, 14 insertions, 18 deletions
diff --git a/deskutils/mindforger/Makefile b/deskutils/mindforger/Makefile
index b4d7ad86467e..1b5facf132db 100644
--- a/deskutils/mindforger/Makefile
+++ b/deskutils/mindforger/Makefile
@@ -26,7 +26,8 @@ OPTIONS_DEFINE= CMARK
OPTIONS_DEFAULT= CMARK
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"
.include <bsd.port.options.mk>
@@ -39,9 +40,9 @@ USE_QT+= webkit
.endif
pre-build-CMARK-on:
- @cd ${WRKSRC_cm} && cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
- -DCMARK_TESTS:BOOL=OFF -DCMARK_SHARED:BOOL=OFF \
- -B build && cmake --build build
+ @cd ${WRKSRC_cm} && ${SETENVI} ${WRK_ENV} ${CONFIGURE_ENV} \
+ ${CMAKE_BIN} ${CMAKE_ARGS} -B build && \
+ ${CMAKE_BIN} --build build
post-patch:
@${REINPLACE_CMD} -e '/_WIN32/s,_APPLE,_${OPSYS},' \
diff --git a/devel/py-Levenshtein/Makefile b/devel/py-Levenshtein/Makefile
index a15e266afb3e..f5fd15865286 100644
--- a/devel/py-Levenshtein/Makefile
+++ b/devel/py-Levenshtein/Makefile
@@ -12,12 +12,10 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-build>=0.13:devel/py-scikit-build@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
- cmake-core>0:devel/cmake-core
-
+ ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rapidfuzz>0:devel/py-rapidfuzz@${PY_FLAVOR}
-USES= python
+USES= cmake:indirect python
USE_PYTHON= autoplist pep517
post-install:
diff --git a/graphics/py-pivy/Makefile b/graphics/py-pivy/Makefile
index e95e79c44754..1433c68ed6f8 100644
--- a/graphics/py-pivy/Makefile
+++ b/graphics/py-pivy/Makefile
@@ -10,12 +10,11 @@ WWW= https://github.com/coin3d/pivy
LICENSE= MIT
-BUILD_DEPENDS= cmake:devel/cmake-core \
- swig:devel/swig
+BUILD_DEPENDS= swig:devel/swig
LIB_DEPENDS= libCoin.so:graphics/Coin \
libSoQt.so:x11-toolkits/soqt
-USES= compiler:c11 python qt:5
+USES= cmake:indirect compiler:c11 python qt:5
USE_GITHUB= yes
GH_ACCOUNT= coin3d
USE_PYTHON= distutils
diff --git a/x11/waybar/Makefile b/x11/waybar/Makefile
index e3674857ea35..145bbcade594 100644
--- a/x11/waybar/Makefile
+++ b/x11/waybar/Makefile
@@ -165,9 +165,10 @@ pre-test:
# XXX https://github.com/HowardHinnant/date/issues/799
.if ${CXX} == c++ && exists(/usr/include/c++/v1/__chrono/concepts.h)
-BUILD_DEPENDS+= ${CMAKE_BIN}:devel/cmake-core
-CONFIGURE_ENV+= CC="${CC}" CXX="${CXX}" CPP="${CPP}"
-CMAKE_BIN= ${LOCALBASE}/bin/cmake
+USES+= cmake:indirect
+CMAKE_ARGS= -B ${WRKDIR}/libcxx_build -S ${WRKSRC_libcxx}/libcxx
+CMAKE_OFF= LIBCXX_INCLUDE_BENCHMARKS
+CMAKE_INSTALL_PREFIX= ${WRKDIR}/libcxx_prefix
# XXX Move into separate port and standardize via USES
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
bundled-libcxx:
- @${SETENV} ${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
+ @${SETENVI} ${WRK_ENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS}
@${DO_MAKE_BUILD:NDESTDIR*} install -C ${WRKDIR}/libcxx_build
.endif # exists(/usr/include/c++/v1/__chrono/concepts.h)