2008-10-04 06:29:49 +02:00
|
|
|
# Template build file for 'glib'
|
|
|
|
pkgname=glib
|
2014-03-27 08:19:23 +01:00
|
|
|
version=2.40.0
|
2014-06-06 05:29:27 +02:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-05-13 17:26:50 +02:00
|
|
|
configure_args="--disable-fam --with-pcre=system --enable-static"
|
2014-06-06 06:43:15 +02:00
|
|
|
hostmakedepends="automake libtool pkg-config perl python libxslt docbook-xsl which"
|
2014-06-06 05:27:12 +02:00
|
|
|
makedepends="zlib-devel pcre-devel>=8.30 libffi-devel>=3.1 dbus-devel"
|
2008-09-26 21:59:07 +02:00
|
|
|
short_desc="The GNU library of C routines"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-06 08:30:19 +02:00
|
|
|
homepage="http://www.gtk.org/"
|
|
|
|
license="LGPL-2.1"
|
2014-03-27 08:19:23 +01:00
|
|
|
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-$version.tar.xz"
|
|
|
|
checksum=0d27f195966ecb1995dcce0754129fd66ebe820c7cd29200d264b02af1aa28b5
|
2013-02-13 10:38:27 +01:00
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-06-06 06:43:15 +02:00
|
|
|
hostmakedepends+=" glib-devel"
|
2013-02-13 10:38:27 +01:00
|
|
|
fi
|
2013-04-12 13:13:49 +02:00
|
|
|
|
2014-02-11 09:39:28 +01:00
|
|
|
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
|
|
|
|
|
2014-06-06 06:43:15 +02:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2013-04-12 13:13:49 +02:00
|
|
|
libglib-devel_package() {
|
2013-11-12 17:44:28 +01:00
|
|
|
depends="zlib-devel pcre-devel libffi-devel glib>=${version}_${revision}"
|
2013-05-13 17:13:21 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
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 20:35:27 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 13:13:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
glib-devel_package() {
|
2013-11-12 17:44:28 +01:00
|
|
|
depends="python perl libglib-devel>=${version}_${revision}"
|
2013-05-13 17:13:21 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|