pkgsrc-WIP-changes archive

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

soju: Add options.mk: moderncsqlite, (libsqlite3, pam)



Module Name:	pkgsrc-wip
Committed By:	Iris <iris000%duck.com@localhost>
Pushed By:	iris
Date:		Sun Aug 25 09:39:45 2024 +0000
Changeset:	d327ebe95f403eeefd5f2ee77d19d8891eebd4e7

Modified Files:
	soju/Makefile
Added Files:
	soju/options.mk

Log Message:
soju: Add options.mk: moderncsqlite, (libsqlite3, pam)

Use an alternative SQLite library that does not require CGO

Expose nonworking libsqlite3 and pam options (build errors)

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

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

diffstat:
 soju/Makefile   |  2 ++
 soju/options.mk | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diffs:
diff --git a/soju/Makefile b/soju/Makefile
index c339009171..6896c7e8c4 100644
--- a/soju/Makefile
+++ b/soju/Makefile
@@ -14,6 +14,8 @@ TOOL_DEPENDS+=	scdoc>=0:../../textproc/scdoc
 
 BUILD_DEFS+=	VARBASE
 
+.include "options.mk"
+
 GO_BUILD_PATTERN+=	-ldflags ' \
 			-X codeberg.org/emersion/soju/config.DefaultPath=${PKG_SYSCONFDIR}/config \
 			-X codeberg.org/emersion/soju/config.DefaultUnixAdminPath=${VARBASE}/run/soju/admin'
diff --git a/soju/options.mk b/soju/options.mk
new file mode 100644
index 0000000000..18ee223c1c
--- /dev/null
+++ b/soju/options.mk
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=		PKG_OPTIONS.soju
+PKG_OPTIONS_OPTIONAL_GROUPS=	sqlite3
+PKG_OPTIONS_GROUP.sqlite3=	moderncsqlite
+PKG_SUPPORTED_OPTIONS=		# blank
+PKG_SUGGESTED_OPTIONS=		# blank
+
+.include "../../mk/bsd.options.mk"
+
+# Use an alternative SQLite library that does not require CGO
+.if !empty (PKG_OPTIONS:Mmoderncsqlite)
+GO_BUILD_PATTERN+=	-tags=moderncsqlite
+.endif
+
+## Link with the system libsqlite3
+#.if !empty (PKG_OPTIONS:Mlibsqlite3)
+#GO_BUILD_PATTERN+=	-tags=libsqlite3
+#.include "../../databases/sqlite3/buildlink3.mk"
+#.endif
+
+## Build with PAM authentication support
+#.if !empty (PKG_OPTIONS:Mpam)
+#GO_BUILD_PATTERN+=	-tags=pam
+#.endif


Home | Main Index | Thread Index | Old Index