pkgsrc-WIP-changes archive

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

pinentry-fltk: Test FLTK frontend with FLTK 1.4



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Wed Jan 22 16:03:07 2025 +0100
Changeset:	1863ea98fc91140ed2fbdc1068922a5ec9cba140

Modified Files:
	Makefile
Added Files:
	pinentry-fltk/DESCR
	pinentry-fltk/Makefile
	pinentry-fltk/PLIST
	pinentry-fltk/README
	pinentry-fltk/TODO
	pinentry-fltk/patches/patch-configure.ac

Log Message:
pinentry-fltk: Test FLTK frontend with FLTK 1.4

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

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

diffstat:
 Makefile                                 |  1 +
 pinentry-fltk/DESCR                      |  6 ++++++
 pinentry-fltk/Makefile                   | 31 +++++++++++++++++++++++++++++++
 pinentry-fltk/PLIST                      |  2 ++
 pinentry-fltk/README                     |  2 ++
 pinentry-fltk/TODO                       |  1 +
 pinentry-fltk/patches/patch-configure.ac | 30 ++++++++++++++++++++++++++++++
 7 files changed, 73 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 34c9b6602f..e456092c71 100644
--- a/Makefile
+++ b/Makefile
@@ -3178,6 +3178,7 @@ SUBDIR+=	pike8.0-Odbc
 SUBDIR+=	pilemc-svn
 SUBDIR+=	pinball
 SUBDIR+=	pinentry-dmenu
+SUBDIR+=	pinentry-fltk
 SUBDIR+=	pinkpony
 SUBDIR+=	pint
 SUBDIR+=	pioneer
diff --git a/pinentry-fltk/DESCR b/pinentry-fltk/DESCR
new file mode 100644
index 0000000000..768642085a
--- /dev/null
+++ b/pinentry-fltk/DESCR
@@ -0,0 +1,6 @@
+This is a collection of simple PIN or passphrase entry dialogs which
+utilize the Assuan protocol as described by the aegypten project.
+It provides programs for several graphical toolkits, such as FLTK,
+GTK+ and QT, as well as for the console, using curses.
+
+This package contains the FLTK frontend.
diff --git a/pinentry-fltk/Makefile b/pinentry-fltk/Makefile
new file mode 100644
index 0000000000..e04637062a
--- /dev/null
+++ b/pinentry-fltk/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD$
+
+PKGNAME=	${DISTNAME:S/pinentry-/pinentry-fltk-/}
+PKGREVISION=	2
+COMMENT=	Applications for entering PINs or Passphrases, FLTK enabled
+
+.include "../../security/pinentry/Makefile.common"
+
+PATCHDIR=	${.CURDIR}/../../wip/pinentry-fltk/patches
+
+USE_LANGUAGES=		c c++
+USE_TOOLS+=		pkg-config
+CONFIGURE_ARGS+=	--disable-libsecret
+CONFIGURE_ARGS+=	--disable-pinentry-curses
+CONFIGURE_ARGS+=	--disable-pinentry-efl
+CONFIGURE_ARGS+=	--disable-pinentry-emacs
+CONFIGURE_ARGS+=	--disable-pinentry-gnome3
+CONFIGURE_ARGS+=	--disable-pinentry-gtk2
+CONFIGURE_ARGS+=	--disable-pinentry-qt
+CONFIGURE_ARGS+=	--disable-pinentry-qt5
+CONFIGURE_ARGS+=	--enable-pinentry-fltk
+
+INSTALL_DIRS=		fltk
+
+USE_TOOLS+=	aztoconf automake autoreconf
+
+pre-configure:
+	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoreconf -fi
+
+.include "../../wip/fltk14-devel/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/pinentry-fltk/PLIST b/pinentry-fltk/PLIST
new file mode 100644
index 0000000000..57eea7c429
--- /dev/null
+++ b/pinentry-fltk/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2019/02/13 17:39:36 wiz Exp $
+bin/pinentry-fltk
diff --git a/pinentry-fltk/README b/pinentry-fltk/README
new file mode 100644
index 0000000000..5b70867f12
--- /dev/null
+++ b/pinentry-fltk/README
@@ -0,0 +1,2 @@
+Test whether this package can use FLTK 1.4 in the future.
+Result: Yes
diff --git a/pinentry-fltk/TODO b/pinentry-fltk/TODO
new file mode 100644
index 0000000000..35eace80b4
--- /dev/null
+++ b/pinentry-fltk/TODO
@@ -0,0 +1 @@
+The final patch should go into security/pinentry/patches.
diff --git a/pinentry-fltk/patches/patch-configure.ac b/pinentry-fltk/patches/patch-configure.ac
new file mode 100644
index 0000000000..0fe7a91d05
--- /dev/null
+++ b/pinentry-fltk/patches/patch-configure.ac
@@ -0,0 +1,30 @@
+$NetBSD$
+
+Use FLTK 1.4 (API is compatible).
+
+--- configure.ac.orig	2024-07-03 11:19:19.000000000 +0200
++++ configure.ac	2025-01-22 15:30:42.660723851 +0100
+@@ -776,7 +776,7 @@
+ dnl Check for FLTK pinentry program.
+ dnl
+ AC_ARG_ENABLE(pinentry-fltk,
+-    AS_HELP_STRING([--enable-pinentry-fltk],[build FLTK 1.3 pinentry]),
++    AS_HELP_STRING([--enable-pinentry-fltk],[build FLTK 1.4 pinentry]),
+            pinentry_fltk=$enableval, pinentry_fltk=maybe)
+ 
+ dnl check for fltk-config
+@@ -790,11 +790,11 @@
+ 
+ dnl check for FLTK libraries and set flags
+ if test "$pinentry_fltk" != "no"; then
+-   AC_MSG_CHECKING([for FLTK 1.3])
++   AC_MSG_CHECKING([for FLTK 1.4])
+    FLTK_VERSION=`${FLTK_CONFIG} --api-version`
+-   if test ${FLTK_VERSION} != "1.3" ; then
++   if test ${FLTK_VERSION} != "1.4" ; then
+        AC_MSG_RESULT([no])
+-       AC_MSG_WARN([FLTK 1.3 not found (available $FLTK_VERSION)])
++       AC_MSG_WARN([FLTK 1.4 not found (available $FLTK_VERSION)])
+        pinentry_fltk=no
+    else
+        AC_MSG_RESULT([yes])


Home | Main Index | Thread Index | Old Index