diff options
author | eroen <eroen@occam.eroen.eu> | 2012-10-23 11:10:03 +0200 |
---|---|---|
committer | eroen <eroen@occam.eroen.eu> | 2012-10-23 11:10:03 +0200 |
commit | 0bfcc4f8893fa4a5de068874b00f83360c3792c6 (patch) | |
tree | 6c9fe32a0c66e4d318e95b2e3ce896de4dfa7ef0 /dev-libs/libgraphics/libgraphics-34.11.ebuild | |
parent | dfhack ebuild, with light patching. (diff) | |
download | eroen-0bfcc4f8893fa4a5de068874b00f83360c3792c6.tar.gz eroen-0bfcc4f8893fa4a5de068874b00f83360c3792c6.tar.bz2 eroen-0bfcc4f8893fa4a5de068874b00f83360c3792c6.zip |
libegg hooks for ligbraphics
Diffstat (limited to 'dev-libs/libgraphics/libgraphics-34.11.ebuild')
-rw-r--r-- | dev-libs/libgraphics/libgraphics-34.11.ebuild | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/dev-libs/libgraphics/libgraphics-34.11.ebuild b/dev-libs/libgraphics/libgraphics-34.11.ebuild index d5bce6e..46d44e6 100644 --- a/dev-libs/libgraphics/libgraphics-34.11.ebuild +++ b/dev-libs/libgraphics/libgraphics-34.11.ebuild @@ -17,7 +17,7 @@ SRC_URI="http://www.bay12games.com/dwarves/${DF_P}_linux.tar.bz2" LICENSE="DwarfFortress as-is LGPL-2.1 BSD fmod MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="" +IUSE="egg" DEPEND_SCONSCRIPT="virtual/pkgconfig media-libs/sdl-image @@ -41,6 +41,7 @@ DEPEND_INCLUDE="media-libs/fmod " COMMON_DEPEND="!games-simulation/dwarffortress[libgraphics] + egg? ( games-util/dfhack[egg] ) app-emulation/emul-linux-x86-baselibs app-emulation/emul-linux-x86-gtklibs app-emulation/emul-linux-x86-opengl @@ -65,13 +66,18 @@ pkg_setup() { } src_prepare() { + if use egg; then + epatch "${FILESDIR}/0001-Add-something-eggy.patch" + cp "${FILESDIR}/SConscript-egg" "g_src/SConscript" || die + else + cp "${FILESDIR}/SConscript" "g_src/SConscript" || die + fi cp "${FILESDIR}/SConstruct" "SConstruct" || die - cp "${FILESDIR}/SConscript" "g_src/SConscript" || die rm "libs/libgraphics.so" || die } src_compile() { - escons || die + LIBPATH="$(games_get_libdir)" escons || die } src_install() { |