Magellan Linux

Contents of /trunk/extras/blobwars2/blobwars2-0.90-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (16 years ago) by niro
File size: 1697 byte(s)
import repo
1 # $Header$
2
3 PNAME="blobwars2"
4 PVER="0.90"
5 PBUILD="r1"
6
7 PCATEGORIE="x11-games"
8 STATE="unstable"
9
10 DESCRIPTION="A 3d shooting game."
11 HOMEPAGE="http://www.parallelrealities.co.uk/blobAndConquer.php"
12
13 DEPEND=">= media-libs/libsdl-1.2
14 >= media-libs/sdl-mixer-1.2
15 >= media-libs/sdl-image-1.2
16 >= media-libs/sdl-ttf-2.0.7
17 >= sys-libs/zlib-1
18 >= virtual/opengl"
19
20 sminclude mbuild
21
22 SRCFILE="${PNAME}-${PVER}-1.tar.gz"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 SRC_URI=(
26 "http://www.parallelrealities.co.uk/download.php?file=${SRCFILE}&type=zip"
27 mirror://${PNAME}/${SRCFILE}
28 )
29
30 src_compile()
31 {
32 cd ${SRCDIR}
33
34 # fix our CFLAGS
35 sed -i 's:$(CXX) $(CXXFLAGS):$(CXX) $(CXXFLAGS) ${CXXFLAGS}:g' [Mm]akefile || die
36
37 mmake \
38 BINDIR="/usr/games/${PNAME}/bin/" \
39 DATADIR="/usr/games/${PNAME}/share/" \
40 DOCDIR="/usr/share/doc/${PNAME}-${PVER}/" \
41 || die
42 }
43
44 src_install()
45 {
46 cd ${SRCDIR}
47
48 # needed directories
49 install -d ${BINDIR}/usr/bin || die
50 install -d ${BINDIR}/usr/games/${PNAME}/{bin,share} || die
51 install -d ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die
52
53 mmake \
54 PREFIX=${BINDIR}/usr \
55 BINDIR="${BINDIR}/usr/games/${PNAME}/bin/" \
56 DATADIR="${BINDIR}/usr/games/${PNAME}/share/" \
57 DOCDIR="${BINDIR}/usr/share/doc/${PNAME}-${PVER}/" \
58 install || die
59
60 # compress docs
61 gzip -9 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/{LICENSE,README} || die
62
63 # symlink binary to /usr/bin
64 ln -snf ../games/${PNAME}/bin/${PNAME} ${BINDIR}/usr/bin/${PNAME} || die
65
66 # fix permissions
67 chmod 0754 ${BINDIR}/usr/bin/${PNAME} || die
68 chmod 0754 ${BINDIR}/usr/games/${PNAME}/bin/${PNAME} || die
69 chown root:games ${BINDIR}/usr/bin/${PNAME} || die
70 chown -R root:games ${BINDIR}/usr/games/${PNAME} || die
71 }

Properties

Name Value
svn:keywords Id