pkgsrc-WIP-changes archive

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

emacs-git: add libgccjit option



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Thu Apr 6 01:06:18 2023 +0200
Changeset:	3d36fb7dc2f428a1970a87aba416c694ca6e2e12

Modified Files:
	emacs-git/options.mk

Log Message:
emacs-git: add libgccjit option

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3d36fb7dc2f428a1970a87aba416c694ca6e2e12

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

diffstat:
 emacs-git/options.mk | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diffs:
diff --git a/emacs-git/options.mk b/emacs-git/options.mk
index 27f345b370..232784df41 100644
--- a/emacs-git/options.mk
+++ b/emacs-git/options.mk
@@ -2,7 +2,7 @@
 
 ### Set options
 PKG_OPTIONS_VAR=			PKG_OPTIONS.emacs
-PKG_SUPPORTED_OPTIONS=			dbus gnutls imagemagick jansson libotf libwebp svg tree-sitter xaw3d xml
+PKG_SUPPORTED_OPTIONS=			dbus gnutls imagemagick jansson libgccjit libotf libwebp svg tree-sitter xaw3d xml
 # xaw3d is only valid with tookit = xaw
 
 PKG_OPTIONS_OPTIONAL_GROUPS+=		window-system
@@ -22,7 +22,7 @@ PKG_OPTIONS_GROUP.toolkit=		gtk gtk2 gtk3 xaw
 # imagemagick is disabled because of stability/security
 # svg is omitted because it is rarely needed and heavyweight due to the rust dependency
 # xaw3d is omitted because it is only valid with xaw
-PKG_SUGGESTED_OPTIONS=	dbus gnutls gtk3 jansson libotf libwebp tree-sitter xml x11
+PKG_SUGGESTED_OPTIONS=	dbus libgccjit gnutls gtk3 jansson libotf libwebp tree-sitter xml x11
 
 .include "../../mk/bsd.options.mk"
 
@@ -45,6 +45,17 @@ CONFIGURE_ARGS+=	--without-dbus
 CONFIGURE_ARGS+=	--without-json
 .endif
 
+###
+### Support libgccjit
+###
+.if !empty(PKG_OPTIONS:Mlibgccjit)
+CONFIGURE_ARGS+=	--with-native-compilation
+LDFLAGS+=		${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gcc10-libjit}/gcc10/lib
+GENERATE_PLIST+=	cd ${DESTDIR}${PREFIX} && \
+        ${FIND} lib/emacs/${PKGVERSION_NOREV}/native-lisp/ \( -type f -o -type l \) -print | ${SORT};
+.  include "../../wip/gcc10-libjit/buildlink3.mk"
+.endif
+
 ###
 ### Support OTF
 ###
@@ -221,4 +232,3 @@ DEPENDS+=	tree-sitter-yaml-[0-9]*:../../textproc/tree-sitter-yaml
 # mode: outline-minor
 # outline-regexp: "\\(.[ \t]*\\(if\\|endif\\|else\\|elif\\|include.*options\\|PKG_SUGGES\\)\\)\\|### .\\|# Local"
 # End:
-


Home | Main Index | Thread Index | Old Index