From owner-svn-ports-all@freebsd.org Thu May 31 19:42:38 2018 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 F2869FD2547; Thu, 31 May 2018 19:42:37 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3D937A1CB; Thu, 31 May 2018 19:42:37 +0000 (UTC) (envelope-from yuri@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 84ECC1EA48; Thu, 31 May 2018 19:42:37 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4VJgbWT082343; Thu, 31 May 2018 19:42:37 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4VJgavf082336; Thu, 31 May 2018 19:42:36 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201805311942.w4VJgavf082336@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Thu, 31 May 2018 19:42:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r471224 - in head/graphics: . gmic gmic/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/graphics: . gmic gmic/files X-SVN-Commit-Revision: 471224 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 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: Thu, 31 May 2018 19:42:38 -0000 Author: yuri Date: Thu May 31 19:42:36 2018 New Revision: 471224 URL: https://svnweb.freebsd.org/changeset/ports/471224 Log: New port: graphics/gmic: Framework for image processing Added: head/graphics/gmic/ head/graphics/gmic/Makefile (contents, props changed) head/graphics/gmic/distinfo (contents, props changed) head/graphics/gmic/files/ head/graphics/gmic/files/patch-CMakeLists.txt (contents, props changed) head/graphics/gmic/files/patch-src_gmic.cpp (contents, props changed) head/graphics/gmic/pkg-descr (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Thu May 31 19:19:58 2018 (r471223) +++ head/graphics/Makefile Thu May 31 19:42:36 2018 (r471224) @@ -282,6 +282,7 @@ SUBDIR += glosm SUBDIR += glpng SUBDIR += gltt + SUBDIR += gmic SUBDIR += gmic-qt SUBDIR += gmt SUBDIR += gnash Added: head/graphics/gmic/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gmic/Makefile Thu May 31 19:42:36 2018 (r471224) @@ -0,0 +1,51 @@ +# $FreeBSD$ + +PORTNAME= gmic +DISTVERSIONPREFIX= v. +DISTVERSION= 2.2.3 +CATEGORIES= graphics +MASTER_SITES= http://gmic.eu/:gmic_stdlib +DISTFILES= gmic_stdlib.h:gmic_stdlib +DIST_SUBDIR= ${PORTNAME}-${DISTVERSIONFULL} +EXTRACT_ONLY= dtschump-gmic-${DISTVERSIONFULL}_GH0.tar.gz + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Framework for image processing + +LICENSE= CeCILL +LICENSE_NAME= CeCILL +LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +BROKEN_FreeBSD_10= error: "c++ crashes, clang-5 and 6 fail: undefined reference to `__atomic_load'" + +BUILD_DEPENDS= ${LOCALBASE}/include/CImg.h:graphics/cimg +LIB_DEPENDS= libfftw3.so:math/fftw3 \ + libGraphicsMagick++.so:graphics/GraphicsMagick \ + libIlmImf.so:graphics/OpenEXR \ + libImath-2_2.so:graphics/ilmbase \ + libomp.so:devel/openmp \ + libopencv_core.so:graphics/opencv-core \ + libopencv_video.so:graphics/opencv \ + libpng16.so:graphics/png \ + libtiff.so:graphics/tiff + +USES= cmake:outsource compiler:c++11-lang jpeg pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= dtschump +USE_XORG= ice sm x11 xext +USE_LDCONFIG= yes + +CMAKE_OFF= BUILD_LIB_STATIC +CMAKE_ON= ENABLE_DYNAMIC_LINKING + +PLIST_FILES= bin/gmic \ + include/gmic.h \ + lib/libgmic.so \ + lib/libgmic.so.1 \ + man/man1/gmic.1.gz + +post-extract: + @${CP} ${DISTDIR}/${DIST_SUBDIR}/gmic_stdlib.h ${WRKSRC}/src/ + +.include Added: head/graphics/gmic/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gmic/distinfo Thu May 31 19:42:36 2018 (r471224) @@ -0,0 +1,5 @@ +TIMESTAMP = 1527752198 +SHA256 (gmic-v.2.2.3/gmic_stdlib.h) = edd24f2dbfbcff9f6b5156fe966c79a78c82df09fa0da12f31c170b85171de15 +SIZE (gmic-v.2.2.3/gmic_stdlib.h) = 1821356 +SHA256 (gmic-v.2.2.3/dtschump-gmic-v.2.2.3_GH0.tar.gz) = 1ed4f938ec9896223140c39062338780a35c52be53cbad44cf09b78de1b18bbc +SIZE (gmic-v.2.2.3/dtschump-gmic-v.2.2.3_GH0.tar.gz) = 39079198 Added: head/graphics/gmic/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gmic/files/patch-CMakeLists.txt Thu May 31 19:42:36 2018 (r471224) @@ -0,0 +1,22 @@ +--- CMakeLists.txt.orig 2018-05-16 12:26:13 UTC ++++ CMakeLists.txt +@@ -108,7 +108,7 @@ set(COMPILE_FLAGS "-Dgmic_build -Dcimg_u + if(APPLE) + set(COMPILE_FLAGS "${COMPILE_FLAGS} -mmacosx-version-min=10.8 -stdlib=libc++ -Wno-error=c++11-narrowing -Wc++11-extensions -fpermissive") + else() +- set(COMPILE_FLAGS "${COMPILE_FLAGS} -Wno-error=narrowing -fno-ipa-sra -fpermissive") ++ set(COMPILE_FLAGS "${COMPILE_FLAGS} -Wno-error=narrowing -fpermissive") + endif() + + if(NOT "${PRERELEASE_TAG}" STREQUAL "") +@@ -235,8 +235,8 @@ endif() + + # CImg.h header + if(NOT EXISTS ${CMAKE_SOURCE_DIR}/src/CImg.h) +- file(DOWNLOAD https://github.com/dtschump/CImg/raw/master/CImg.h ${CMAKE_SOURCE_DIR}/src/CImg.h) +- execute_process(COMMAND touch ${CMAKE_SOURCE_DIR}/src/CImg.h) ++ #file(DOWNLOAD https://github.com/dtschump/CImg/raw/master/CImg.h ${CMAKE_SOURCE_DIR}/src/CImg.h) ++ execute_process(COMMAND ln -s ${CMAKE_INSTALL_PREFIX}/include/CImg.h ${CMAKE_SOURCE_DIR}/src/CImg.h) + endif() + + # gmic_stdlib.h header Added: head/graphics/gmic/files/patch-src_gmic.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gmic/files/patch-src_gmic.cpp Thu May 31 19:42:36 2018 (r471224) @@ -0,0 +1,20 @@ +--- src/gmic.cpp.orig 2018-05-30 23:49:53 UTC ++++ src/gmic.cpp +@@ -2224,7 +2224,7 @@ double gmic::mp_ext(char *const str, voi + // Manage correspondence between abort pointers and thread ids. + CImgList gmic::list_p_is_abort = CImgList(); + bool *gmic::abort_ptr(bool *const p_is_abort) { +-#if defined(__MACOSX__) || defined(__APPLE__) ++#if defined(__MACOSX__) || defined(__APPLE__) || defined(__FreeBSD__) + void* tid = (void*)(cimg_ulong)getpid(); + #elif cimg_OS==1 + void* tid = (void*)(cimg_ulong)syscall(SYS_gettid); +@@ -2557,7 +2557,7 @@ gmic::~gmic() { + #endif // #if cimg_display!=0 + + cimg::mutex(21); +-#if defined(__MACOSX__) || defined(__APPLE__) ++#if defined(__MACOSX__) || defined(__APPLE__) || defined(__FreeBSD__) + void* tid = (void*)(cimg_ulong)getpid(); + #elif cimg_OS==1 + void* tid = (void*)(cimg_ulong)syscall(SYS_gettid); Added: head/graphics/gmic/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gmic/pkg-descr Thu May 31 19:42:36 2018 (r471224) @@ -0,0 +1,7 @@ +G'MIC is a full-featured open-source framework for image processing, distributed +under the CeCILL free software licenses (LGPL-like and/or GPL-compatible). It +provides several different user interfaces to convert / manipulate / filter / +visualize generic image datasets, ranging from 1d scalar signals to 3d+t +sequences of multi-spectral volumetric images, hence including 2d color images. + +WWW: https://gmic.eu/