wok view xorg-libXpm/receipt @ rev 23945

Up slitaz-base-files (342)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 18 18:47:32 2020 +0000 (2020-09-18)
parents 811aa3dc2e6c
children 5d79829fa876
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-libXpm"
4 VERSION="3.5.13"
5 CATEGORY="x-window"
6 SHORT_DESC="X Pixmap Library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="other"
9 WEB_SITE="https://www.x.org/wiki/"
11 SOURCE="libXpm"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="$XORG_MIRROR/lib/$TARBALL"
15 DEPENDS="xorg-libX11 xorg-libXt"
16 BUILD_DEPENDS="util-linux-uuid-dev xorg-libSM-dev xorg-libXext-dev xorg-libXt-dev"
18 HOST_ARCH="i486 arm"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 case "$ARCH" in
24 arm*)
25 # ARM Hack
26 for la in libICE.la libSM.la libuuid.la
27 do
28 if grep -q "^libdir='/usr/lib'" /usr/lib/${la}
29 then
30 sed -i s"#/usr/lib#/cross/$ARCH/sysroot/usr/lib#" \
31 /usr/lib/${la}
32 fi
33 done ;;
34 esac
36 ./configure \
37 --sysconfdir=/etc \
38 --localstatedir=/var \
39 --disable-static \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 }