wok-next annotate xorg-libXpm/receipt @ rev 19845
Up cookutils, lxpanel, slim, tazlito.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Aug 26 12:10:59 2017 +0300 (2017-08-26) |
parents | f463de72afe3 |
children | 0e7893ac206d |
rev | line source |
---|---|
al@19805 | 1 # SliTaz package receipt v2. |
pankso@20 | 2 |
pankso@20 | 3 PACKAGE="xorg-libXpm" |
al@19634 | 4 VERSION="3.5.11" |
pankso@20 | 5 CATEGORY="x-window" |
al@19805 | 6 SHORT_DESC="XPM format pixmap library" |
pankso@20 | 7 MAINTAINER="pankso@slitaz.org" |
al@19805 | 8 LICENSE="MIT" |
al@19634 | 9 WEB_SITE="https://www.x.org/wiki/" |
pankso@16064 | 10 HOST_ARCH="i486 arm" |
pankso@20 | 11 |
al@19634 | 12 TARBALL="libXpm-$VERSION.tar.bz2" |
al@19634 | 13 WGET_URL="$XORG_MIRROR/lib/$TARBALL" |
al@19634 | 14 |
al@19634 | 15 BUILD_DEPENDS="xorg-libXt-dev xorg-libXext-dev xorg-libSM-dev \ |
al@19634 | 16 util-linux-uuid-dev gettext" |
al@19805 | 17 SPLIT="xorg-libXpm-util xorg-libXpm-dev" |
al@19805 | 18 PKG_RULE="lib-bin-dev" |
al@14640 | 19 |
pankso@20 | 20 # Rules to configure and make the package. |
pankso@20 | 21 compile_rules() |
pankso@20 | 22 { |
pankso@16064 | 23 case "$ARCH" in |
al@19805 | 24 arm*) # ARM Hack |
al@19634 | 25 for la in libICE.la libSM.la libuuid.la; do |
al@19805 | 26 if grep -q "^libdir='/usr/lib'" /usr/lib/$la; then |
pankso@16064 | 27 sed -i s"#/usr/lib#/cross/$ARCH/sysroot/usr/lib#" \ |
al@19805 | 28 /usr/lib/$la |
al@19634 | 29 fi |
pankso@16064 | 30 done ;; |
pankso@16064 | 31 esac |
al@19634 | 32 |
pankso@12510 | 33 ./configure \ |
pankso@12510 | 34 --sysconfdir=/etc \ |
pankso@12510 | 35 --localstatedir=/var \ |
pankso@12510 | 36 $CONFIGURE_ARGS && |
al@14640 | 37 make && |
al@14640 | 38 make install |
pankso@20 | 39 } |
pankso@20 | 40 |
pankso@20 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@20 | 42 genpkg_rules() |
pankso@20 | 43 { |
al@19805 | 44 case $PACKAGE in |
al@19805 | 45 *-libXpm) |
al@19805 | 46 copy *.so* |
al@19805 | 47 DEPENDS="xorg-libxcb xorg-libX11 xorg-libXau xorg-libXdmcp" |
al@19805 | 48 ;; |
al@19805 | 49 *-util) |
al@19805 | 50 copy bin/ |
al@19805 | 51 CAT="x-window|utilities" |
al@19805 | 52 DEPENDS="xorg-libXpm xorg-libxcb util-linux-uuid xorg-libICE \ |
al@19805 | 53 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \ |
al@19805 | 54 xorg-libXt" |
al@19805 | 55 ;; |
al@19805 | 56 *-dev) |
al@19805 | 57 copy @dev |
al@19805 | 58 DEPENDS="xorg-libXpm xorg-libXpm-util xorg-libxcb-dev \ |
al@19805 | 59 xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev" |
al@19805 | 60 ;; |
al@19805 | 61 esac |
pankso@20 | 62 } |