mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-03-08 03:25:45 +01:00
Changed aseprite use flags to be more accurate.
Changed "bundled-libs" to "static" - since this is waht the flag actually do, added new flag "bundled-allegro" which is disabled by default, so that aseprite will use modified own version of allegor framework. In that case warning will be displayed to the user (as in original ebuild in gentoo repo).
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils eutils git-r3
|
||||
inherit cmake-utils eutils flag-o-matic git-r3
|
||||
|
||||
DESCRIPTION="Animated sprite editor & pixel art tool"
|
||||
HOMEPAGE="https://www.aseprite.org"
|
||||
@@ -15,15 +15,19 @@ CMAKE_BUILD_TYPE="Release"
|
||||
LICENSE="https://github.com/aseprite/aseprite/blob/master/EULA.txt"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+bundled-libs webp"
|
||||
IUSE="static debug kde gtk3 test +bundled-allegro webp"
|
||||
|
||||
DEPEND="dev-util/cmake
|
||||
dev-util/ninja
|
||||
webp? ( media-libs/libwebp )
|
||||
!bundled-libs? ( dev-libs/tinyxml
|
||||
media-libs/allegro:0[X,png]
|
||||
!static? (
|
||||
!bundled-allegro? ( media-libs/allegro:0[X,png] )
|
||||
app-text/cmark
|
||||
dev-libs/tinyxml
|
||||
media-libs/freetype
|
||||
media-libs/giflib:=
|
||||
media-libs/giflib
|
||||
media-libs/harfbuzz
|
||||
media-libs/libpng
|
||||
net-misc/curl
|
||||
sys-libs/zlib
|
||||
virtual/jpeg:0
|
||||
@@ -34,19 +38,33 @@ DEPEND="dev-util/cmake
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
use debug && append-cppflags -DDEBUGMODE -D_DEBUG
|
||||
|
||||
local mycmakeargs=()
|
||||
|
||||
use !static &&
|
||||
mycmakeargs+=(
|
||||
-DUSE_SHARED_CMARK=ON
|
||||
-DUSE_SHARED_CURL=ON
|
||||
-DUSE_SHARED_FREETYPE=ON
|
||||
-DUSE_SHARED_GIFLIB=ON
|
||||
-DUSE_SHARED_HARFBUZZ=ON
|
||||
-DUSE_SHARED_JPEGLIB=ON
|
||||
-DUSE_SHARED_LIBPNG=ON
|
||||
-DUSE_SHARED_PIXMAN=ON
|
||||
-DUSE_SHARED_TINYXML=ON
|
||||
-DUSE_SHARED_ZLIB=ON
|
||||
)
|
||||
|
||||
use !bundled-allegro && mycmakeargs+=( -DUSE_SHARED_ALLEGRO4=ON )
|
||||
|
||||
mycmakeargs+=(
|
||||
-DENABLE_TESTS="$(usex test)"
|
||||
-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)
|
||||
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
|
||||
-DWITH_DESKTOP_INTEGRATION=ON
|
||||
-DWITH_GTK_FILE_DIALOG_SUPPORT="$(usex gtk3)"
|
||||
-DWITH_QT_THUMBNAILER="$(usex kde)"
|
||||
-DWITH_WEBP_SUPPORT="$(usex webp)"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
@@ -57,3 +75,11 @@ src_install() {
|
||||
mkdir -p "${D}usr/share/aseprite/"
|
||||
cp -a $BUILD_DIR/bin/data "${D}usr/share/aseprite/"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use !bundled-allegro; then
|
||||
ewarn "Aseprite has been built with system-wide Allegro 4."
|
||||
ewarn "Please note that you will not be able to resize the main window."
|
||||
ewarn "For resizing support enable USE-flag bundled-libs and rebuild package."
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user