wok view xorg-libXpm/receipt @ rev 21350

amule: add debian libupnp1.8.patch
author Richard Dunbar <mojo@slitaz.org>
date Sat Apr 20 15:44:26 2019 -0400 (2019-04-20)
parents 7bae09de1061
children 811aa3dc2e6c
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-libXpm"
4 VERSION="3.5.10"
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/"
10 SOURCE="libXpm"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="$XORG_MIRROR/lib/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="xorg-libX11 xorg-libXt"
16 BUILD_DEPENDS="xorg-libXt-dev xorg-libXext-dev xorg-libSM-dev util-linux-uuid-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 case "$ARCH" in
22 arm*)
23 # ARM Hack
24 for la in libICE.la libSM.la libuuid.la
25 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
32 ./configure \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 --disable-static \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 }