Version bump for SDL kitchensink, thank you @katajakasa
This commit is contained in:
parent
5c0e9b4b66
commit
d53522a256
@ -1 +1 @@
|
||||
DIST sdl-kitchensink-1.0.7.tar.gz 69854 BLAKE2B 33cd38bf9e5dbb3eaf3750af1680dd6d5daf4f8b951cfdfaf3ca2719651cc3498db08ee729a80cf8562b1062923f005979ab1970c11534174b468a453e93d552 SHA512 0f8970ff88ed78bcaf0bdc08ce7f7871d538d7d442e3047cf834866c7deb77c3fadbb97c9e67d3b032d8314f62676f4ad913fb4cee45901381914f50a11d6b51
|
||||
DIST sdl-kitchensink-1.0.8.tar.gz 74969 BLAKE2B 21960457fb00032ff6a4cfb586379b6bc29682daf4dfda3fbecfa765ab6b05a6672c967c4aecdc338f5036d8ab38bd2d61491ea24774fa342af2a09621a5a040 SHA512 9ed8b1bf594c45723965ca717615d23d654c90d6b2720ccf98d0e569e51bc0d69292f2f918f910e1e2971a1cfe4523d844f8d0b26da52e28a65fba25a4a7576b
|
||||
|
@ -16,7 +16,6 @@ KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
|
||||
IUSE="static sanitize examples"
|
||||
|
||||
BDEPEND+="
|
||||
!static? ( sys-apps/findutils )
|
||||
examples? ( sys-apps/coreutils )
|
||||
"
|
||||
|
||||
@ -36,26 +35,25 @@ src_prepare() {
|
||||
src_configure() {
|
||||
SANITIZE="OFF"
|
||||
EXAMPLES="OFF"
|
||||
STATIC="OFF"
|
||||
if use sanitize; then SANITIZE="ON"; fi
|
||||
if use examples; then EXAMPLES="ON"; fi
|
||||
if use static; then STATIC="ON"; fi
|
||||
local mycmakeargs=(
|
||||
-DUSE_ASAN="${SANITIZE}"
|
||||
-DBUILD_EXAMPLES="${EXAMPLES}"
|
||||
-DBUILD_STATIC="${STATIC}"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
if ! use static; then
|
||||
elog "Removing static library libSDL_kitchensink_static.a"
|
||||
find "${D}" -name libSDL_kitchensink_static.a -delete
|
||||
fi
|
||||
if use examples; then
|
||||
for i in audio complex custom rwops simple; do
|
||||
elog "Installing example: ${i}"
|
||||
mv "${BUILD_DIR}"/${i} "${BUILD_DIR}"/SDL_kitchensink-${i}
|
||||
dobin "${BUILD_DIR}"/SDL_kitchensink-${i}
|
||||
elog "Installed ${i} example as SDL_kitchensink-${i}"
|
||||
done
|
||||
if use static; then
|
||||
elog "Examples are linked against static SDL_kitchensink library."
|
Loading…
Reference in New Issue
Block a user