aboutsummaryrefslogtreecommitdiff
path: root/devel/gettext-runtime/Makefile
blob: 99e839efaa9393e4b5484af484b594cbfff9bbd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $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=	2

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
TEST_TARGET=	check
USES=		charsetfix cpe iconv libtool tar:xz
USE_LDCONFIG=	yes
WRKSRC_SUBDIR=	gettext-runtime

INFO=		autosprintf
CPE_PRODUCT=	gettext
CPE_VENDOR=	gnu

.include <bsd.port.options.mk>

.if ${OPSYS} == DragonFly
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

.include <bsd.port.mk>