dev-libs/sdl-kitchensink: migrate from cmake-utils to cmake
Package-Manager: Portage-3.0.5, Repoman-2.3.23 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
parent
a0a060dee0
commit
ca16f8d0bd
@ -3,22 +3,21 @@
|
|||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
inherit cmake-utils
|
inherit cmake
|
||||||
|
|
||||||
DESCRIPTION="A Simple SDL2 / FFmpeg library for audio/video playback written in C99"
|
DESCRIPTION="A Simple SDL2 / FFmpeg library for audio/video playback written in C99"
|
||||||
HOMEPAGE="https://github.com/katajakasa/SDL_kitchensink"
|
HOMEPAGE="https://github.com/katajakasa/SDL_kitchensink"
|
||||||
SRC_URI="https://github.com/katajakasa/SDL_kitchensink/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/katajakasa/SDL_kitchensink/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
RESTRICT="mirror"
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
|
KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
|
||||||
|
|
||||||
IUSE="static sanitize examples"
|
IUSE="static sanitize examples"
|
||||||
|
|
||||||
BDEPEND+="
|
BDEPEND+="
|
||||||
examples? ( sys-apps/coreutils )
|
examples? ( sys-apps/coreutils )
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPEND+="
|
RDEPEND+="
|
||||||
sanitize? ( >=sys-devel/gcc-5.0.0[sanitize] )
|
sanitize? ( >=sys-devel/gcc-5.0.0[sanitize] )
|
||||||
media-libs/libsdl2
|
media-libs/libsdl2
|
||||||
@ -29,26 +28,29 @@ RDEPEND+="
|
|||||||
S="${WORKDIR}/SDL_kitchensink-${PV}"
|
S="${WORKDIR}/SDL_kitchensink-${PV}"
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
cmake-utils_src_prepare
|
cmake_src_prepare
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
SANITIZE="OFF"
|
SANITIZE="OFF"
|
||||||
EXAMPLES="OFF"
|
EXAMPLES="OFF"
|
||||||
STATIC="OFF"
|
STATIC="OFF"
|
||||||
|
|
||||||
if use sanitize; then SANITIZE="ON"; fi
|
if use sanitize; then SANITIZE="ON"; fi
|
||||||
if use examples; then EXAMPLES="ON"; fi
|
if use examples; then EXAMPLES="ON"; fi
|
||||||
if use static; then STATIC="ON"; fi
|
if use static; then STATIC="ON"; fi
|
||||||
|
|
||||||
local mycmakeargs=(
|
local mycmakeargs=(
|
||||||
-DUSE_ASAN="${SANITIZE}"
|
-DUSE_ASAN="${SANITIZE}"
|
||||||
-DBUILD_EXAMPLES="${EXAMPLES}"
|
-DBUILD_EXAMPLES="${EXAMPLES}"
|
||||||
-DBUILD_STATIC="${STATIC}"
|
-DBUILD_STATIC="${STATIC}"
|
||||||
)
|
)
|
||||||
cmake-utils_src_configure
|
cmake_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
cmake-utils_src_install
|
cmake_src_install
|
||||||
|
|
||||||
if use examples; then
|
if use examples; then
|
||||||
for i in audio complex custom rwops simple; do
|
for i in audio complex custom rwops simple; do
|
||||||
mv "${BUILD_DIR}"/${i} "${BUILD_DIR}"/SDL_kitchensink-${i}
|
mv "${BUILD_DIR}"/${i} "${BUILD_DIR}"/SDL_kitchensink-${i}
|
||||||
|
Loading…
Reference in New Issue
Block a user