Remove check for unsupported versions of FreeBSD and add some comments.

Submitted by:	John Hein <john.hein@microsemi.com>
This commit is contained in:
Tijl Coosemans
2017-06-13 13:28:49 +00:00
parent f60db3f2bb
commit f5a34d52dd
+3 -4
View File
@@ -41,13 +41,12 @@ ICONV_CONFIGURE_BASE=
ICONV_INCLUDE_PATH= /usr/include
ICONV_LIB_PATH= /usr/lib/libc.so
.if (${OPSYS} == FreeBSD && \
(${OSVERSION} >= 1100000 && ${OSVERSION} < 1100069)) \
|| exists(${LOCALBASE}/include/iconv.h)
.if exists(${LOCALBASE}/include/iconv.h)
# Check that libiconv iconv.h is recent enough for LIBICONV_PLUG to work.
BUILD_DEPENDS+= libiconv>=1.14_9:converters/libiconv
ICONV_INCLUDE_PATH= ${LOCALBASE}/include
.endif
# LIBICONV_PLUG makes libiconv iconv.h act like libc iconv.h.
CPPFLAGS+= -DLIBICONV_PLUG
CFLAGS+= -DLIBICONV_PLUG
CXXFLAGS+= -DLIBICONV_PLUG