wok view xpat2/receipt @ rev 15110

Add some LDFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 14 18:02:00 2013 +0000 (2013-08-14)
parents 940b5937e496
children c19e615aaeeb
line source
1 # SliTaz package receipt
3 PACKAGE="xpat2"
4 VERSION="1.07"
5 CATEGORY="games"
6 SHORT_DESC="Soltaire games for X."
7 MAINTAINER="b1+slitaz@nagel.org"
8 WEB_SITE="http://manpages.ubuntu.com/manpages/intrepid/man6/xpat2.html"
9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
10 WGET_URL="http://www.ibiblio.org/pub/Linux/games/solitaires/$TARBALL"
12 DEPENDS="xorg-libX11 xorg-libXt xorg-libXaw"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 export LDFLAGS="-Wl,--copy-dt-needed-entries -lXmu"
19 for i in xpat2.patch layout.patch ; do
20 [ -f done.$i ] && continue
21 patch -p1 < $stuff/$i
22 touch done.$i
23 done
24 cd src
25 cp $stuff/Makefile .
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/var/games/xpat2
34 cp -a $install/usr $fs
35 mkdir -p $fs/usr/share/X11/app-defaults/
36 cp -a $stuff/XPat.ad $fs/usr/share/X11/app-defaults/XPat
37 touch $fs/var/games/xpat2/xpat.log
38 chmod 666 $fs/var/games/xpat2/xpat.log
39 }