mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
2e790e6f32
decided to build world with WITHOUT_ICONV set. There's no need for this check to be based on OSVERSION. Some users (i.e. me), report subtle application breakages with the iconv-from-src that disappear when iconv-from-ports is installed. Allow for a bridge till these issues are sorted out. Approved by: portmgr (bdrewery)
46 lines
946 B
Makefile
46 lines
946 B
Makefile
# $FreeBSD$
|
|
#
|
|
# handle dependency on the iconv port
|
|
#
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
#
|
|
# Feature: iconv
|
|
# Usage: USES=iconv or USES=iconv:ARGS
|
|
# Valid ARGS: lib (default, implicit), build, patch
|
|
#
|
|
#
|
|
.if !defined(_INCLUDE_USES_ICONV_MK)
|
|
_INCLUDE_USES_ICONV_MK= yes
|
|
|
|
.if !defined(iconv_ARGS)
|
|
iconv_ARGS= lib
|
|
.endif
|
|
|
|
.if !exists(/usr/include/iconv.h)
|
|
|
|
ICONV_CMD= ${LOCALBASE}/bin/iconv
|
|
ICONV_LIB= -liconv
|
|
ICONV_PREFIX= ${LOCALBASE}
|
|
ICONV_CONFIGURE_ARG= --with-libiconv-prefix=${LOCALBASE}
|
|
ICONV_CONFIGURE_BASE= --with-libiconv=${LOCALBASE}
|
|
|
|
.if ${iconv_ARGS} == "lib"
|
|
LIB_DEPENDS+= libiconv.so.3:${PORTSDIR}/converters/libiconv
|
|
.elif ${iconv_ARGS} == "build"
|
|
BUILD_DEPENDS+= ${ICONV_CMD}:${PORTSDIR}/converters/libiconv
|
|
.elif ${iconv_ARGS} == "patch"
|
|
PATCH_DEPENDS+= ${ICONV_CMD}:${PORTSDIR}/converters/libiconv
|
|
.endif
|
|
|
|
.else
|
|
|
|
ICONV_CMD= /usr/bin/iconv
|
|
ICONV_LIB=
|
|
ICONV_PREFIX= /usr
|
|
ICONV_CONFIGURE_ARG=
|
|
ICONV_CONFIGURE_BASE=
|
|
|
|
.endif
|
|
|
|
.endif
|