pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/nickle
Module Name: pkgsrc
Committed By: tnn
Date: Thu May 1 09:33:23 UTC 2025
Modified Files:
pkgsrc/math/nickle: Makefile
Log Message:
nickle: fix build on Linux
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 pkgsrc/math/nickle/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/nickle/Makefile
diff -u pkgsrc/math/nickle/Makefile:1.35 pkgsrc/math/nickle/Makefile:1.36
--- pkgsrc/math/nickle/Makefile:1.35 Wed Apr 30 11:43:13 2025
+++ pkgsrc/math/nickle/Makefile Thu May 1 09:33:23 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2025/04/30 11:43:13 wiz Exp $
+# $NetBSD: Makefile,v 1.36 2025/05/01 09:33:23 tnn Exp $
DISTNAME= nickle-2.103
CATEGORIES= math lang
@@ -10,15 +10,25 @@ HOMEPAGE= http://nickle.org/
COMMENT= Desk calculator language
LICENSE= mit
-MESON_ARGS+= -Dlibedit=true
-
TEST_TARGET= check
REPLACE_SH+= bench/runbench.sh
USE_TOOLS+= pkg-config
-.include "../../devel/meson/build.mk"
+# Tests have a tool dependency on bc; meson insists on checking for it.
+.if !exists(/usr/bin/bc)
+TOOL_DEPENDS+= bc-[0-9]*:../../math/bc
+.endif
+
.include "../../mk/readline.buildlink3.mk"
+
+.if ${READLINE_TYPE} == "editline"
+MESON_ARGS+= -Dlibedit=true
+.else
+MESON_ARGS+= -Dlibedit=false
+.endif
+
+.include "../../devel/meson/build.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index