naddy 91e38b82ed Split gettext into a small runtime component and a separate large
set of development tools as recommended by upstream.

Ports will continue to depend on devel/gettext for libintl.  The
gettext module also provides an automatic build dependency on
devel/gettext-tools for msgfmt etc.

A few ports that require a library provided by gettext-tools get a
corresponding dependency.

Also update gettext to 0.19.5.1.

COMMENT and DESCR from FreeBSD.  Bulk build testing by sthen@.

ok sthen@
2015-07-19 23:46:08 +00:00

47 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.76 2015/07/19 23:46:08 naddy Exp $
COMMENT= GNU gettext runtime libraries and programs
DISTNAME= gettext-0.19.5.1
SHARED_LIBS += intl 6.0 # 9.3
SHARED_LIBS += asprintf 1.1 # unknown
CATEGORIES= devel
# DPB: parallel-safe, not worth it. Too much time in configure
MASTER_SITES= ${MASTER_SITE_GNU:=gettext/}
EXTRACT_SUFX= .tar.xz
HOMEPAGE= https://www.gnu.org/software/gettext/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# LGPLv2.1, GPLv3
PERMIT_PACKAGE_CDROM= Yes
MODULES= converters/libiconv
WANTLIB= c m stdc++
WRKSRC= ${WRKDIST}/gettext-runtime
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-csharp \
--disable-java \
--with-libiconv-prefix="${LOCALBASE}" \
--with-included-gettext
CONFIGURE_ENV += gl_cv_have_weak=yes
MODGNU_CONFIG_GUESS_DIRS=${WRKDIST}/build-aux
EXTRA_LOCALES= en he lv no
# only in gettext-tools
EXTRA_LOCALES+= eu pa
post-install:
for l in ${EXTRA_LOCALES}; do \
${INSTALL_DATA_DIR} ${PREFIX}/share/locale/$$l/LC_MESSAGES; \
done
.include <bsd.port.mk>