pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/qhull



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Jan 16 23:04:23 UTC 2025

Modified Files:
        pkgsrc/math/qhull: Makefile

Log Message:
qhull: fix build with ninja as cmake build generator


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/math/qhull/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/qhull/Makefile
diff -u pkgsrc/math/qhull/Makefile:1.13 pkgsrc/math/qhull/Makefile:1.14
--- pkgsrc/math/qhull/Makefile:1.13     Sun Aug 25 06:19:01 2024
+++ pkgsrc/math/qhull/Makefile  Thu Jan 16 23:04:22 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2024/08/25 06:19:01 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2025/01/16 23:04:22 wiz Exp $
 
 DISTNAME=      qhull-2020-src-${LIBVERSION}
 PKGNAME=       qhull-2020.2
@@ -29,9 +29,14 @@ PKGCONFIG_OVERRIDE=  build/qhull.pc.in
 post-extract:
        rm -f ${WRKSRC}/eg/q_benchmark ${WRKSRC}/eg/qhull-zip.sh
 
+.include "../../devel/cmake/build.mk"
+
 # libqhull is deprecated
 post-build:
+.if ${CMAKE_GENERATOR} == "make"
        cd ${WRKSRC}/${CMAKE_BUILD_DIR} && make libqhull
+.else
+       cd ${WRKSRC}/${CMAKE_BUILD_DIR} && ninja libqhull
+.endif
 
-.include "../../devel/cmake/build.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index