pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/lldb



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Oct  6 19:16:28 UTC 2023

Added Files:
        pkgsrc/devel/lldb: options.mk

Log Message:
lldb: import options.mk


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lldb/options.mk

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

Added files:

Index: pkgsrc/devel/lldb/options.mk
diff -u /dev/null pkgsrc/devel/lldb/options.mk:1.1
--- /dev/null   Fri Oct  6 19:16:28 2023
+++ pkgsrc/devel/lldb/options.mk        Fri Oct  6 19:16:28 2023
@@ -0,0 +1,49 @@
+# $NetBSD: options.mk,v 1.1 2023/10/06 19:16:28 adam Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.lldb
+
+PKG_SUPPORTED_OPTIONS+=        tests curses
+PKG_SUGGESTED_OPTIONS= curses
+
+.include "../../mk/bsd.options.mk"
+
+.if ${PKG_OPTIONS:Mtests}
+CMAKE_ARGS+=   -DLLVM_INCLUDE_TESTS=ON
+.else
+# py-lit, py-psutil, lld
+CMAKE_ARGS+=   -DLLVM_INCLUDE_TESTS=OFF
+.endif
+
+.if ${PKG_OPTIONS:Mcurses}
+.include "../../mk/curses.buildlink3.mk"
+
+.  if ${OPSYS} == "NetBSD"
+.    if exists(/usr/include/panel.h)
+CMAKE_ARGS+=   -DLLDB_ENABLE_CURSES=ON
+CMAKE_ARGS+=   -DLLVM_ENABLE_TERMINFO=ON
+.    else
+.include "../../devel/ncurses/buildlink3.mk"
+.      if exists(${BUILDLINK_PREFIX.ncurses}/include/ncurses/panel.h)
+CMAKE_ARGS+=    -DLLDB_ENABLE_CURSES=ON
+CMAKE_ARGS+=   -DLLVM_ENABLE_TERMINFO=ON
+.      else
+CMAKE_ARGS+=    -DLLDB_ENABLE_CURSES=OFF
+CMAKE_ARGS+=   -DLLVM_ENABLE_TERMINFO=OFF
+.      endif
+.    endif
+.  else
+.include "../../devel/ncurses/buildlink3.mk"
+.    if exists(${BUILDLINK_PREFIX.ncurses}/include/ncurses/panel.h)
+CMAKE_ARGS+=    -DLLDB_ENABLE_CURSES=ON
+CMAKE_ARGS+=   -DLLVM_ENABLE_TERMINFO=ON
+.    else
+CMAKE_ARGS+=    -DLLDB_ENABLE_CURSES=OFF
+CMAKE_ARGS+=   -DLLVM_ENABLE_TERMINFO=OFF
+.    endif
+.  endif
+
+.else
+
+CMAKE_ARGS+=   -DLLDB_ENABLE_CURSES=OFF
+CMAKE_ARGS+=   -DLLVM_ENABLE_TERMINFO=OFF
+.endif



Home | Main Index | Thread Index | Old Index