wok-next view perl-tk/receipt @ rev 19879
qemacs: does not need gcc3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 04 18:36:44 2017 +0200 (2017-10-04) |
parents | dfb3d7f1daed |
children | dd145c435e4b |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="perl-tk"
4 VERSION="804.033"
5 CATEGORY="perl"
6 SHORT_DESC="Tk - a graphical user interface toolkit for Perl"
7 MAINTAINER="sygne@ombres.eu"
8 LICENSE="GPL"
9 WEB_SITE="https://metacpan.org/release/Tk"
11 TARBALL="Tk-$VERSION.tar.gz"
12 WGET_URL="https://cpan.metacpan.org/authors/id/S/SR/SREZIC/$TARBALL"
14 BUILD_DEPENDS="perl-dev xorg-libX11-dev freetype-dev xorg-libXft-dev \
15 fontconfig-dev libpng-dev zlib-dev libjpeg-turbo-dev tk-dev"
16 SPLIT="perl-tk-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # The Xlib header is wrong...
22 sed -i 's/XKeycodeToKeysym\(.*\)unsigned int/XKeycodeToKeysym\1KeyCode/' \
23 pTk/Xlib.h
25 perl Makefile.PL &&
26 make DESTDIR=$install install &&
28 chmod -R u+w $install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 perl-tk)
36 copy @std
37 DEPENDS="perl fontconfig libjpeg-turbo libpng xorg-libX11 \
38 xorg-libXft zlib tk"
39 ;;
40 *-dev)
41 copy @dev
42 ;;
43 esac
44 }