# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit xdg
+
+inherit toolchain-funcs xdg
MY_PV="${PV/_rc/-RC}"
MY_P="${PN}-${MY_PV}"
LICENSE="GPL-2"
SLOT="0"
-IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png cpu_flags_x86_sse +timidity +truetype zlib"
+IUSE="aplaymidi debug dedicated iconv icu +lzma lzo +openmedia +png cpu_flags_x86_sse +timidity +truetype zlib"
RESTRICT="test" # needs a graphics set in order to test
RDEPEND="!dedicated? (
- media-libs/libsdl[sound,X,video]
+ media-libs/libsdl2[sound,video]
icu? (
dev-libs/icu-layoutex
dev-libs/icu-le-hb
sys-libs/zlib:=
)
)
+ lzma? ( app-arch/xz-utils )
lzo? ( dev-libs/lzo:2 )
iconv? ( virtual/libiconv )
png? (
--prefix-dir="${EPREFIX}/usr"
$(use_with cpu_flags_x86_sse sse)
$(use_with iconv)
+ $(use_with lzma)
$(use_with lzo liblzo2)
$(use_with png)
$(usex debug '--enable-debug=3' '')
# configure is a hand-written bash-script, so econf will not work.
# It's all built as C++, upstream uses CFLAGS internally.
- CFLAGS="" ./configure ${myopts[@]} || die
+ CC=$(tc-getCC) CXX=$(tc-getCXX) CFLAGS="" ./configure ${myopts[@]} || die
}
src_compile() {
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit xdg
+
+inherit toolchain-funcs xdg
MY_PV="${PV/_rc/-RC}"
MY_P="${PN}-${MY_PV}"
LICENSE="GPL-2"
SLOT="0"
-IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png cpu_flags_x86_sse +timidity +truetype zlib"
+IUSE="aplaymidi debug dedicated iconv icu +lzma lzo +openmedia +png cpu_flags_x86_sse +timidity +truetype zlib"
RESTRICT="test" # needs a graphics set in order to test
RDEPEND="!dedicated? (
- media-libs/libsdl[sound,X,video]
+ media-libs/libsdl2[sound,video]
icu? (
dev-libs/icu-layoutex
dev-libs/icu-le-hb
sys-libs/zlib:=
)
)
+ lzma? ( app-arch/xz-utils )
lzo? ( dev-libs/lzo:2 )
iconv? ( virtual/libiconv )
png? (
--prefix-dir="${EPREFIX}/usr"
$(use_with cpu_flags_x86_sse sse)
$(use_with iconv)
+ $(use_with lzma)
$(use_with lzo liblzo2)
$(use_with png)
$(usex debug '--enable-debug=3' '')
# configure is a hand-written bash-script, so econf will not work.
# It's all built as C++, upstream uses CFLAGS internally.
- CFLAGS="" ./configure ${myopts[@]} || die
+ CC=$(tc-getCC) CXX=$(tc-getCXX) CFLAGS="" ./configure ${myopts[@]} || die
}
src_compile() {