Date: Thu, 31 May 2018 19:42:36 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> 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 Message-ID: <201805311942.w4VJgavf082336@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk> 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<void*> gmic::list_p_is_abort = CImgList<void*>(); + 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805311942.w4VJgavf082336>