From owner-svn-ports-all@freebsd.org Tue Mar 19 18:43:02 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE1B01530BBF; Tue, 19 Mar 2019 18:43:02 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 51C7C6A980; Tue, 19 Mar 2019 18:43:02 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1DED5D649; Tue, 19 Mar 2019 18:43:02 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2JIh2Ev097341; Tue, 19 Mar 2019 18:43:02 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2JIh0He097329; Tue, 19 Mar 2019 18:43:00 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201903191843.x2JIh0He097329@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Tue, 19 Mar 2019 18:43:00 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/graphics: . milton milton/files X-SVN-Commit-Revision: 496288 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 51C7C6A980 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.97)[-0.966,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Mar 2019 18:43:03 -0000 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 +# $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 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/