wok-next view xorg-libXpm/receipt @ rev 20033

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