[87089] trunk/dports/science

ryandesign at macports.org ryandesign at macports.org
Wed Nov 9 22:00:38 PST 2011


Revision: 87089
          http://trac.macports.org/changeset/87089
Author:   ryandesign at macports.org
Date:     2011-11-09 22:00:34 -0800 (Wed, 09 Nov 2011)
Log Message:
-----------
gmic: new port, version ; see #28278

Added Paths:
-----------
    trunk/dports/science/gmic/
    trunk/dports/science/gmic/Portfile
    trunk/dports/science/gmic/files/
    trunk/dports/science/gmic/files/patch-Makefile.diff

Added: trunk/dports/science/gmic/Portfile
===================================================================
--- trunk/dports/science/gmic/Portfile	                        (rev 0)
+++ trunk/dports/science/gmic/Portfile	2011-11-10 06:00:34 UTC (rev 87089)
@@ -0,0 +1,59 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                gmic
+version             1.4.8.0
+license             CeCILL
+categories          science
+platforms           darwin
+maintainers         cim.mcgill.ca:assemlal
+
+description         G'MIC is an interpreter of image processing macros \
+                    (stand-alone binary and GIMP plug-in).
+
+long_description    G'MIC stands for GREYC's Magic Image Converter. It is \
+                    focused on the design of possibly complex pipelines for \
+                    converting, manipulating, filtering and visualizing \
+                    generic 1d/2d/3d multi-spectral image datasets. This \
+                    includes classical color images, but also more complex \
+                    data as image sequences or 3D volumetric images. G'MIC \
+                    has been designed with portability in mind and runs on \
+                    different platforms (Windows, Unix, Mac OS X).
+
+homepage            http://gmic.sourceforge.net/
+master_sites        sourceforge:project/gmic/old
+
+distfiles           ${name}_${version}${extract.suffix}
+
+worksrcdir          ${worksrcdir}/src
+
+checksums           rmd160  f545c18c1a4ec2de982e9cffc5426abbbfd07221 \
+                    sha256  0dc6fc61093380479288db7e9cb29dc11d19d017a9ed81c7bf382acc74bab91d
+
+depends_lib         port:opencv \
+                    path:lib/libavcodec.dylib:ffmpeg \
+                    port:GraphicsMagick \
+                    port:libpng \
+                    port:jpeg \
+                    port:tiff \
+                    port:zlib \
+                    port:openexr \
+                    port:ilmbase \
+                    port:fftw-3 \
+                    port:xorg-libXext \
+                    port:gimp2
+
+patchfiles          patch-Makefile.diff
+
+use_configure       no
+
+# opencv is not universal
+universal_variant   no
+
+build.args          CC="${configure.cxx} [get_canonical_archflags]" \
+                    IS_GCC=yes \
+                    USR=${prefix}
+
+destroot.args       USR=${prefix}


Property changes on: trunk/dports/science/gmic/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/science/gmic/files/patch-Makefile.diff
===================================================================
--- trunk/dports/science/gmic/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/science/gmic/files/patch-Makefile.diff	2011-11-10 06:00:34 UTC (rev 87089)
@@ -0,0 +1,42 @@
+--- Makefile.orig	2011-02-02 03:28:31.000000000 -0600
++++ Makefile	2011-11-09 20:41:11.000000000 -0600
+@@ -51,13 +51,8 @@
+ ifeq ($(OS),GNU/kFreeBSD)
+ OS = Linux
+ endif
+-ifeq ($(OS),Darwin)
+-PLUGINDIR = ~/Library/Application\ Support/Gimp/plug-ins
+-USR = /opt/local
+-else
+ PLUGINDIR=`gimptool-2.0 --gimpplugindir`/plug-ins
+ USR = /usr
+-endif
+ ifeq ($(OS),MINGW32_NT-5.1)
+ EXE = .exe
+ endif
+@@ -96,12 +91,12 @@
+ 
+ # Flags to enable image display, using X11
+ # (keep /usr/ dirname here since X11 is located in /usr/ on Mac too).
+-X11_CFLAGS = -Dcimg_display=1 -Dcimg_display_classname=\\\"G\'MIC\\\" -I/usr/X11R6/include #-Dcimg_use_xrandr
+-X11_LDFLAGS = -L/usr/X11R6/lib -lX11 -lpthread #-lXrandr
++X11_CFLAGS = -Dcimg_display=1 -Dcimg_display_classname=\\\"G\'MIC\\\" -I$(USR)/include #-Dcimg_use_xrandr
++X11_LDFLAGS = -L$(USR)/lib -lX11 -lpthread #-lXrandr
+ 
+ # Flags to enable fast display, using XShm.
+ XSHM_CFLAGS = -Dcimg_use_xshm
+-XSHM_LDFLAGS = -L$(USR)/X11R6/lib -lXext
++XSHM_LDFLAGS = -L$(USR)/lib -lXext
+ 
+ # Flags to enable image display, using GDI32.
+ GDI32_CFLAGS = -Dcimg_display=2
+@@ -324,8 +319,7 @@
+ 	cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/man1/gmic.1.gz
+ 	cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/fr/man1/gmic.1.gz
+ 	mkdir -p $(DESTDIR)$(USR)/share/doc/gmic/html/img/
+-	if test -d /etc/bash_completion.d/; then mkdir -p $(DESTDIR)/etc/bash_completion.d/; cp -f gmic_bashcompletion.sh $(DESTDIR)/etc/bash_completion.d/gmic; fi
+-	if test -d /opt/local/etc/bash_completion.d/; then mkdir -p $(DESTDIR)/opt/local/etc/bash_completion.d/; cp -f gmic_bashcompletion.sh $(DESTDIR)/opt/local/etc/bash_completion.d/gmic; fi
++	mkdir -p $(DESTDIR)$(USR)/etc/bash_completion.d/; cp -f gmic_bashcompletion.sh $(DESTDIR)$(USR)/etc/bash_completion.d/gmic
+ 	for pixmap in ../html/*.*; do \
+ 	  if test -f $$pixmap; then \
+ 	    cp -f  $$pixmap  $(DESTDIR)$(USR)/share/doc/gmic/html/; \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111109/0bd0f0cf/attachment.html>


More information about the macports-changes mailing list