wok-next view libtkimg/receipt @ rev 20597
lostirc: typo, `install -D` is enough.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Apr 16 22:03:47 2018 +0300 (2018-04-16) |
parents | d8b4e22f4be1 |
children | df20b2110f7e |
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/"
11 TARBALL="tkimg$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/tkimg/$TARBALL"
14 BUILD_DEPENDS="tcllib tcl-dev tk-dev xorg-dev"
15 SPLIT="libtkimg-dev"
17 compile_rules() {
18 make distclean
19 ./configure \
20 --prefix=/usr \
21 --mandir=/usr/share/man \
22 $CONFIGURE_ARGS &&
23 make all &&
24 make INSTALL_ROOT=$DESTDIR install
25 }
27 genpkg_rules() {
28 case $PACKAGE in
29 libtkimg)
30 mkdir -p $fs/usr/lib/Img$VERSION
31 cp -a $install/usr/lib/*.sh $fs/usr/lib
32 cp -a $src/Img/exec_prefix/lib/*.sh $fs/usr/lib
33 cat $install/usr/lib/Img$VERSION/*.tcl \
34 $src/Img/exec_prefix/lib/Img/*.tcl > \
35 $fs/usr/lib/Img$VERSION/pkgIndex.tcl
36 cp -a $install/usr/lib/Img$VERSION/*.so $fs/usr/lib/Img$VERSION
37 cp -a $src/Img/exec_prefix/lib/Img/*.so $fs/usr/lib/Img$VERSION
38 DEPENDS="tk"
39 ;;
40 *-dev)
41 mkdir -p $fs/usr/lib/Img$VERSION
42 cp -a $install/usr/lib/Img$VERSION/*.a $fs/usr/lib/Img$VERSION
43 cp -a $src/Img/exec_prefix/lib/Img/*.a $fs/usr/lib/Img$VERSION
44 cp -a $install/usr/include $fs/usr
45 cp -a $src/Img/prefix/include $fs/usr
46 ;;
47 esac
48 }