2008-10-04 04:29:49 +00:00
|
|
|
# Template build file for 'glib'
|
|
|
|
pkgname=glib
|
2013-04-17 17:54:25 +00:00
|
|
|
version=2.36.1
|
2013-03-28 05:22:06 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-03-24 09:21:58 +00:00
|
|
|
configure_args="--disable-fam --with-pcre=system --enable-static --enable-man"
|
2013-03-28 05:22:06 +00:00
|
|
|
hostmakedepends="pkg-config perl python libxslt docbook-xsl"
|
|
|
|
makedepends="zlib-devel pcre-devel>=8.30 libffi-devel dbus-devel elfutils-devel"
|
2008-09-26 19:59:07 +00:00
|
|
|
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"
|
2013-03-28 05:22:06 +00:00
|
|
|
distfiles="${GNOME_SITE}/glib/2.36/glib-$version.tar.xz"
|
2013-04-17 17:54:25 +00:00
|
|
|
checksum=7de37586794e92c024feebe5d306bf5f245fef4803c3666af1ae8dac6ee10b24
|
2013-02-13 09:38:27 +00:00
|
|
|
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-04-12 11:13:49 +00:00
|
|
|
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
|
2013-02-26 15:32:59 +00:00
|
|
|
ac_cv_func_posix_getgrgid_r=yes"
|
2013-04-17 17:54:25 +00:00
|
|
|
hostmakedepends+=" libtool automake which gtk-doc gettext-devel glib-devel"
|
2013-02-13 09:38:27 +00:00
|
|
|
pre_configure() {
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
}
|
|
|
|
fi
|
2013-04-12 11:13:49 +00:00
|
|
|
|
|
|
|
libglib-devel_package() {
|
|
|
|
depends="zlib-devel pcre-devel libffi-devel glib-${version}_${revision}"
|
|
|
|
short_desc="${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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
glib-devel_package() {
|
|
|
|
depends="python perl libglib-devel-${version}_${revision}"
|
|
|
|
short_desc="${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() {
|
2013-04-12 11:20:10 +00:00
|
|
|
vmove usr/bin/gobject-query
|
|
|
|
vmove usr/bin/gresource
|
|
|
|
vmove usr/bin/gsettings
|
|
|
|
vmove usr/bin/glib-compile-schemas
|
|
|
|
vmove usr/bin/gio-querymodules
|
|
|
|
vmove usr/bin/gdbus
|
|
|
|
vmove usr/share/man/man1/gsettings.1
|
|
|
|
vmove usr/share/man/man1/glib-compile-schemas.1
|
|
|
|
vmove usr/share/man/man1/gdbus.1
|
|
|
|
vmove usr/share/man/man1/gio-querymodules.1
|
|
|
|
vmove usr/share/man/man1/gobject-query.1
|
|
|
|
vmove usr/share/man/man1/gresource.1
|
|
|
|
vmove "usr/lib/*.so*"
|
2013-04-12 11:13:49 +00:00
|
|
|
vmove usr/share/locale
|
|
|
|
vmove usr/share/bash-completion
|
|
|
|
}
|
|
|
|
}
|