Magellan Linux

Contents of /tags/old-unstable-20120113/todo/blobwars/blobwars-1.08-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9870 - (show annotations) (download)
Fri Jan 13 21:26:11 2012 UTC (12 years, 4 months ago) by niro
File size: 1639 byte(s)
tagged 'old-unstable-20120113'
1 # $Header: /magellan-cvs/smage/blobwars/blobwars-1.08-r1.smage2,v 1.2 2008/08/15 11:42:01 niro Exp $
2
3 PNAME="blobwars"
4 PVER="1.08"
5 PBUILD="r1"
6
7 PCATEGORIE="x11-games"
8 STATE="unstable"
9
10 DESCRIPTION="A platform shooting game."
11 HOMEPAGE="http://www.parallelrealities.co.uk/blobWars.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.9"
17
18 SDEPEND=">= sys-apps/sed-4"
19
20 sminclude mbuild mtools
21
22 SRCFILE="${PNAME}-${PVER}-1.tar.gz"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
26
27 src_compile()
28 {
29 cd ${SRCDIR}
30
31 # fix our CFLAGS
32 sed -i 's:$(CXX) $(CXXFLAGS):$(CXX) $(CXXFLAGS) ${CXXFLAGS}:g' [Mm]akefile || die
33
34 mmake \
35 BINDIR="/usr/games/${PNAME}/bin/" \
36 DATADIR="/usr/games/${PNAME}/share/" \
37 DOCDIR="/usr/share/doc/${PNAME}-${PVER}/" \
38 || die
39 }
40
41 src_install()
42 {
43 cd ${SRCDIR}
44
45 # needed directories
46 minstalldir /usr/bin || die
47 minstalldir /usr/games/${PNAME}/{bin,share} || die
48 minstalldir /usr/share/doc/${PNAME}-${PVER} || die
49
50 mmake \
51 PREFIX=${BINDIR}/usr \
52 BINDIR="${BINDIR}/usr/games/${PNAME}/bin/" \
53 DATADIR="${BINDIR}/usr/games/${PNAME}/share/" \
54 DOCDIR="${BINDIR}/usr/share/doc/${PNAME}-${PVER}/" \
55 install || die
56
57 # compress docs
58 gzip -9 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/{LICENSE,README} || die
59
60 # symlink binary to /usr/bin
61 mlink ../games/${PNAME}/bin/${PNAME} /usr/bin/${PNAME} || die
62
63 # fix permissions
64 mchown root:games /usr/bin/${PNAME} || die
65 mchown -R root:games /usr/games/${PNAME} || die
66 mchmod 0754 /usr/bin/${PNAME} || die
67 mchmod 0754 /usr/games/${PNAME}/bin/${PNAME} || die
68 }

Properties

Name Value
svn:keywords Id