wok-next annotate xterm/receipt @ rev 19839
Up xterm
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Aug 13 16:44:00 2017 +0300 (2017-08-13) |
parents | 9db5705d64a7 |
children | 0e7893ac206d |
rev | line source |
---|---|
al@19839 | 1 # SliTaz package receipt v2. |
pankso@23 | 2 |
pankso@23 | 3 PACKAGE="xterm" |
al@19839 | 4 VERSION="330" |
pankso@201 | 5 CATEGORY="utilities" |
al@17992 | 6 SHORT_DESC="X terminal emulator" |
pankso@23 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15601 | 8 LICENSE="MIT" |
al@19839 | 9 WEB_SITE="http://invisible-island.net/xterm/" |
al@19839 | 10 HOST_ARCH="i486 arm" |
al@19839 | 11 COOKOPTS="!pixmaps" |
al@19839 | 12 |
slaxemulator@11126 | 13 TARBALL="$PACKAGE-$VERSION.tgz" |
al@19839 | 14 WGET_URL="ftp://ftp.invisible-island.net/xterm/$TARBALL" |
slaxemulator@11126 | 15 |
al@19839 | 16 BUILD_DEPENDS="ncurses-dev xorg-libXpm-dev xorg-libXinerama-dev \ |
al@19839 | 17 xorg-libXaw3d-dev xorg-libXcursor-dev freetype-dev expat-dev fontconfig-dev \ |
al@19839 | 18 xorg-libXft-dev xorg-libXt-dev" |
pankso@16064 | 19 |
pankso@23 | 20 # Rules to configure and make the package. |
pankso@23 | 21 compile_rules() |
pankso@23 | 22 { |
pascal@17670 | 23 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
pankso@16064 | 24 ./configure \ |
pankso@16064 | 25 --prefix=/usr \ |
pankso@16064 | 26 --sysconfdir=/etc \ |
pankso@16064 | 27 --mandir=/usr/share/man \ |
pankso@16064 | 28 --localstatedir=/var \ |
al@19839 | 29 --with-icon-symlink \ |
al@19839 | 30 --disable-desktop \ |
al@19839 | 31 --with-x \ |
psychomaniak@18795 | 32 --with-Xaw3d \ |
pankso@16064 | 33 --with-app-defaults=/usr/share/X11/app-defaults \ |
pankso@2740 | 34 --enable-wide-chars \ |
pankso@2740 | 35 --enable-freetype \ |
pankso@2740 | 36 --enable-doublechars \ |
psychomaniak@16936 | 37 --enable-256-color \ |
psychomaniak@17179 | 38 --enable-meta-sends-esc \ |
psychomaniak@17179 | 39 --disable-delete-is-del \ |
psychomaniak@17179 | 40 --disable-sun-fkeys \ |
psychomaniak@17179 | 41 --disable-boxchars \ |
psychomaniak@17179 | 42 --disable-tek4014 \ |
psychomaniak@17179 | 43 --disable-vt52 \ |
psychomaniak@17179 | 44 --disable-luit \ |
al@19839 | 45 --enable-sixel-graphics \ |
psychomaniak@17340 | 46 --disable-rectangles \ |
pankso@16064 | 47 $CONFIGURE_ARGS && |
pankso@16064 | 48 make && |
pankso@16064 | 49 make DESTDIR=$DESTDIR install |
pankso@23 | 50 |
al@19839 | 51 cat >> $install/usr/share/X11/app-defaults/XTerm <<EOT |
psychomaniak@18845 | 52 ! |
psychomaniak@18845 | 53 ! libXaw3d options |
psychomaniak@18845 | 54 xterm*beNiceToColormap: false |
psychomaniak@18845 | 55 xterm*SmeBSB.shadowWidth: 3 |
psychomaniak@18845 | 56 xterm*topShadowContrast: 20 |
psychomaniak@18845 | 57 xterm*bottomShadowContrast: 50 |
psychomaniak@18845 | 58 EOT |
al@19839 | 59 |
al@19839 | 60 for size in 16 48; do |
al@19839 | 61 dir=$install/usr/share/icons/hicolor/${size}x$size/apps |
al@19839 | 62 mkdir -p $dir |
al@19839 | 63 cp $src/icons/mini.xterm_${size}x$size.png $dir/xterm.png |
al@19839 | 64 done |
pankso@23 | 65 } |
pankso@16064 | 66 |
pankso@16064 | 67 # One of the first X apps cross compiled. Be sure all went well |
al@19839 | 68 testsuite() { |
pankso@16064 | 69 readelf -h $install/usr/bin/xterm |
pankso@16064 | 70 } |
al@19839 | 71 |
al@19839 | 72 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19839 | 73 genpkg_rules() |
al@19839 | 74 { |
al@19839 | 75 copy xterm resize XTerm XTerm-color *.png |
al@19839 | 76 TAGS="terminal" |
al@19839 | 77 DEPENDS="fontconfig ncurses xorg-libICE xorg-libX11 xorg-libXaw3d \ |
al@19839 | 78 xorg-libXft xorg-libXinerama xorg-libXmu xorg-libXpm xorg-libXt" |
al@19839 | 79 } |