blob: 9af1844391686f2ea5a2abe0134d34a4179f9271 (
plain)
1 # Description: library to load glade interface files in a program at runtime
2 # URL: http://glade.gnome.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: libglade pango-compat
5
6 name=libglade-compat
7 version=2.6.4
8 release=1
9 source=(http://download.gnome.org/sources/libglade/2.6/libglade-$version.tar.bz2
10 libglade-2.0.1-nowarning.patch)
11
12 build() {
13 cd libglade-$version
14
15 sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
16 -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
17
18 sed -i -e "s|/etc/xml/catalog|$PKG/etc/xml/dtd/libglade/2.0/catalog|" \
19 -e 's|$(datadir)/xml/libglade|$(datadir)/xml/dtd/libglade/2.0|' Makefile.in
20
21 patch -p1 -i $SRC/libglade-2.0.1-nowarning.patch
22
23 PKG_CONFIG_PATH+="/usr/lib/pango-compat/pkgconfig" \
24 ./configure \
25 --prefix=/usr \
26 --includedir='/usr/include/libglade-compat' \
27 --libdir='/usr/lib/libglade-compat' \
28 --disable-debug \
29 --disable-gtk-doc
30
31 make
32 make DESTDIR=$PKG install
33
34 rm -rf $PKG/usr/share/gtk-doc
35
36 rm \
37 $PKG/usr/bin/libglade-convert \
38 $PKG/usr/share/xml/dtd/libglade/2.0/glade-2.0.dtd
39 }
|