wok-current view tix/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | 5f6c5106b1f5 |
children |
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="https://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 }