wok annotate libgnomecanvasmm/receipt @ rev 25502
Up memtest-efi* (6.01)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 15 09:58:15 2023 +0000 (22 months ago) |
parents | eeba7ab1dffe |
children |
rev | line source |
---|---|
slaxemulator@13120 | 1 # SliTaz package receipt. |
slaxemulator@13120 | 2 |
slaxemulator@13120 | 3 PACKAGE="libgnomecanvasmm" |
slaxemulator@13120 | 4 VERSION="2.26.0" |
slaxemulator@13120 | 5 CATEGORY="x-window" |
slaxemulator@13120 | 6 SHORT_DESC="A C++ wrapper for libgnomecanvas." |
slaxemulator@13120 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14714 | 8 LICENSE="LGPL2.1" |
pascal@20674 | 9 WEB_SITE="https://www.gtkmm.org/en/" |
slaxemulator@13120 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@13120 | 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
slaxemulator@13120 | 12 |
slaxemulator@13120 | 13 DEPENDS="gtkmm libgnomecanvas" |
slaxemulator@13120 | 14 BUILD_DEPENDS="gtkmm-dev libgnomecanvas-dev" |
slaxemulator@13120 | 15 |
pascal@24111 | 16 current_version() |
pascal@24111 | 17 { |
pascal@24111 | 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24111 | 19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24111 | 20 } |
pascal@24111 | 21 |
slaxemulator@13120 | 22 # Rules to configure and make the package. |
slaxemulator@13120 | 23 compile_rules() |
slaxemulator@13120 | 24 { |
pascal@14739 | 25 sed -i 's|.*glibmm/propertyproxy.h|#include <gtkmm.h>\n&|' \ |
pascal@14739 | 26 libgnomecanvas/libgnomecanvasmm/properties.h |
pascal@14739 | 27 sed -i 's|gtkmm/main|gtkmm|' \ |
pascal@14739 | 28 demos/canvas.cc \ |
pascal@14739 | 29 libgnomecanvas/libgnomecanvasmm/init.cc \ |
pascal@14739 | 30 examples/canvas_affine/canvas_affine.cc \ |
pascal@14739 | 31 examples/canvas_events/canvas_events.cc |
slaxemulator@13120 | 32 ./configure \ |
slaxemulator@13120 | 33 --sysconfdir=/etc \ |
slaxemulator@13120 | 34 --localstatedir=/var \ |
slaxemulator@13120 | 35 $CONFIGURE_ARGS && |
slaxemulator@13120 | 36 make && make install |
slaxemulator@13120 | 37 } |
slaxemulator@13120 | 38 |
slaxemulator@13120 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13120 | 40 genpkg_rules() |
slaxemulator@13120 | 41 { |
slaxemulator@13120 | 42 mkdir -p $fs/usr/lib |
slaxemulator@13120 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@13120 | 44 } |