Skip to content

Commit

Permalink
mail/esmtp: Fix build with libesmtp 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed May 7, 2023
1 parent 0cf3172 commit 0763702
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mail/esmtp/Makefile
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions 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; }

0 comments on commit 0763702

Please sign in to comment.