wok view xorg-libXpm/receipt @ rev 24967

filezilla: added dependency libmspack (thanks rerivero)
author Hans-G?nter Theisgen
date Tue Apr 26 07:15:14 2022 +0100 (2022-04-26)
parents 4803265f63c1
children
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 current_version()
21 {
22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
23 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 case "$ARCH" in
30 arm*)
31 # ARM Hack
32 for la in libICE.la libSM.la libuuid.la
33 do
34 if grep -q "^libdir='/usr/lib'" /usr/lib/${la}
35 then
36 sed -i s"#/usr/lib#/cross/$ARCH/sysroot/usr/lib#" \
37 /usr/lib/${la}
38 fi
39 done ;;
40 esac
42 ./configure \
43 --sysconfdir=/etc \
44 --localstatedir=/var \
45 --disable-static \
46 $CONFIGURE_ARGS &&
47 make &&
48 make install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/lib
55 cp -a $install/usr/lib/*.so* $fs/usr/lib
56 }