wok-current view libgnomecanvasmm/receipt @ rev 24785
updated libspectre (0.2.7 -> 0.2.9)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 21 08:02:35 2022 +0100 (2022-03-21) |
parents | eeba7ab1dffe |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libgnomecanvasmm"
4 VERSION="2.26.0"
5 CATEGORY="x-window"
6 SHORT_DESC="A C++ wrapper for libgnomecanvas."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://www.gtkmm.org/en/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="gtkmm libgnomecanvas"
14 BUILD_DEPENDS="gtkmm-dev libgnomecanvas-dev"
16 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's|.*glibmm/propertyproxy.h|#include <gtkmm.h>\n&|' \
26 libgnomecanvas/libgnomecanvasmm/properties.h
27 sed -i 's|gtkmm/main|gtkmm|' \
28 demos/canvas.cc \
29 libgnomecanvas/libgnomecanvasmm/init.cc \
30 examples/canvas_affine/canvas_affine.cc \
31 examples/canvas_events/canvas_events.cc
32 ./configure \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 $CONFIGURE_ARGS &&
36 make && make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 }