wok-next view libtkimg/receipt @ rev 21108
Small updates.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 07 11:27:51 2019 +0200 (2019-01-07) |
parents | df20b2110f7e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libtkimg"
4 VERSION="1.4.2"
5 CATEGORY="development"
6 SHORT_DESC="Extended image format support for Tcl/Tk"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD GPL2"
9 WEB_SITE="http://tkimg.sourceforge.net/"
10 REPOLOGY="tkimg"
12 TARBALL="tkimg$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/tkimg/$TARBALL"
15 BUILD_DEPENDS="tcllib tcl-dev tk-dev xorg-dev"
16 SPLIT="$PACKAGE-dev"
18 compile_rules() {
19 make distclean
20 ./configure \
21 --prefix=/usr \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make all &&
25 make INSTALL_ROOT=$install install
26 }
28 genpkg_rules() {
29 case $PACKAGE in
30 libtkimg)
31 mkdir -p $fs/usr/lib/Img$VERSION
32 cp -a $install/usr/lib/*.sh $fs/usr/lib
33 cp -a $src/Img/exec_prefix/lib/*.sh $fs/usr/lib
34 cat $install/usr/lib/Img$VERSION/*.tcl \
35 $src/Img/exec_prefix/lib/Img/*.tcl > \
36 $fs/usr/lib/Img$VERSION/pkgIndex.tcl
37 cp -a $install/usr/lib/Img$VERSION/*.so $fs/usr/lib/Img$VERSION
38 cp -a $src/Img/exec_prefix/lib/Img/*.so $fs/usr/lib/Img$VERSION
39 DEPENDS="tk"
40 ;;
41 *-dev)
42 mkdir -p $fs/usr/lib/Img$VERSION
43 cp -a $install/usr/lib/Img$VERSION/*.a $fs/usr/lib/Img$VERSION
44 cp -a $src/Img/exec_prefix/lib/Img/*.a $fs/usr/lib/Img$VERSION
45 cp -a $install/usr/include $fs/usr
46 cp -a $src/Img/prefix/include $fs/usr
47 ;;
48 esac
49 }