diff --git a/mail/esmtp/Makefile b/mail/esmtp/Makefile index 7fd283ab24814..d8ad8f8e49501 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 0000000000000..74c3a7a80c486 --- /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; }