diff options
author | tijl <tijl@FreeBSD.org> | 2017-06-13 21:28:49 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2017-06-13 21:28:49 +0800 |
commit | 3d891eda66e40f72209dada804e906d8eecbb0f4 (patch) | |
tree | 81cbdb01324ca2b332dd92f5e60dc96cc5485298 /Mk/Uses/iconv.mk | |
parent | d215b5be8a824a0c688f00fa2c24b597b0be68e9 (diff) | |
download | freebsd-ports-gnome-3d891eda66e40f72209dada804e906d8eecbb0f4.tar.gz freebsd-ports-gnome-3d891eda66e40f72209dada804e906d8eecbb0f4.tar.zst freebsd-ports-gnome-3d891eda66e40f72209dada804e906d8eecbb0f4.zip |
Remove check for unsupported versions of FreeBSD and add some comments.
Submitted by: John Hein <john.hein@microsemi.com>
Diffstat (limited to 'Mk/Uses/iconv.mk')
-rw-r--r-- | Mk/Uses/iconv.mk | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Mk/Uses/iconv.mk b/Mk/Uses/iconv.mk index a8275442276b..44ee05026ecb 100644 --- a/Mk/Uses/iconv.mk +++ b/Mk/Uses/iconv.mk @@ -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 |