CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
dillo: fixed AR usage and added ssl support (https)
[attic/ports/opt-cross.git] / mcabber / Pkgfile
CommitLineData
abdf956c
VM
1# Description: A console Jabber client.
2# URL: http://mcabber.com/
38b50d66 3# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
abdf956c
VM
4# Depends on: ncurses
5
6name=mcabber
7version=0.9.10
8release=1
9source=(http://mcabber.com/files/$name-$version.tar.bz2)
10
11build() {
12 cd $name-$version
13 sed -e '/#undef malloc/d' -e '/#undef realloc/d' -i config.h.in
14 sed -e 's|`$PKG_CONFIG --cflags $pkg_config_args`|"-I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include"|g' -i configure
15 ./configure --build=$CHOST \
16 --host=$CTARGET \
17 --disable-nls \
18 --prefix=/usr \
19 --disable-glibtest
20 sed -e '/#define realloc rpl_realloc/d' \
21 -e '/#define malloc rpl_malloc/d' \
22 -i config.h
23 find -type f -name 'Makefile' \
24 -exec sed -e "s|-I/usr|-I$CLFS/usr|g" -e "s|-O2 -O2|-O2|g" -i {} \;
25 make
26 make DESTDIR=$PKG install
27 rm -r $PKG/usr/share/mcabber
28}