1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/devel/gettext/Makefile
Tijl Coosemans 0052e743ef - Add two new arguments to USES=iconv so ports can indicate they use GNU
iconv extensions that the base system iconv doesn't support yet:
  * wchar_t: port uses the special WCHAR_T character conversion.
  * translit: port uses //TRANSLIT or //IGNORE conversion options.
  Adding one or both of these arguments makes the port depend on
  converters/libiconv for now.
- Allow installation of converters/libiconv on FreeBSD 10+.
- Use ICONV_CONFIGURE_ARG in devel/gettext instead of defining CPPFLAGS
  and LDFLAGS to fix compilation with libiconv installed.
- Stage converters/libiconv and devel/gettext.

Approved by:	bapt (on trust)
2014-01-29 20:24:49 +00:00

49 lines
1.2 KiB
Makefile

# Created by: Yukihiro Nakai <Nakai@technologist.com>
# $FreeBSD$
PORTNAME= gettext
PORTVERSION= 0.18.3.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= gettext
# note: before committing to this port, contact portmgr to arrange for an
# experimental ports run. Untested commits may be backed out at portmgr's
# discretion.
MAINTAINER= autotools@FreeBSD.org
COMMENT= GNU gettext package
USES= charsetfix iconv
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-csharp --disable-java \
--disable-openmp --disable-threads \
--with-included-gettext --with-included-glib \
--with-included-libcroco --with-included-libunistring \
--with-included-libxml ${ICONV_CONFIGURE_ARG} \
--without-emacs --without-git
USE_LDCONFIG= yes
INFO= autosprintf gettext
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MDOCS}
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-nodocs
.endif
post-patch:
.if ! ${PORT_OPTIONS:MDOCS}
.for dir in runtime tools
@${REINPLACE_CMD} -e 's|^SUBDIRS = doc|SUBDIRS =|' \
${WRKSRC}/gettext-${dir}/Makefile.in
.endfor
.endif
post-install:
@${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/gettext-tools/doc \
${MAKE_ARGS} install-info-am
.include <bsd.port.mk>