devel/libdatrie: Fix BUILD

While converters/libiconv is installed libdatrie fails to build as it
tries to use the iconv library from libc which do not contain all the
funcntionalities of libiconv. So rather than depending on the base of
iconv switch to the port version entirely.

PR:		266241
Reported by:	se
This commit is contained in:
Muhammad Moinur Rahman 2023-03-21 09:50:03 -05:00
parent b3463e7348
commit 5dc1c7edbe

View file

@ -1,5 +1,6 @@
PORTNAME= libdatrie
PORTVERSION= 0.2.13
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://linux.thai.net/pub/thailinux/software/libthai/
@ -10,12 +11,13 @@ WWW= https://linux.thai.net/projects/datrie/
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= iconv libtool localbase:ldflags pathfix tar:xz
GNU_CONFIGURE= yes
USES= iconv:wchar_t libtool localbase:ldflags pathfix tar:xz
USE_LDCONFIG= yes
LDFLAGS+= ${ICONV_LIB}
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
LDFLAGS+= ${ICONV_LIB}
.include <bsd.port.mk>