$OpenBSD$

Index: lib/notmuch.h
--- lib/notmuch.h.orig
+++ lib/notmuch.h
@@ -57,8 +57,8 @@ NOTMUCH_BEGIN_DECLS
  * The library version number.  This must agree with the soname
  * version in Makefile.local.
  */
-#define LIBNOTMUCH_MAJOR_VERSION	5
-#define LIBNOTMUCH_MINOR_VERSION	2
+#define LIBNOTMUCH_MAJOR_VERSION	${LIBnotmuch_MAJOR}
+#define LIBNOTMUCH_MINOR_VERSION	${LIBnotmuch_MINOR}
 #define LIBNOTMUCH_MICRO_VERSION	0
 
 
