wok-next annotate 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 |
rev | line source |
---|---|
wcnagel@1042 | 1 # SliTaz package receipt |
wcnagel@1042 | 2 |
wcnagel@1042 | 3 PACKAGE="xpat2" |
wcnagel@1042 | 4 VERSION="1.07" |
wcnagel@1042 | 5 CATEGORY="games" |
wcnagel@1042 | 6 SHORT_DESC="Soltaire games for X." |
b1+slitaz@1802 | 7 MAINTAINER="b1+slitaz@nagel.org" |
pascal@1413 | 8 WEB_SITE="http://manpages.ubuntu.com/manpages/intrepid/man6/xpat2.html" |
wcnagel@1042 | 9 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
wcnagel@1042 | 10 WGET_URL="http://www.ibiblio.org/pub/Linux/games/solitaires/$TARBALL" |
wcnagel@1042 | 11 |
pascal@15110 | 12 DEPENDS="xorg-libX11 xorg-libXt xorg-libXaw" |
pascal@15110 | 13 |
wcnagel@1042 | 14 # Rules to configure and make the package. |
wcnagel@1042 | 15 compile_rules() |
wcnagel@1042 | 16 { |
wcnagel@1042 | 17 cd $src |
pascal@15110 | 18 export LDFLAGS="-Wl,--copy-dt-needed-entries -lXmu" |
pascal@1553 | 19 for i in xpat2.patch layout.patch ; do |
pascal@1553 | 20 [ -f done.$i ] && continue |
pascal@8974 | 21 patch -p1 < $stuff/$i |
pascal@1553 | 22 touch done.$i |
pascal@1553 | 23 done |
wcnagel@1042 | 24 cd src |
pascal@8974 | 25 cp $stuff/Makefile . |
pascal@1553 | 26 make && |
pascal@15110 | 27 make DESTDIR=$DESTDIR install |
wcnagel@1042 | 28 } |
wcnagel@1042 | 29 |
wcnagel@1042 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
wcnagel@1042 | 31 genpkg_rules() |
wcnagel@1042 | 32 { |
wcnagel@1042 | 33 mkdir -p $fs/var/games/xpat2 |
pascal@15110 | 34 cp -a $install/usr $fs |
wcnagel@1042 | 35 mkdir -p $fs/usr/share/X11/app-defaults/ |
pascal@8974 | 36 cp -a $stuff/XPat.ad $fs/usr/share/X11/app-defaults/XPat |
wcnagel@1042 | 37 touch $fs/var/games/xpat2/xpat.log |
wcnagel@1042 | 38 chmod 666 $fs/var/games/xpat2/xpat.log |
wcnagel@1042 | 39 } |