git: 076370208853 - main - mail/esmtp: Fix build with libesmtp 1.1.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 May 2023 16:15:03 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=076370208853c6bd0de0e15e0f8fa543d97c8f52
commit 076370208853c6bd0de0e15e0f8fa543d97c8f52
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-05-07 16:05:35 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-05-07 16:12:00 +0000
mail/esmtp: Fix build with libesmtp 1.1.0
---
mail/esmtp/Makefile | 3 ++-
mail/esmtp/files/patch-configure | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/mail/esmtp/Makefile b/mail/esmtp/Makefile
index 7fd283ab2481..d8ad8f8e4950 100644
--- a/mail/esmtp/Makefile
+++ b/mail/esmtp/Makefile
@@ -12,7 +12,8 @@ LICENSE= GPLv2
LIB_DEPENDS= libesmtp.so:mail/libesmtp
-USES= tar:bzip2 bison ssl
+USES= bison pkgconfig ssl tar:bzip2
+
GNU_CONFIGURE= yes
PORTDOCS= README
diff --git a/mail/esmtp/files/patch-configure b/mail/esmtp/files/patch-configure
new file mode 100644
index 000000000000..74c3a7a80c48
--- /dev/null
+++ b/mail/esmtp/files/patch-configure
@@ -0,0 +1,18 @@
+--- configure.orig 2009-12-24 08:19:09 UTC
++++ configure
+@@ -4343,12 +4343,12 @@ fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libESMTP" >&5
+ $as_echo_n "checking for libESMTP... " >&6; }
+-if libesmtp-config --version > /dev/null 2>&1
++if pkgconf libesmtp-1.0 > /dev/null 2>&1
+ then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ $as_echo "yes" >&6; }
+- CFLAGS="$CFLAGS `libesmtp-config --cflags`"
+- LIBS="$LIBS `libesmtp-config --libs`"
++ CFLAGS="$CFLAGS `pkgconf libesmtp-1.0 --cflags`"
++ LIBS="$LIBS `pkgconf libesmtp-1.0 --libs`"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ $as_echo "no" >&6; }