pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/bc



Module Name:    pkgsrc
Committed By:   nros
Date:           Wed Dec 18 16:12:34 UTC 2024

Modified Files:
        pkgsrc/math/bc: Makefile

Log Message:
math/bc: fix error: flex not a runtime dependency check

libfl is linked in when readline is used as readline
implementation and flex is only required then so make
sure it is used as flex:run in such case.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/math/bc/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/bc/Makefile
diff -u pkgsrc/math/bc/Makefile:1.15 pkgsrc/math/bc/Makefile:1.16
--- pkgsrc/math/bc/Makefile:1.15        Fri Nov 24 12:56:30 2023
+++ pkgsrc/math/bc/Makefile     Wed Dec 18 16:12:34 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2023/11/24 12:56:30 ryoon Exp $
+# $NetBSD: Makefile,v 1.16 2024/12/18 16:12:34 nros Exp $
 
 DISTNAME=      bc-1.07.1
 CATEGORIES=    math
@@ -8,10 +8,12 @@ MAINTAINER=   reed%reedmedia.net@localhost
 HOMEPAGE=      https://www.gnu.org/software/bc/bc.html
 COMMENT=       Arbitrary precision calculator language
 
-USE_TOOLS+=            flex
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --with-readline
 INFO_FILES=            yes
 
 .include "../../mk/readline.buildlink3.mk"
+.if ${READLINE_TYPE} == "readline"
+USE_TOOLS+=    flex:run
+.endif
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index