wok-6.x view tix/receipt @ rev 25122

Up apache (2.4.54)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 28 08:48:09 2022 +0000 (2022-06-28)
parents 5f652b930fb9
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="tix"
4 SOURCE="Tix"
5 VERSION="8.4.3"
6 CATEGORY="development"
7 SHORT_DESC="Tk Interface eXtension."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 TARBALL="$SOURCE$VERSION-src.tar.gz"
11 WEB_SITE="http://tix.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="tcl xorg-libX11 xorg-libXau xorg-libXdmcp libxcb"
15 BUILD_DEPENDS="tcl-dev tk-dev xorg-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/tix/files/tix/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/tix/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # tcl 8.6 support
29 sed -i 's|#include.*tcl\.h.*|#define USE_INTERP_RESULT 1\n&|' \
30 generic/tix.h generic/tixPort.h generic/tixUtils.c \
31 PyTix-2.0/2.0/_tkinter.c PyTix-2.0/2.0/tkappinit.c
32 ./configure --prefix=/usr $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs
41 }