Lines 1-16
Link Here
|
1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2005 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.0.1.ebuild,v 1.2 2005/06/09 01:08:50 mr_bones_ Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.1.0-r1.ebuild,v 1.2 2005/06/09 01:08:50 mr_bones_ Exp $ |
4 |
|
4 |
|
5 |
inherit games |
5 |
inherit games |
6 |
|
6 |
|
7 |
TMP_PV=${PV%_p*} |
7 |
TMP_PV=${PV%_p*} |
8 |
DESCRIPTION="An online MMORPG written in C and SDL" |
8 |
DESCRIPTION="An online MMORPG written in C and SDL" |
9 |
HOMEPAGE="http://www.eternal-lands.com" |
9 |
HOMEPAGE="http://www.eternal-lands.com" |
10 |
SRC_URI="http://el.tfm.ro/el_${TMP_PV//.}.zip |
10 |
SRC_URI="http://el.tfm.ro/el_${TMP_PV//.}-t1.zip |
11 |
ftp://ftp.berlios.de/pub/elc/elc_${PV//.}.tgz |
11 |
ftp://ftp.berlios.de/pub/elc/elc_${TMP_PV//.}.tgz |
12 |
mapeditor? ( ftp://ftp.berlios.de/pub/elc/mapedit_${PV//.}.tgz ) |
12 |
mapeditor? ( ftp://ftp.berlios.de/pub/elc/mapedit_${TMP_PV//.}.tgz ) |
13 |
!nomusic? ( http://el.tfm.ro/el_music_${PV//.}.zip )" |
13 |
!nomusic? ( http://el.tfm.ro/el_music_101.zip )" |
14 |
|
14 |
|
15 |
LICENSE="eternal_lands" |
15 |
LICENSE="eternal_lands" |
16 |
SLOT="0" |
16 |
SLOT="0" |
Lines 24-30
Link Here
|
24 |
>media-libs/openal-20020127 |
24 |
>media-libs/openal-20020127 |
25 |
media-libs/libvorbis |
25 |
media-libs/libvorbis |
26 |
>=dev-libs/libxml2-2.6.7 |
26 |
>=dev-libs/libxml2-2.6.7 |
27 |
mapeditor? ( <x11-libs/gtk+-1.3 )" |
27 |
=media-libs/cal3d-0.10.0 |
|
|
28 |
>=media-libs/libpng-1.2.8 |
29 |
mapeditor? (>=x11-libs/gtk+-2.4)" |
28 |
|
30 |
|
29 |
DEPEND="${RDEPEND} |
31 |
DEPEND="${RDEPEND} |
30 |
app-arch/unzip |
32 |
app-arch/unzip |
Lines 32-53
Link Here
|
32 |
>=media-gfx/graphviz-1.10 )" |
34 |
>=media-gfx/graphviz-1.10 )" |
33 |
|
35 |
|
34 |
src_unpack() { |
36 |
src_unpack() { |
35 |
OPTIONS="OPTIONS=-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\"" " |
37 |
OPTIONS="OPTIONS=-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\""" |
36 |
S_CLIENT="${WORKDIR}/elc" |
38 |
S_CLIENT="${WORKDIR}/elc" |
37 |
S_MAPEDITOR="${WORKDIR}/map_editor" |
39 |
S_MAPEDITOR="${WORKDIR}/map_editor" |
|
|
40 |
BROWSER="mozilla" |
38 |
|
41 |
|
39 |
unpack ${A} |
42 |
unpack ${A} |
40 |
use amd64 && OPTIONS="${OPTIONS} -DX86_64" |
43 |
use amd64 && OPTIONS="${OPTIONS} -DX86_64" |
41 |
use netthread && OPTIONS="${OPTIONS} -DNETWORK_THREAD" |
44 |
use netthread && OPTIONS="${OPTIONS} -DNETWORK_THREAD" |
42 |
cd "${S_CLIENT}" |
45 |
cd "${S_CLIENT}" |
43 |
sed \ |
46 |
sed \ |
44 |
-e "s@CFLAGS=\$(PLATFORM) -Wall -O -Werror -ggdb -pipe @CFLAGS=${CFLAGS} @g" \ |
47 |
-e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O -ggdb -pipe@CFLAGS=${CFLAGS} @g"\ |
|
|
48 |
-e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O -ggdb -pipe@CXXFLAGS=${CXXFLAGS} @g"\ |
45 |
-e "s@OPTIONS=@${OPTIONS} @g" \ |
49 |
-e "s@OPTIONS=@${OPTIONS} @g" \ |
46 |
Makefile.linux > Makefile \ |
50 |
Makefile.linux > Makefile \ |
47 |
|| die "sed failed" |
51 |
|| die "sed failed" |
48 |
sed \ |
52 |
sed \ |
49 |
-e 's/#browser/browser/g' \ |
53 |
-e 's/#browser/browser/g' \ |
50 |
-e 's/browser = mozilla/#browser = mozilla/g' \ |
54 |
-e "s/browser = mozilla/#browser = ${BROWSER}/g" \ |
51 |
-e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \ |
55 |
-e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \ |
52 |
el.ini > ../el.ini \ |
56 |
el.ini > ../el.ini \ |
53 |
|| die "sed failed" |
57 |
|| die "sed failed" |
Lines 66-72
Link Here
|
66 |
fi |
70 |
fi |
67 |
cd ${WORKDIR} |
71 |
cd ${WORKDIR} |
68 |
cp license.txt EULA || die "cp failed" |
72 |
cp license.txt EULA || die "cp failed" |
69 |
cp changes.txt ChangeLog || die "cp failed" |
73 |
cp -r ${S_CLIENT}/languages . |
70 |
} |
74 |
} |
71 |
|
75 |
|
72 |
src_compile() { |
76 |
src_compile() { |
Lines 74-80
Link Here
|
74 |
emake || die "emake failed" |
78 |
emake || die "emake failed" |
75 |
cp el.x86.linux.bin ../el.x86.linux.bin || die "cp failed" |
79 |
cp el.x86.linux.bin ../el.x86.linux.bin || die "cp failed" |
76 |
if use doc; then |
80 |
if use doc; then |
77 |
emake docs || die "Failed to create documentation, try with USE=-docs" |
81 |
emake docs || die "Failed to create documentation, try with USE=-doc" |
78 |
mv ./docs/html/ ../client || die "Failed to move documentation directory" |
82 |
mv ./docs/html/ ../client || die "Failed to move documentation directory" |
79 |
fi |
83 |
fi |
80 |
if use mapeditor; then |
84 |
if use mapeditor; then |
Lines 86-111
Link Here
|
86 |
|
90 |
|
87 |
src_install () { |
91 |
src_install () { |
88 |
cd "${WORKDIR}" |
92 |
cd "${WORKDIR}" |
|
|
93 |
|
89 |
newgamesbin el.x86.linux.bin el || die "newgamesbin failed" |
94 |
newgamesbin el.x86.linux.bin el || die "newgamesbin failed" |
90 |
if use mapeditor; then |
95 |
if use mapeditor; then |
91 |
newgamesbin mapedit.x86.linux.bin el-mapedit \ |
96 |
newgamesbin mapedit.x86.linux.bin el-mapedit \ |
92 |
|| die "newgamesbin failed" |
97 |
|| die "newgamesbin failed" |
93 |
fi |
98 |
fi |
94 |
|
99 |
|
95 |
dodoc ChangeLog EULA |
100 |
dodoc EULA |
96 |
insinto "${GAMES_DATADIR}/${PN}" |
101 |
insinto "${GAMES_DATADIR}/${PN}" |
97 |
doins *.ini entrable.lst harvestable.lst el_icon.png icon.bmp \ |
102 |
|
98 |
global_filters.txt local_ignores.txt e3dlist.txt \ |
103 |
doins *.ini entrable.lst harvestable.lst \ |
|
|
104 |
global_filters.txt e3dlist.txt \ |
99 |
|| die "doins failed" |
105 |
|| die "doins failed" |
100 |
|
106 |
|
|
|
107 |
doicon el_icon.png || die "doicon failed" |
108 |
|
101 |
if use mapeditor; then |
109 |
if use mapeditor; then |
|
|
110 |
doicon mapeditor.bmp || die "doicon failed" |
111 |
cp -r mapeditor ${D}/${GAMES_DATADIR}/${PN} || die "copy failed" |
102 |
doins browser.lst || die "doins failed" |
112 |
doins browser.lst || die "doins failed" |
103 |
fi |
113 |
fi |
104 |
|
114 |
|
105 |
cp -R 2dobjects 3dobjects languages maps md2 particles sound textures tiles \ |
115 |
cp -R 2dobjects 3dobjects languages maps particles sound textures tiles\ |
|
|
116 |
meshes animations actor_defs books skeletons\ |
106 |
"${D}/${GAMES_DATADIR}/${PN}" \ |
117 |
"${D}/${GAMES_DATADIR}/${PN}" \ |
107 |
|| die "copy failed" |
118 |
|| die "copy failed" |
108 |
|
119 |
|
109 |
if ! use nomusic; then |
120 |
if ! use nomusic; then |
110 |
cp -R music "${D}/${GAMES_DATADIR}/${PN}" || die "cp failed" |
121 |
cp -R music "${D}/${GAMES_DATADIR}/${PN}" || die "cp failed" |
111 |
fi |
122 |
fi |
Lines 117-122
Link Here
|
117 |
dohtml "${WORKDIR}/mapeditor.html" |
128 |
dohtml "${WORKDIR}/mapeditor.html" |
118 |
dohtml -r "${WORKDIR}/mapeditor" |
129 |
dohtml -r "${WORKDIR}/mapeditor" |
119 |
fi |
130 |
fi |
|
|
131 |
|
132 |
make_desktop_entry el "Eternal Lands" el_icon.png Game |
133 |
use mapeditor && \ |
134 |
make_desktop_entry el-mapedit "Map editor" mapeditor.bmp Game |
135 |
|
120 |
prepgamesdirs |
136 |
prepgamesdirs |
121 |
} |
137 |
} |
122 |
|
138 |
|
Lines 124-131
Link Here
|
124 |
games_pkg_postinst |
140 |
games_pkg_postinst |
125 |
echo |
141 |
echo |
126 |
einfo "To run the game: el" |
142 |
einfo "To run the game: el" |
127 |
einfo "Copy ${GAMES_DATADIR}/${PN}/el.ini to ~/.elc/" |
|
|
128 |
einfo "to make per-user changes." |
129 |
echo |
143 |
echo |
130 |
if use mapeditor; then |
144 |
if use mapeditor; then |
131 |
einfo "To use the map editor: el-mapedit" |
145 |
einfo "To use the map editor: el-mapedit" |