mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-02-24 12:35:49 +01:00
Using bundled-libs flag for static compile the package
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit git-r3 cmake-utils
|
||||
inherit cmake-utils eutils git-r3
|
||||
|
||||
DESCRIPTION="Animated sprite editor & pixel art tool"
|
||||
HOMEPAGE="https://www.aseprite.org"
|
||||
@@ -17,12 +17,41 @@ SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+bundled-libs webp"
|
||||
|
||||
DEPEND="dev-util/ninja
|
||||
dev-util/cmake
|
||||
DEPEND="dev-util/cmake
|
||||
dev-util/ninja
|
||||
webp? ( media-libs/libwebp )
|
||||
!bundled-libs? ( dev-libs/tinyxml
|
||||
media-libs/allegro:0[X,png]
|
||||
media-libs/freetype
|
||||
media-libs/giflib:=
|
||||
net-misc/curl
|
||||
sys-libs/zlib
|
||||
virtual/jpeg:0
|
||||
x11-libs/pixman
|
||||
)
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcursor"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_UPDATER=OFF
|
||||
-DUSE_SHARED_ALLEGRO4=$(usex !bundled-libs)
|
||||
-DUSE_SHARED_CURL=$(usex !bundled-libs)
|
||||
-DUSE_SHARED_FREETYPE=$(usex !bundled-libs)
|
||||
-DUSE_SHARED_GIFLIB=$(usex !bundled-libs)
|
||||
-DUSE_SHARED_JPEGLIB=$(usex !bundled-libs)
|
||||
-DUSE_SHARED_LIBLOADPNG=$(usex !bundled-libs)
|
||||
-DUSE_SHARED_LIBPNG=$(usex !bundled-libs)
|
||||
-DUSE_SHARED_PIXMAN=$(usex !bundled-libs)
|
||||
-DUSE_SHARED_TINYXML=$(usex !bundled-libs)
|
||||
-DUSE_SHARED_ZLIB=$(usex !bundled-libs)
|
||||
-DUSE_SHARED_LIBWEBP=$(usex !bundled-libs)
|
||||
-DWITH_WEBP_SUPPORT="$(usex webp)"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin $BUILD_DIR/bin/aseprite
|
||||
mkdir -p "${D}usr/share/aseprite/"
|
||||
|
||||
Reference in New Issue
Block a user