SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libgnomecanvasmm"

# SliTaz package receipt.

PACKAGE="libgnomecanvasmm"
VERSION="2.26.0"
CATEGORY="x-window"
SHORT_DESC="A C++ wrapper for libgnomecanvas."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="LGPL2.1"
WEB_SITE="https://www.gtkmm.org/en/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="gtkmm libgnomecanvas"
BUILD_DEPENDS="gtkmm-dev libgnomecanvas-dev"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|.*glibmm/propertyproxy.h|#include <gtkmm.h>\n&|' \
        libgnomecanvas/libgnomecanvasmm/properties.h
    sed -i 's|gtkmm/main|gtkmm|' \
        demos/canvas.cc \
        libgnomecanvas/libgnomecanvasmm/init.cc \
        examples/canvas_affine/canvas_affine.cc \
        examples/canvas_events/canvas_events.cc
    ./configure \
        --sysconfdir=/etc \
        --localstatedir=/var \
        $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
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)