blob: d8186be48b54845316d9a052f45daec00070d03f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Distributed under the terms of the GNU General Public License v2
EAPI="1"
inherit eutils autotools subversion games
DESCRIPTION="A 3D Fantasy MMORPG"
HOMEPAGE="http://planeshift.it"
SRC_URI=""
RESTRICT="mirror"
IUSE="mysql"
SLOT=""
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
ESVN_REPO_URI="https://planeshift.svn.sourceforge.net/svnroot/planeshift/stable"
ESVN_STORE_DIR="${DISTDIR}/svn-src"
ESVN_PROJECT="${PN/-svn}"
ESVN_BOOTSTRAP="./autogen.sh"
RDEPEND="${DEPEND}
"
DEPEND="${COMMON_DEPEND}
sys-devel/autoconf
sys-devel/automake
dev-util/ftjam
dev-games/crystalspace
mysql? ( virtual/mysql )
"
S="${WORKDIR}/${P/_/}"
pkg_setup() {
games_pkg_setup
}
src_unpack(){
subversion_src_unpack
cd "${S}"
# eautoreconf
}
src_compile() {
econf \
--enable-cpu-specific-optimizations=maximum \
|| die "econf failed"
jam -q || die "emake failed"
}
src_install() {
for installTarget in install_bin install_plugin install_lib \
install_include install_data install_config
do
jam -q -s DESTDIR="${D}" ${installTarget} \
|| die "jam ${installTarget} failed"
done
prepgamesdirs
}
#pkg_postinst() {
#}
|