View previous topic :: View next topic |
Author |
Message |
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Mon Apr 07, 2008 4:32 am Post subject: Smithy - An AlephOne Map Editor |
|
|
There must be /some/ gentooers who play Marathon. Or the bugs I've seen wouldn't get filed.
If any of you are also interested in map-making, here's a live ebuild for a promising project for a map editor: smithy.
The ebuild is defeatingly simple, so I'll just paste it.
Code: | games-util/smithy-9999.ebuild |
Code: | # Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit subversion
IUSE=""
DESCRIPTION="A map editor for AlephOne"
HOMEPAGE="http://smithy.sourceforge.net/"
LICENSE=""
DEPEND="dev-lang/ocaml
dev-ml/lablgl
dev-ml/lablgtk
dev-ml/ocaml-make"
SRC_URI=""
ESVN_REPO_URI="https://smithy.svn.sourceforge.net/svnroot/smithy"
SLOT="0"
KEYWORDS=""
pkg_setup() {
if ! built_with_use dev-ml/lablgtk opengl ; then
eerror "In order to build ${PN} you need to build lablgtk with"
eerror "OpenGL support."
eerror "You need to install dev-ml/lablgtk with opengl useflag on."
die "Please install lablgtk with opengl useflag"
fi
if ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
eerror "In order to build ${PN}, you first need to have a native"
eerror "code ocaml compiler."
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
die "Please install ocaml with ocamlopt useflag"
fi
}
src_compile() {
# installation isn't really supported yet, so we have to hack this.
sed -e 's:resources/:/usr/share/games/smithy/:g' -i Resources.ml
# if you use emake smithy wont build. have fun figuring out why.
make
}
src_install () {
dobin smithy
insinto '/usr/share/games/smithy'
doins resources/*
dodoc docs/* examples/*
} |
The official thread, on the pfhorums, is here.
edit 2008-04-07: now it actually works, heh. _________________ '((eINIT) (soor overlay))
Last edited by creidiki on Mon Apr 07, 2008 9:18 pm; edited 1 time in total |
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Mon Apr 07, 2008 9:14 pm Post subject: |
|
|
Updated the ebuild - the .tga resources are actually installed now _________________ '((eINIT) (soor overlay)) |
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Wed Apr 30, 2008 8:28 pm Post subject: |
|
|
Aaaaand, its now on my overlay. _________________ '((eINIT) (soor overlay)) |
|
Back to top |
|
|
|