void-packages/srcpkgs/glib/template
2013-08-07 20:46:49 +02:00

74 lines
2.1 KiB
Text

# Template build file for 'glib'
pkgname=glib
version=2.36.4
revision=1
build_style=gnu-configure
configure_args="--disable-fam --with-pcre=system --enable-static"
hostmakedepends="pkg-config libtool gtk-doc gettext-devel perl python libxslt docbook-xsl which automake"
makedepends="zlib-devel pcre-devel>=8.30 libffi-devel dbus-devel elfutils-devel"
short_desc="The GNU library of C routines"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gtk.org/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/glib/2.36/glib-$version.tar.xz"
checksum=f654d2542329012d8475736a165dfbf82fadf3ee940c2e0e6ddd4b2fde5cad7e
if [ "$CROSS_BUILD" ]; then
configure_args+=" glib_cv_long_long_format=I64
glib_cv_stack_grows=no glib_cv_rtldglobal_broken=no
glib_cv_uscore=no blib_cv_use_pid_surrogate=yes
ac_cv_func_vsnprintf_c99=yes
ac_cv_func_printf_unix98=yes
ac_cv_func_posix_getpwuid_r=yes
ac_cv_func_posix_getgrgid_r=yes
ac_cv_func_posix_getgrgid_r=yes"
hostmakedepends+=" glib-devel"
fi
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
libglib-devel_package() {
depends="zlib-devel pcre-devel libffi-devel glib-${version}_${revision}"
short_desc+=" - development files"
replaces="glib-devel<2.34.3_3"
pkg_install() {
vmove usr/include
vmove usr/lib/glib-2.0
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
glib-devel_package() {
depends="python perl libglib-devel-${version}_${revision}"
short_desc+=" - development files"
pycompile_dirs="/usr/share/glib-2.0"
pkg_install() {
vmove usr/bin/glib-compile-resources
vmove usr/bin/glib-genmarshal
vmove usr/bin/glib-mkenums
vmove usr/bin/gtester-report
vmove usr/bin/gdbus-codegen
vmove usr/bin/gtester
vmove usr/bin/glib-gettextize
vmove usr/share/man/man1/glib-compile-resources.1
vmove usr/share/man/man1/glib-gettextize.1
vmove usr/share/man/man1/gtester.1
vmove usr/share/man/man1/glib-mkenums.1
vmove usr/share/man/man1/gdbus-codegen.1
vmove usr/share/man/man1/glib-genmarshal.1
vmove usr/share/man/man1/gtester-report.1
for f in gtk-doc aclocal glib-2.0 gdb; do
vmove usr/share/${f}
done
}
}
glib_package() {
pkg_install() {
vmove all
}
}