Date: Tue, 19 Mar 2019 18:43:00 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r496288 - in head/graphics: . milton milton/files Message-ID: <201903191843.x2JIh0He097329@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Tue Mar 19 18:42:59 2019 New Revision: 496288 URL: https://svnweb.freebsd.org/changeset/ports/496288 Log: Milton is an open source application that lets you Just Paint. WWW: https://www.miltonpaint.com/ Added: head/graphics/milton/ head/graphics/milton/Makefile (contents, props changed) head/graphics/milton/distinfo (contents, props changed) head/graphics/milton/files/ head/graphics/milton/files/patch-CMakeLists.txt (contents, props changed) head/graphics/milton/files/patch-src_platform.h (contents, props changed) head/graphics/milton/files/patch-src_platform__unix.h (contents, props changed) head/graphics/milton/files/patch-src_system__includes.h (contents, props changed) head/graphics/milton/files/patch-src_tiny__jpeg.h (contents, props changed) head/graphics/milton/files/patch-src_unity.cc (contents, props changed) head/graphics/milton/pkg-descr (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Tue Mar 19 18:41:25 2019 (r496287) +++ head/graphics/Makefile Tue Mar 19 18:42:59 2019 (r496288) @@ -553,6 +553,7 @@ SUBDIR += metacam SUBDIR += metapixel SUBDIR += mhgui + SUBDIR += milton SUBDIR += minder SUBDIR += ming SUBDIR += mirage Added: head/graphics/milton/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/milton/Makefile Tue Mar 19 18:42:59 2019 (r496288) @@ -0,0 +1,32 @@ +# Created by: Alexey Dokuchaev <danfe@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= milton +PORTVERSION= 1.6.0 +DISTVERSIONPREFIX= v +CATEGORIES= graphics + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Infinite-canvas paint program + +LICENSE= MIT + +USE_GITHUB= yes +GH_ACCOUNT= serge-rgb + +USES= cmake gl gnome +USE_GL= gl +USE_GNOME= gtk20 +USE_SDL= sdl2 + +PLIST_FILES= bin/milton + +post-patch: + @${REINPLACE_CMD} -e 's:__linux__:__${OPSYS}__:' \ + ${WRKSRC}/src/easytab.h + +do-install: + ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/Milton \ + ${STAGEDIR}${PREFIX}/bin/milton + +.include <bsd.port.mk> Added: head/graphics/milton/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/milton/distinfo Tue Mar 19 18:42:59 2019 (r496288) @@ -0,0 +1,3 @@ +TIMESTAMP = 1552623103 +SHA256 (serge-rgb-milton-v1.6.0_GH0.tar.gz) = 0c3b6e1774678af1efa7c4018d2a2281838c0e748c6e594d059d49eae57c3638 +SIZE (serge-rgb-milton-v1.6.0_GH0.tar.gz) = 12056633 Added: head/graphics/milton/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/milton/files/patch-CMakeLists.txt Tue Mar 19 18:42:59 2019 (r496288) @@ -0,0 +1,46 @@ +--- CMakeLists.txt.orig 2019-03-15 04:11:43 UTC ++++ CMakeLists.txt +@@ -41,7 +41,7 @@ else() + endif() + + set(CMAKE_CXX_FLAGS_DEBUG "-g") +-set(CMAKE_CXX_FLAGS_RELEASE "-O3") ++#set(CMAKE_CXX_FLAGS_RELEASE "-O3") + + message(STATUS "Building ${CMAKE_BUILD_TYPE}") + +@@ -71,13 +71,14 @@ if(UNIX) + ${UnixCFlags}) + endif() + +-if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") ++if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") + + find_package(OpenGL REQUIRED) + find_package(GTK2 2.6 REQUIRED gtk) + find_package(X11 REQUIRED) + find_library(XINPUT_LIBRARY libXi.so) + find_package(Threads REQUIRED) ++ find_package(SDL2 REQUIRED) + + if(XINPUT_LIBRARY STREQUAL "XINPUT_LIBRARY-NOTFOUND") + message(FATAL_ERROR "Could not find libXi.so") +@@ -98,7 +99,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + target_include_directories(Milton PRIVATE + ${GTK2_INCLUDE_DIRS} + ${X11_INCLUDE_DIR} +- ${SDL2DIR}/build/linux64/include/SDL2 ++ ${SDL2_INCLUDE_DIRS} + ${OPENGL_INCLUDE_DIR} + ) + +@@ -107,8 +108,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + ${X11_LIBRARIES} + ${OPENGL_LIBRARIES} + ${XINPUT_LIBRARY} +- ${SDL2DIR}/build/linux64/lib/libSDL2maind.a +- ${SDL2DIR}/build/linux64/lib/libSDL2d.a ++ ${SDL2_LIBRARIES} + ${CMAKE_THREAD_LIBS_INIT} + ${CMAKE_DL_LIBS} + ) Added: head/graphics/milton/files/patch-src_platform.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/milton/files/patch-src_platform.h Tue Mar 19 18:42:59 2019 (r496288) @@ -0,0 +1,11 @@ +--- src/platform.h.orig 2019-03-15 04:11:43 UTC ++++ src/platform.h +@@ -197,7 +197,7 @@ float perf_count_to_sec(u64 counter); + + #if defined(_WIN32) + #include "platform_windows.h" +-#elif defined(__linux__) || defined(__MACH__) ++#elif defined(__linux__) || defined(__MACH__) || defined(__FreeBSD__) + #include "platform_unix.h" + #endif + Added: head/graphics/milton/files/patch-src_platform__unix.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/milton/files/patch-src_platform__unix.h Tue Mar 19 18:42:59 2019 (r496288) @@ -0,0 +1,11 @@ +--- src/platform_unix.h.orig 2019-03-15 04:11:43 UTC ++++ src/platform_unix.h +@@ -1,7 +1,7 @@ + // Copyright (c) 2015 Sergio Gonzalez. All rights reserved. + // License: https://github.com/serge-rgb/milton#license + +-#ifdef __linux__ ++#if defined(__linux__) || defined(__FreeBSD__) + #ifndef _GNU_SOURCE + #define _GNU_SOURCE // To get MAP_ANONYMOUS on linux + #endif Added: head/graphics/milton/files/patch-src_system__includes.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/milton/files/patch-src_system__includes.h Tue Mar 19 18:42:59 2019 (r496288) @@ -0,0 +1,11 @@ +--- src/system_includes.h.orig 2019-03-15 04:11:43 UTC ++++ src/system_includes.h +@@ -48,7 +48,7 @@ + + #include "gl.h" + +-#elif defined(__linux__) ++#elif defined(__linux__) || defined(__FreeBSD__) + + #include "gl.h" + Added: head/graphics/milton/files/patch-src_tiny__jpeg.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/milton/files/patch-src_tiny__jpeg.h Tue Mar 19 18:42:59 2019 (r496288) @@ -0,0 +1,11 @@ +--- src/tiny_jpeg.h.orig 2019-03-15 04:11:43 UTC ++++ src/tiny_jpeg.h +@@ -217,7 +217,7 @@ static uint8_t tjei_g_output_buffer[TJEI_BUFFER_SIZE]; + + #ifdef _WIN32 + #define tje_log(msg) OutputDebugStringA(msg) +-#elif defined(__linux__) || defined(__MACH__) ++#elif defined(__linux__) || defined(__MACH__) || defined(__FreeBSD__) + #define tje_log(msg) puts(msg) + #endif + Added: head/graphics/milton/files/patch-src_unity.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/milton/files/patch-src_unity.cc Tue Mar 19 18:42:59 2019 (r496288) @@ -0,0 +1,11 @@ +--- src/unity.cc.orig 2019-03-15 04:11:43 UTC ++++ src/unity.cc +@@ -18,7 +18,7 @@ + + #if defined(_WIN32) + #include "platform_windows.cc" +-#elif defined(__linux__) ++#elif defined(__linux__) || defined(__FreeBSD__) + #include "platform_unix.cc" + #include "platform_linux.cc" + #elif defined(__MACH__) Added: head/graphics/milton/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/milton/pkg-descr Tue Mar 19 18:42:59 2019 (r496288) @@ -0,0 +1,9 @@ +Milton is an open source application that lets you Just Paint. + +There are no pixels, you can paint with (almost) infinite detail. +It feels raster-based but it works with vectors. It is not an image +editor. It is not a vector graphics editor. It is a program that +lets you draw, sketch, and paint. There is no save button, your +work is persistent with unlimited undo. + +WWW: https://www.miltonpaint.com/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903191843.x2JIh0He097329>