ports/devel/gettext-runtime/Makefile
Tijl Coosemans edb7229dd4 Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. The
first contains runtime libraries such as libintl and the latter contains
developer tools such as msgfmt.  Ports that use gettext will usually need
a LIB_DEPENDS on gettext-runtime and a BUILD_DEPENDS on gettext-tools.

USES=gettext-runtime can be used to set a LIB/BUILD/RUN_DEPENDS on
devel/gettext-runtime and USES=gettext-tools can be used to set a
BUILD/RUN_DEPENDS on devel/gettext-tools.  USES=gettext is now the same
as "USES=gettext-runtime gettext-tools" meaning a LIB_DEPENDS on
devel/gettext-runtime and a BUILD_DEPENDS on devel/gettext-tools.

Update gettext to 0.19.3.

Remove :oldver from converters/libiconv and devel/gettext-runtime.  Leave
symlinks with the old library versions to avoid the need to bump
PORTREVISION on a large number of dependent ports.  When most of the
dependent ports have had normal version updates, PORTREVISION can be
bumped on the remaining ones (low number) and the links can be removed.

Fix some ports that installed files in lib/locale instead of share/locale.

PR:		194038
Reviewed by:	bapt
Exp-run:	antoine
Approved by:	portmgr (antoine)
2014-11-29 18:22:32 +00:00

52 lines
1.4 KiB
Makefile

# $FreeBSD$
# 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.
PORTNAME= gettext-runtime
PORTREVISION= 0
COMMENT= GNU gettext runtime libraries and programs
LICENSE= LGPL21 GPLv3
LICENSE_COMB= multi
LICENSE_FILE_LGPL21= ${WRKSRC}/intl/COPYING.LIB
LICENSE_FILE_GPLv3= ${WRKSRC}/../COPYING
.include "${.CURDIR}/../gettext/Makefile.common"
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-csharp --disable-java --with-included-gettext \
ac_cv_lib_rt_sched_yield=no
INSTALL_TARGET= install-strip
USES= charsetfix iconv libtool tar:xz
USE_LDCONFIG= yes
WRKSRC_SUBDIR= gettext-runtime
INFO= autosprintf
.include <bsd.port.options.mk>
.if ${OPSYS} == DragonFly || (${OPSYS} == FreeBSD && ${OSVERSION} < 900506)
CONFIGURE_ARGS+=--disable-threads
.endif
post-patch:
# Do not install csharp and java documentation.
@${REINPLACE_CMD} -E '/^SUBDIRS =/s/(intl-csharp|intl-java)//g' \
${WRKSRC}/Makefile.in
# Do not install html copies of manpages.
@${REINPLACE_CMD} \
-e '/^all-local:/s/html-local//' \
-e '/^install-data-local:/s/install-html//' \
-e '/^installdirs-local:/s/installdirs-html//' \
${WRKSRC}/libasprintf/Makefile.in ${WRKSRC}/man/Makefile.in
post-install:
${LN} -s libintl.so.8 ${STAGEDIR}${PREFIX}/lib/libintl.so.9
regression-test: build
@(cd ${WRKSRC} && ${MAKE_CMD} check)
.include <bsd.port.mk>