SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "glibmm"

# SliTaz package receipt.

PACKAGE="glibmm"
VERSION="2.40.0"
CATEGORY="x-window"
SHORT_DESC="C++ interface for the popular GUI library GTK+."
MAINTAINER="pankso@slitaz.org"
LICENSE="LGPL2.1"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://www.gtkmm.org/"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="glib libsigc++ gcc-lib-base glibc-base libffi pcre"
BUILD_DEPENDS="glib-dev libsigc++-dev"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | sed '/LATEST/!d;s|.*IS-||;s|<.*||'
}

# Rules to configure and make the package.
compile_rules()
{
    find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
    sed 's/return gobject_;/return \&gobject_;/' -i glib/glibmm/threads.h
    ./configure $CONFIGURE_ARGS && 
    make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    # Remove libgiomm
    rm -rf $fs/usr/lib/libgiomm*
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)