#! /usr/bin/make -f

gettext gettext-dev gettext-doc: gettext.buildstamp

.SILENT: gettext.buildstamp
gettext.buildstamp:
	cd src/gettext-runtime && \
		./configure --prefix=/usr \
		--enable-threads --disable-java && \
		make && make DESTDIR=$$(pwd)/../../dest install
	oh-strip -gl /usr/lib/libasprintf.so.0.0.0
	oh-strip -g /usr/bin/gettext /usr/bin/ngettext /usr/bin/envsubst
	oh-installfiles gettext gettext-dev gettext-doc
	oh-installdocs gettext
	oh-gencontrol gettext gettext-dev gettext-doc
	oh-buildopk gettext gettext-dev gettext-doc
	touch gettext.buildstamp