Magellan Linux

Annotation of /trunk/extras/wormux/wormux-0.7.9-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1548 byte(s)
import repo
1 niro 2 # $Header: /magellan-cvs/smage/wormux/wormux-0.7.9-r2.smage2,v 1.2 2008/02/07 14:23:55 niro Exp $
2    
3     PNAME="wormux"
4     PVER="0.7.9"
5     PBUILD="r2"
6    
7     PCATEGORIE="x11-games"
8     STATE="testing"
9    
10     DESCRIPTION="Wormux is free software clone of WORMS developed by Team17."
11     HOMEPAGE="http://www.wormux.org/"
12    
13     DEPEND=">= dev-games/clanlib-0.7.8
14     >= media-libs/libsdl-1.2.7
15     >= media-libs/sdl-gfx-2.0.13
16     >= media-libs/sdl-net-1.2
17     >= media-libs/libvorbis-1.0.1
18     >= dev-cpp/libxmlpp-1.0.4
19     >= dev-cpp/glibmm-2.8"
20    
21     SDEPEND=">= sys-dev/gettext-0.12.1"
22    
23     SRCFILE="${PNAME}-${PVER}.tar.gz"
24     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25    
26     sminclude mtools
27    
28     SRC_URI=(
29     http://download.gna.org/${PNAME}/${SRCFILE}
30     mirror://${PNAME}/${SRCFILE}
31     )
32    
33     src_prepare()
34     {
35     munpack ${SRCFILE} || die
36     cd ${SRCDIR}
37    
38     # fix nls install dir
39     sed -i "/^localedir =/s:=.*:=/usr/games/${PNAME}/share/locale:" po/Makefile.in || die
40     }
41    
42     src_compile()
43     {
44     cd ${SRCDIR}
45    
46     ./configure \
47     --prefix=/usr/games/${PNAME} \
48     --datadir=/usr/games/${PNAME}/share \
49     --host=${CHOST} \
50     --enable-nls \
51     --disable-debug \
52     || die
53    
54     mmake || die
55     }
56    
57     src_install()
58     {
59     cd ${SRCDIR}
60    
61     # needed directories
62     minstalldir /usr/bin || die
63    
64     make DESTDIR=${BINDIR} install || die
65     minstalldocs AUTHORS COPYING README || die
66    
67     # symlink binary to /usr/bin
68     mlink ../games/${PNAME}/bin/${PNAME} /usr/bin/${PNAME} || die
69    
70     # fix permissions
71     mchown root:games /usr/bin/${PNAME} || die
72     mchown -R root:games /usr/games/${PNAME} || die
73     mchmod 0754 /usr/bin/${PNAME} || die
74     mchmod 0754 /usr/games/${PNAME}/bin/${PNAME} || die
75     }

Properties

Name Value
svn:keywords Id