pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/tree-sitter



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Apr 10 21:23:42 UTC 2024

Modified Files:
        pkgsrc/textproc/tree-sitter: grammar.mk

Log Message:
tree-sitter: allow setting C standard


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/textproc/tree-sitter/grammar.mk

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

Modified files:

Index: pkgsrc/textproc/tree-sitter/grammar.mk
diff -u pkgsrc/textproc/tree-sitter/grammar.mk:1.5 pkgsrc/textproc/tree-sitter/grammar.mk:1.6
--- pkgsrc/textproc/tree-sitter/grammar.mk:1.5  Fri Jan 20 11:14:58 2023
+++ pkgsrc/textproc/tree-sitter/grammar.mk      Wed Apr 10 21:23:41 2024
@@ -1,4 +1,4 @@
-# $NetBSD: grammar.mk,v 1.5 2023/01/20 11:14:58 wiz Exp $
+# $NetBSD: grammar.mk,v 1.6 2024/04/10 21:23:41 wiz Exp $
 #
 # Common logic to build and install tree-sitter grammars.
 #
@@ -8,15 +8,16 @@
 
 GRAMMAR_LIBRARY_NAME?= lib${PKGBASE}
 GRAMMAR_SOURCE_DIR?=   src
+GRAMMAR_C_STANDARD?=   c99
 
 USE_LANGUAGES+=                c c++
 USE_LIBTOOL=           yes
 
 do-build:
        cd ${WRKSRC}/${GRAMMAR_SOURCE_DIR} && \
-       libtool --mode=compile ${CC} ${CFLAGS} -std=c99 -I. -c -fPIC parser.c
+       libtool --mode=compile ${CC} ${CFLAGS} -std=${GRAMMAR_C_STANDARD} -I. -c -fPIC parser.c
        cd ${WRKSRC}/${GRAMMAR_SOURCE_DIR} && \
-       if [ -f scanner.c ]; then libtool --mode=compile ${CC} ${CFLAGS} -std=c99 -I. -c -fPIC scanner.c; fi
+       if [ -f scanner.c ]; then libtool --mode=compile ${CC} ${CFLAGS} -std=${GRAMMAR_C_STANDARD} -I. -c -fPIC scanner.c; fi
        cd ${WRKSRC}/${GRAMMAR_SOURCE_DIR} && \
        if [ -f scanner.cc ]; then libtool --mode=compile ${CXX} ${CXXFLAGS} -I. -c -fPIC scanner.cc; fi
        cd ${WRKSRC}/${GRAMMAR_SOURCE_DIR} && \



Home | Main Index | Thread Index | Old Index