wok-next view openmotif/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents d0fd62e2e1b2
children 9e5dca6702bf
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openmotif"
4 VERSION="2.3.2"
5 CATEGORY="non-free"
6 SHORT_DESC="source code version of Motif under a public license."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.motifzone.org/"
11 WGET_URL="${WEB_SITE}files/public_downloads/$PACKAGE/${VERSION%.*}/$VERSION/$TARBALL"
13 BUILD_DEPENDS="xorg-dev-proto xorg-libXmu xorg-libXft-dev xorg-libXrender-dev \
14 xorg-xbitmaps fontconfig-dev freetype-dev jpeg-dev libpng16-dev xorg-libXt-dev \
15 xorg-libSM-dev xorg-xproto xorg-libXmu-dev xorg-libX11-dev xorg-printproto \
16 xorg-xextproto bison flex xorg-libXp util-linux-uuid-dev expat-dev libxml2-dev"
17 SPLIT="openmotif openmotif-demo openmotif-dev openmotif-man"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS &&
25 make -j 1 &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 case $PACKAGE in
33 openmotif)
34 DEPENDS="xorg fontconfig expat freetype jpeg libpng16 xorg-libXp xorg-libXft"
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
37 rm -f $fs/usr/bin/uil
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 cp -a $install/usr/lib/X11 $fs/usr/lib
40 ;;
41 openmotif-demo)
42 CAT="non-free|source code version of Motif under a public license, demo files."
43 DEPENDS="openmotif openmotif-dev"
44 mkdir -p $fs/usr/share
45 cp -a $install/usr/share/Xm $fs/usr/share
46 ;;
47 openmotif-dev)
48 CAT="non-free|source code version of Motif under a public license, development files."
49 DEPENDS="openmotif util-linux-uuid"
50 mkdir -p $fs/usr/lib $fs/usr/bin
51 cp -a $install/usr/lib/*a $fs/usr/lib
52 cp -a $install/usr/bin/uil $fs/usr/bin
53 cp -a $install/usr/include $fs/usr
54 ;;
55 openmotif-man)
56 CAT="non-free|source code version of Motif under a public license, manual pages."
57 mkdir -p $fs/usr/share
58 cp -a $install/usr/share/man $fs/usr/share
59 ;;
60 esac
61 }