2014-12-27 11:11:05 +01:00
|
|
|
# Template file for 'gettext'
|
2008-10-24 05:47:41 +02:00
|
|
|
pkgname=gettext
|
2015-09-15 07:36:01 +02:00
|
|
|
version=0.19.6
|
2015-07-13 09:20:54 +02:00
|
|
|
revision=1
|
2015-05-18 16:43:12 +02:00
|
|
|
bootstrap=yes
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2009-03-18 10:02:43 +01:00
|
|
|
configure_args="--disable-java --disable-native-java --disable-csharp
|
2012-12-27 12:42:00 +01:00
|
|
|
--disable-libasprintf --enable-threads=posix --disable-rpath --without-emacs
|
2015-05-18 16:43:12 +02:00
|
|
|
--disable-openmp --with-included-libxml --with-included-libcroco
|
|
|
|
--disable-acl --with-included-glib --with-included-libcroco --without-git
|
2015-05-18 17:01:27 +02:00
|
|
|
--with-included-libxml --disable-openmp --disable-curses
|
2015-06-16 08:13:19 +02:00
|
|
|
--without-examples --enable-nls gl_cv_func_gettimeofday_clobber=no"
|
2008-10-24 05:47:41 +02:00
|
|
|
short_desc="Internationalized Message Handling Library and tools"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-12-27 12:37:02 +01:00
|
|
|
homepage="http://www.gnu.org/software/gettext/"
|
|
|
|
license="GPL-3"
|
|
|
|
distfiles="http://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${version}.tar.gz"
|
2015-09-15 07:36:01 +02:00
|
|
|
checksum=ed4b4c19bd3a3034eb6769500a3592ff616759ef43cf30586dbb7a17c9dd695d
|
2013-04-12 13:13:49 +02:00
|
|
|
|
2015-06-16 08:13:19 +02:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
# force libintl
|
|
|
|
*-musl) configure_args+=" --with-included-gettext";;
|
|
|
|
esac
|
|
|
|
|
2013-07-08 15:32:20 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-09-25 09:29:56 +02:00
|
|
|
hostmakedepends="automake libtool git"
|
2013-07-08 15:32:20 +02:00
|
|
|
pre_configure() {
|
2014-12-27 11:11:05 +01:00
|
|
|
autoreconf -fi
|
2013-07-08 15:32:20 +02:00
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
2015-05-21 11:45:03 +02:00
|
|
|
post_install() {
|
|
|
|
# Fix conflict with musl.
|
|
|
|
if [ -e ${DESTDIR}/usr/include/libintl.h ]; then
|
|
|
|
vmkdir usr/include/gettext
|
|
|
|
mv ${DESTDIR}/usr/include/libintl.h ${DESTDIR}/usr/include/gettext/libintl.h
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2015-05-18 16:43:12 +02:00
|
|
|
gettext-devel-examples_package() {
|
|
|
|
noarch=yes
|
|
|
|
short_desc+=" - examples for development"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/doc/gettext
|
|
|
|
}
|
|
|
|
}
|
2013-04-12 13:13:49 +02:00
|
|
|
gettext-devel_package() {
|
2014-09-25 09:29:56 +02:00
|
|
|
depends="gettext-libs>=${version}_${revision}"
|
2013-07-08 15:19:55 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2014-12-27 11:11:05 +01:00
|
|
|
vmove usr/lib/*.a
|
2013-04-12 13:13:49 +02:00
|
|
|
vmove usr/share/aclocal
|
|
|
|
vmove usr/share/gettext
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gettext-libs_package() {
|
2013-07-08 15:19:55 +02:00
|
|
|
short_desc+=" - shared libraries"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
2014-12-27 11:11:05 +01:00
|
|
|
vmove usr/lib/*.so*
|
2013-04-12 13:13:49 +02:00
|
|
|
}
|
|
|
|
}
|