Magellan Linux

Contents of /trunk/extras/wesnoth/wesnoth-1.2.7-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 2309 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/wesnoth/wesnoth-1.2.7-r2.smage2,v 1.2 2008/02/07 14:23:55 niro Exp $
2
3 PNAME="wesnoth"
4 PVER="1.2.7"
5 PBUILD="r2"
6
7 PCATEGORIE="x11-games"
8 STATE="testing"
9
10 DESCRIPTION="The Battle for Wesnoth is a turn-based strategy game with a fantasy theme."
11 HOMEPAGE="http://www.wesnoth.org/"
12
13 DEPEND=">= x11-libs/libX11-1
14 >= media-libs/libsdl-1.2
15 >= media-libs/sdl-mixer-1.2
16 >= media-libs/sdl-image-1.2
17 >= media-libs/sdl-net-1.2.5
18 >= media-libs/freetype-2.1.9
19 >= sys-libs/zlib-1.2.1
20 >= dev-libs/zipios++-0.1.5.9"
21
22 SDEPEND=">= sys-dev/gettext-0.12.1
23 >= dev-util/intltool-0.33
24 >= app-arch/zip-2.3"
25
26 SRCFILE="${PNAME}-${PVER}.tar.bz2"
27 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
28
29 sminclude mbuild mtools
30
31 SRC_URI=(
32 sourceforge://${PNAME}/${SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 )
35
36 src_compile()
37 {
38 cd ${SRCDIR}
39
40 mconfigure \
41 --prefix=/usr/games/${PNAME} \
42 --mandir=/usr/share/man \
43 --infodir=/usr/share/info \
44 --datadir=/usr/games/${PNAME}/share \
45 --disable-dependency-tracking \
46 --enable-nls \
47 --disable-debug \
48 --disable-lite \
49 --disable-tinygui \
50 --enable-game \
51 --enable-server \
52 --enable-campaign-server \
53 --enable-editor \
54 --enable-tools \
55 --enable-gnome \
56 --enable-kde \
57 --disable-dummy-locales \
58 || die
59
60 mmake || die
61 }
62
63 src_install()
64 {
65 cd ${SRCDIR}
66
67 # needed directories
68 minstalldir /usr/bin || die
69 minstalldir /usr/share/applications || die
70
71 make DESTDIR=${BINDIR} install || die
72
73 # compress all share-data with zip (utility included in the sources)
74 ${SRCDIR}/utils/splittree ${BINDIR}/usr/games/${PNAME}/share/${PNAME} --zip || die
75
76 # symlink binaries to /usr/bin
77 mlink ../games/${PNAME}/bin/${PNAME} /usr/bin/${PNAME} || die
78 mlink ../games/${PNAME}/bin/${PNAME}d /usr/bin/${PNAME}d || die
79 mlink ../games/${PNAME}/bin/${PNAME}_editor /usr/bin/${PNAME}_editor || die
80
81 # install destop icon
82 minstallfile icons/wesnoth.desktop /usr/share/applications || die
83 minstallpixmap images/wesnoth-icon.png || die
84
85 # docs
86 minstalldocs ABOUT-NLS COPYING INSTALL MANUAL* README || die
87
88 # fix permissions
89 mchown root:games /usr/bin/${PNAME} || die
90 mchown -R root:games /usr/games/${PNAME} || die
91 mchown -R root:games /var/lib/run/${PNAME}d || die
92 mchmod 0754 /usr/bin/${PNAME} || die
93 mchmod 0754 /usr/games/${PNAME}/bin/${PNAME} || die
94 }

Properties

Name Value
svn:keywords Id