diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2016-03-26 16:50:51 +0500 |
---|---|---|
committer | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2016-03-26 16:50:51 +0500 |
commit | 30ab1db154f8fc1308215993a77fa123386f100b (patch) | |
tree | fdacec78343c716aaaacb79ee26052b64a7148e1 /dev-games | |
parent | [games-fps/redeclipse] Min req libenet is 1.3.9 (diff) | |
download | gamerlay-30ab1db154f8fc1308215993a77fa123386f100b.tar.gz gamerlay-30ab1db154f8fc1308215993a77fa123386f100b.tar.bz2 gamerlay-30ab1db154f8fc1308215993a77fa123386f100b.zip |
[dev-games/aseprite] 1.1.3 for fun
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/aseprite/Manifest | 1 | ||||
-rw-r--r-- | dev-games/aseprite/aseprite-1.1.3.ebuild | 77 | ||||
-rw-r--r-- | dev-games/aseprite/files/aseprite-1.1.3_cmake.patch | 153 | ||||
-rw-r--r-- | dev-games/aseprite/files/aseprite-1.1.3_underlinking.patch | 12 | ||||
-rw-r--r-- | dev-games/aseprite/metadata.xml | 14 |
5 files changed, 257 insertions, 0 deletions
diff --git a/dev-games/aseprite/Manifest b/dev-games/aseprite/Manifest new file mode 100644 index 0000000..bb5868d --- /dev/null +++ b/dev-games/aseprite/Manifest @@ -0,0 +1 @@ +DIST Aseprite-v1.1.3-Source.zip 9887803 SHA256 8642668d5ecd8adc0d082e49f5715b38123b6db1836fc6776756c3921304dbaa SHA512 9e37ad2ecd42a82b1940a28b7007572b46baa93cd2ae830c0d88441b70acbec6431b7088a2e477a8ac249a6988774e651b8d77b2e986a6ac22280c824a5fa98d WHIRLPOOL 048e6b2265817790200dc9850bf442980a64d2ccdfd3bce0c8d97e5c15905283fb8c2e6d255a42d12e6d7b710d994d7d7b4d53bf6d5ef4e24f48e6726cd4bbbc diff --git a/dev-games/aseprite/aseprite-1.1.3.ebuild b/dev-games/aseprite/aseprite-1.1.3.ebuild new file mode 100644 index 0000000..7a45a3d --- /dev/null +++ b/dev-games/aseprite/aseprite-1.1.3.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils multilib toolchain-funcs flag-o-matic + +DESCRIPTION="Animated sprite editor & pixel art tool" +HOMEPAGE="http://www.aseprite.org" +SRC_URI="https://github.com/aseprite/aseprite/releases/download/v${PV}/Aseprite-v${PV}-Source.zip" + +LICENSE="GPL-2 FTL" +SLOT="0" +# giflib still unkeyworded +KEYWORDS="~amd64 ~x86" + +IUSE="debug memleak webp" + +RDEPEND="dev-libs/tinyxml + media-libs/allegro:0[X,png] + media-libs/freetype + media-libs/giflib + webp? ( media-libs/libwebp ) + media-libs/libpng:0 + sys-libs/zlib + virtual/jpeg:0 + x11-libs/libX11 + x11-libs/pixman" +DEPEND="${RDEPEND} + app-arch/unzip" + +PATCHES=( "${FILESDIR}"/${P}_underlinking.patch + "${FILESDIR}"/${P}_cmake.patch ) + +DOCS=( docs/files/ase.txt + docs/files/fli.txt + docs/files/msk.txt + docs/files/pic.txt + docs/files/picpro.txt + README.md ) + +S="${WORKDIR}" + +src_prepare() { + cmake-utils_src_prepare + + # Fix to make flag-o-matic work. + if use debug ; then + sed -i '/-DNDEBUG/d' CMakeLists.txt || die + fi + # Replace to actual version + sed -i -e "s:1.1.2-dev:1.1.3:g" src/config.h data/gui.xml || die +} + +src_configure() { + use debug && append-cppflags -DDEBUGMODE -D_DEBUG + + local mycmakeargs=( + -DENABLE_UPDATER=OFF + -DFULLSCREEN_PLATFORM=ON + -DUSE_SHARED_ALLEGRO4=ON + -DUSE_SHARED_CURL=ON + -DUSE_SHARED_FREETYPE=ON + -DUSE_SHARED_GIFLIB=ON + -DUSE_SHARED_JPEGLIB=ON + -DUSE_SHARED_LIBLOADPNG=ON + -DUSE_SHARED_LIBPNG=ON + -DUSE_SHARED_PIXMAN=ON + -DUSE_SHARED_TINYXML=ON + -DUSE_SHARED_ZLIB=ON + $(cmake-utils_use_with webp WEBP_SUPPORT) + $(cmake-utils_use_enable memleak) + ) + + cmake-utils_src_configure +} diff --git a/dev-games/aseprite/files/aseprite-1.1.3_cmake.patch b/dev-games/aseprite/files/aseprite-1.1.3_cmake.patch new file mode 100644 index 0000000..d3c9f19 --- /dev/null +++ b/dev-games/aseprite/files/aseprite-1.1.3_cmake.patch @@ -0,0 +1,153 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c516f29..c0c5433 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -157,30 +157,24 @@ endif() + + # zlib + if(USE_SHARED_ZLIB) +- find_package(ZLIB) +- if(NOT ZLIB_FOUND) +- message(FATAL_ERROR "zlib not found") +- endif() ++ find_package(ZLIB REQUIRED) + else() + set(ZLIB_LIBRARIES zlib) +- set(ZLIB_INCLUDE_DIR ${ZLIB_DIR}) ++ set(ZLIB_INCLUDE_DIRS ${ZLIB_DIR}) + # Zlib generated zconf.h file + include_directories(${CMAKE_BINARY_DIR}/third_party/zlib) + endif() +-include_directories(${ZLIB_INCLUDE_DIR}) ++include_directories(${ZLIB_INCLUDE_DIRS}) + + # libpng + if(USE_SHARED_LIBPNG) +- find_package(PNG) +- if(NOT PNG_FOUND) +- message(FATAL_ERROR "libpng not found") +- endif() ++ find_package(PNG REQUIRED) + add_definitions(${PNG_DEFINITIONS}) + else() + set(PNG_LIBRARIES libpng) +- set(PNG_INCLUDE_DIR ${LIBPNG_DIR}) ++ set(PNG_INCLUDE_DIRS ${LIBPNG_DIR}) + endif() +-include_directories(${PNG_INCLUDE_DIR}) ++include_directories(${PNG_INCLUDE_DIRS}) + add_definitions(-DPNG_NO_MMX_CODE) # Do not use MMX optimizations in PNG code + + # libwebp +@@ -222,35 +216,28 @@ include_directories(${PIXMAN_INCLUDE_DIR}) + + # freetype + if(USE_SHARED_FREETYPE) +- find_library(FREETYPE_LIBRARY NAMES freetype) +- find_path(FREETYPE_INCLUDE_DIR NAMES freetype.h) ++ find_package(Freetype REQUIRED) + else() +- set(FREETYPE_LIBRARY freetype) +- set(FREETYPE_INCLUDE_DIR ${FREETYPE_DIR}/include) ++ set(FREETYPE_LIBRARIES freetype) ++ set(FREETYPE_INCLUDE_DIRS ${FREETYPE_DIR}/include) + endif() +-include_directories(${FREETYPE_INCLUDE_DIR}) ++include_directories(${FREETYPE_INCLUDE_DIRS}) + + if(USE_SHARED_GIFLIB) + find_package(GIF REQUIRED) +- if(NOT GIF_FOUND) +- message(FATAL_ERROR "giflib not found") +- endif() + else() + set(GIF_LIBRARIES giflib) +- set(GIF_INCLUDE_DIR ${GIFLIB_DIR}/lib) ++ set(GIF_INCLUDE_DIRS ${GIFLIB_DIR}/lib) + endif() +-include_directories(${GIF_INCLUDE_DIR}) ++include_directories(${GIF_INCLUDE_DIRS}) + + if(USE_SHARED_JPEGLIB) +- find_package(JPEG) +- if(NOT JPEG_FOUND) +- message(FATAL_ERROR "jpeg not found") +- endif() ++ find_package(JPEG REQUIRED) + else() + set(JPEG_LIBRARIES jpeg) +- set(JPEG_INCLUDE_DIR ${LIBJPEG_DIR}) ++ set(JPEG_INCLUDE_DIRS ${LIBJPEG_DIRS}) + endif() +-include_directories(${JPEG_INCLUDE_DIR}) ++include_directories(${JPEG_INCLUDE_DIRS}) + + if(USE_ALLEG4_BACKEND) + if(USE_SHARED_LIBLOADPNG) +@@ -264,13 +251,12 @@ if(USE_ALLEG4_BACKEND) + endif() + + if(USE_SHARED_CURL) +- find_library(LIBCURL_LIBRARY NAMES curl) +- find_path(LIBCURL_INCLUDE_DIR NAMES curl/curl.h) ++ find_package(CURL REQUIRED) + else() +- set(LIBCURL_LIBRARY libcurl) +- set(LIBCURL_INCLUDE_DIR ${CURL_DIR}/include) ++ set(CURL_LIBRARIES libcurl) ++ set(CURL_INCLUDE_DIRS ${CURL_DIR}/include) + endif() +-include_directories(${LIBCURL_INCLUDE_DIR}) ++include_directories(${CURL_INCLUDE_DIRS}) + + # simpleini + include_directories(${SIMPLEINI_DIR}) +@@ -323,17 +309,11 @@ endif() + + if(UNIX AND NOT APPLE AND NOT BEOS) + # Pthreads +- find_package(Threads) +- if(NOT CMAKE_USE_PTHREADS_INIT) +- message(FATAL_ERROR "Unix port requires pthreads support.") +- endif() ++ find_package(Threads REQUIRED) + list(APPEND PLATFORM_LIBS m ${CMAKE_THREAD_LIBS_INIT}) + + # X11 +- find_package(X11) +- if(NOT X11_FOUND) +- message(FATAL_ERROR "Unix port requires X11 (e.g. libx11-dev).") +- endif() ++ find_package(X11 REQUIRED) + include_directories(SYSTEM ${X11_INCLUDE_DIR}) + list(APPEND PLATFORM_LIBS ${X11_LIBRARIES}) + +diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt +index fcc4136..c763993 100644 +--- a/src/app/CMakeLists.txt ++++ b/src/app/CMakeLists.txt +@@ -446,12 +446,13 @@ target_link_libraries(app-lib + ui-lib + undo-lib + ${TINYXML_LIBRARY} ++ ${CURL_LIBRARIES} + ${JPEG_LIBRARIES} + ${GIF_LIBRARIES} + ${PNG_LIBRARIES} + ${WEBP_LIBRARIES} + ${ZLIB_LIBRARIES} +- ${FREETYPE_LIBRARY}) ++ ${FREETYPE_LIBRARIES}) + + if(ENABLE_UPDATER) + target_link_libraries(app-lib updater-lib) +diff --git a/src/net/CMakeLists.txt b/src/net/CMakeLists.txt +index 7913956..4779643 100644 +--- a/src/net/CMakeLists.txt ++++ b/src/net/CMakeLists.txt +@@ -7,4 +7,4 @@ add_library(net-lib + http_response.cpp) + + target_link_libraries(net-lib +- ${LIBCURL_LIBRARY}) ++ ${CURL_LIBRARIES}) diff --git a/dev-games/aseprite/files/aseprite-1.1.3_underlinking.patch b/dev-games/aseprite/files/aseprite-1.1.3_underlinking.patch new file mode 100644 index 0000000..e485571 --- /dev/null +++ b/dev-games/aseprite/files/aseprite-1.1.3_underlinking.patch @@ -0,0 +1,12 @@ +diff --git a/src/she/CMakeLists.txt b/src/she/CMakeLists.txt +index eddf386..d1b8ce5 100644 +--- a/src/she/CMakeLists.txt ++++ b/src/she/CMakeLists.txt +@@ -205,6 +205,7 @@ endif() + add_library(she ${SHE_SOURCES})
+
+ target_link_libraries(she
++ ${PLATFORM_LIBS}
+ gfx-lib
+ base-lib)
+
diff --git a/dev-games/aseprite/metadata.xml b/dev-games/aseprite/metadata.xml new file mode 100644 index 0000000..91c8b9b --- /dev/null +++ b/dev-games/aseprite/metadata.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + Animated sprite editor and pixel art tool + </longdescription> + <use> + <flag name="memleak">Enable memory-leaks detector (only for developers)</flag> + <flag name="webp">Enable webp image format support</flag> + </use> +</pkgmetadata> |