void-packages/srcpkgs/glib/template

74 lines
2.3 KiB
Text
Raw Normal View History

# Template build file for 'glib'
pkgname=glib
2014-03-27 07:19:23 +00:00
version=2.40.0
2013-03-28 05:22:06 +00:00
revision=1
build_style=gnu-configure
configure_args="--disable-fam --with-pcre=system --enable-static"
2013-09-25 07:21:55 +00:00
hostmakedepends="pkg-config perl python libxslt docbook-xsl which"
makedepends="zlib-devel pcre-devel>=8.30 libffi-devel dbus-devel"
short_desc="The GNU library of C routines"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-06-06 06:30:19 +00:00
homepage="http://www.gtk.org/"
license="LGPL-2.1"
2014-03-27 07:19:23 +00:00
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-$version.tar.xz"
checksum=0d27f195966ecb1995dcce0754129fd66ebe820c7cd29200d264b02af1aa28b5
2013-02-13 09:38:27 +00:00
if [ "$CROSS_BUILD" ]; then
configure_args+=" glib_cv_long_long_format=I64
2013-02-13 09:38:27 +00:00
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"
2013-09-25 07:21:55 +00:00
hostmakedepends+=" libtool glib-devel"
pre_configure() {
libtoolize -f
}
2013-02-13 09:38:27 +00:00
fi
case "$XBPS_TARGET_MACHINE" in
# disable libelf on musl, our elfutils version uses GNU extensions.
*-musl) configure_args+=" --disable-libelf";;
*) configure_args+=" --enable-libelf"; makedepends+=" elfutils-devel";;
esac
libglib-devel_package() {
2013-11-12 16:44:28 +00:00
depends="zlib-devel pcre-devel libffi-devel glib>=${version}_${revision}"
2013-05-13 15:13:21 +00:00
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"
2013-08-07 18:35:27 +00:00
vmove "usr/lib/*.so"
}
}
glib-devel_package() {
2013-11-12 16:44:28 +00:00
depends="python perl libglib-devel>=${version}_${revision}"
2013-05-13 15:13:21 +00:00
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
}
}