gimp:moved into main repo for pisi 2.0
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/python
|
||||
# -*- actions.pycoding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/copyleft/gpl.txt.
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
#def setup():
|
||||
|
||||
def build():
|
||||
#pisitools.dosed("src/Makefile", "^(FFMPEG_LDFLAGS\s=.*)", r"\1 -lavutil")
|
||||
autotools.make("-C src gimp custom lib -j1")
|
||||
|
||||
def install():
|
||||
pisitools.doman("man/gmic.1.gz")
|
||||
pisitools.dodoc("COPYING", "README")
|
||||
pisitools.insinto("/usr/share/doc/gimp-gmic-plugin", "COPYING")
|
||||
pisitools.insinto("/etc/bash_completion.d/", "resources/gmic_bashcompletion.sh", destinationFile = "gmic")
|
||||
shelltools.cd("src")
|
||||
pisitools.dobin("gmic")
|
||||
pisitools.doexe("gmic_gimp", "/usr/lib/gimp/2.0/plug-ins/")
|
||||
pisitools.insinto("/usr/include", "gmic.h")
|
||||
pisitools.dolib("libgmic.so")
|
||||
ver = ".%s" % get.srcVERSION()
|
||||
while ver:
|
||||
pisitools.dosym("libgmic.so", "/usr/lib/libgmic.so%s" % ver)
|
||||
ver = ver[:ver.rfind('.')]
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
--- gmic-1.5.2.2/src/Makefile
|
||||
+++ gmic-1.5.2.2/src/Makefile
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
# Flags that are mandatory to compile 'gmic'.
|
||||
MANDATORY_CFLAGS += -Dgmic_build -I$(USR)/include
|
||||
-MANDATORY_LDFLAGS += -L$(USR)/lib
|
||||
+MANDATORY_LDFLAGS +=
|
||||
ifeq ($(IS_GCC),yes)
|
||||
MANDATORY_CFLAGS += -Wall -W
|
||||
MANDATORY_LDFLAGS += -lm
|
||||
@@ -85,28 +85,20 @@
|
||||
MANDATORY_CFLAGS+=$(IS_BETA_CFLAGS)
|
||||
|
||||
# Flags to enable debugging.
|
||||
-DEBUG_CFLAGS = -Dcimg_use_vt100 -Dcimg_verbosity=3 -g
|
||||
-
|
||||
-# Flags to enable optimizations.
|
||||
-ifeq ($(IS_GCC),yes)
|
||||
-OPT_CFLAGS = -O3 # -fno-tree-pre # -ffast-math
|
||||
-endif
|
||||
-ifeq ($(CC),icc)
|
||||
-OPT_CFLAGS = -O3 -ipo -no-prec-div -override-limits
|
||||
-endif
|
||||
+DEBUG_CFLAGS = -Dcimg_use_vt100 -Dcimg_verbosity=3
|
||||
|
||||
# Flags to enable image display, using X11
|
||||
# (keep /usr/ dirname here since X11 is located in /usr/ on Mac too).
|
||||
# This requires the presence of the X11 include and library files.
|
||||
# (package 'libx11-dev' on Debian).
|
||||
-X11_CFLAGS = -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" -I/usr/X11R6/include #-Dcimg_use_xrandr
|
||||
-X11_LDFLAGS = -L/usr/X11R6/lib -lX11 -lpthread #-lXrandr
|
||||
+X11_CFLAGS = -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" #-Dcimg_use_xrandr
|
||||
+X11_LDFLAGS = -lX11 -lpthread #-lXrandr
|
||||
|
||||
# Flags to enable fast display, using XShm.
|
||||
# This requires the presence of the X11 extension include and library files.
|
||||
# (package 'libx11-dev' on Debian).
|
||||
XSHM_CFLAGS = -Dcimg_use_xshm
|
||||
-XSHM_LDFLAGS = -L$(USR)/X11R6/lib -lXext
|
||||
+XSHM_LDFLAGS = -lXext
|
||||
|
||||
# Flags to enable image display, using GDI32.
|
||||
# This requires the presence of the GDI32 include and library files.
|
||||
@@ -152,14 +144,8 @@
|
||||
# Flags to enable native support of webcams, using the OpenCV library.
|
||||
# This requires the presence of the OpenCV include and library files.
|
||||
# (package 'libcv3-2-dev' on Debian).
|
||||
-ifeq ($(OS),Darwin)
|
||||
OPENCV_CFLAGS = -Dcimg_use_opencv -I$(USR)/include -I$(USR)/include/opencv
|
||||
OPENCV_LDFLAGS = `pkg-config opencv --libs` #-> Use this for OpenCV 2.2.0 !
|
||||
-else
|
||||
-OPENCV_CFLAGS = -Dcimg_use_opencv -I$(USR)/include -I$(USR)/include/opencv
|
||||
-# OPENCV_LDFLAGS = -lcv -lhighgui
|
||||
-OPENCV_LDFLAGS = -lopencv_core -lopencv_highgui #-> Use this for OpenCV >= 2.2.0 !
|
||||
-endif
|
||||
|
||||
# Flags to enable native support of most classical image file formats, using the GraphicsMagick++ library.
|
||||
# This requires the presence of the GraphicsMagick++ include and library files.
|
||||
@@ -287,10 +273,10 @@
|
||||
endif
|
||||
|
||||
gimp:
|
||||
- $(MAKE) "CFLAGS=$(STD_GIMP_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_GIMP_LDFLAGS) $(OPT_LDFLAGS)" "STRIP_EXE=1" gmic_gimp
|
||||
+ $(MAKE) "CFLAGS+=$(STD_GIMP_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_GIMP_LDFLAGS) $(OPT_LDFLAGS)" gmic_gimp
|
||||
|
||||
lib:
|
||||
- $(MAKE) "CFLAGS=$(STD_LIB_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_LIB_LDFLAGS) $(OPT_LDFLAGS)" gmic_lib
|
||||
+ $(MAKE) "CFLAGS+=$(STD_LIB_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_LIB_LDFLAGS) $(OPT_LDFLAGS)" gmic_lib
|
||||
|
||||
zart: lib
|
||||
ifneq ($(OS),Darwin)
|
||||
@@ -313,10 +299,10 @@
|
||||
$(MAKE) "CFLAGS+=$(DEBUG_UNIX_CFLAGS)" "LDFLAGS+=$(DEBUG_UNIX_LDFLAGS)" gmic_minimal
|
||||
|
||||
linux:
|
||||
- $(MAKE) "CFLAGS=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(STD_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic
|
||||
+ $(MAKE) "CFLAGS+=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_UNIX_LDFLAGS)" gmic_gmic
|
||||
|
||||
custom:
|
||||
- $(MAKE) "CFLAGS=$(CUST_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(CUST_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic
|
||||
+ $(MAKE) "CFLAGS+=$(CUST_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(CUST_UNIX_LDFLAGS)" gmic_gmic
|
||||
|
||||
solaris:
|
||||
$(MAKE) "CFLAGS=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(STD_UNIX_LDFLAGS) -R$(USR)/X11R6/lib -lrt -lnsl -lsocket" "STRIP_EXE=1" gmic_gmic
|
||||
@@ -346,7 +332,6 @@
|
||||
$(CC) -o gmic_gimp.o -c gmic.cpp $(CFLAGS) -Dgmic_gimp -Dgmic_float_only
|
||||
gmic_gimp : gmic_gimp.o gmic_gimp.cpp
|
||||
$(CC) -o gmic_gimp gmic_gimp.cpp gmic_gimp.o `gimptool-2.0$(EXE) --cflags` $(CFLAGS) `gimptool-2.0$(EXE) --libs` $(LDFLAGS)
|
||||
- strip gmic_gimp$(EXE)
|
||||
|
||||
gmic_minimal: gmic.cpp
|
||||
$(CC) -o gmic gmic.cpp $(CFLAGS) -Dgmic_float_only -Dgmic_main $(LDFLAGS)
|
||||
@@ -371,7 +356,6 @@
|
||||
$(CC) -o gmic_double.o -c gmic.cpp $(CFLAGS) -Dgmic_split_compilation -Dgmic_double
|
||||
gmic_gmic: gmic_bool.o gmic_uchar.o gmic_char.o gmic_ushort.o gmic_short.o gmic_uint.o gmic_int.o gmic_float.o gmic_double.o gmic_def.h
|
||||
$(CC) -o gmic gmic_bool.o gmic_uchar.o gmic_char.o gmic_ushort.o gmic_short.o gmic_uint.o gmic_int.o gmic_float.o gmic_double.o $(LDFLAGS)
|
||||
- strip gmic$(EXE)
|
||||
|
||||
def:
|
||||
@echo "#ifndef gmic_gimp" > gmic_def.h
|
||||
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gimp-gmic-plugin</Name>
|
||||
<Homepage>http://gmic.sourceforge.net/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>CeCILL-2</License>
|
||||
<IsA>app:console</IsA>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Image procession framework.</Summary>
|
||||
<Description>G'MIC stands for GREYC's Magic Image Converter. G'MIC is focused on the design of possibly complex pipelines for converting, manipulating, filtering and visualizing generic 1d/2d/3d multi-spectral image datasets.</Description>
|
||||
<Archive sha1sum="ffac4ed3b883bc6fe49e06cfc12549f6e18da87a" type="targz">mirrors://sourceforge/gmic/gmic_1.6.0.3.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>ffmpeg-devel</Dependency>
|
||||
<Dependency>fftw3-devel</Dependency>
|
||||
<Dependency>gimp-devel</Dependency>
|
||||
<Dependency>GraphicsMagick-devel</Dependency>
|
||||
<Dependency>libjpeg-turbo-devel</Dependency>
|
||||
<Dependency>lapack-devel</Dependency>
|
||||
<Dependency>opencv-devel</Dependency>
|
||||
<Dependency>openexr-devel</Dependency>
|
||||
<Dependency>tiff-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- <Patch level="1">gentoo/gmic-1.5.2.2-makefile.patch</Patch> -->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gmic</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>tiff</Dependency>
|
||||
<Dependency>fftw3</Dependency>
|
||||
<Dependency>ffmpeg</Dependency>
|
||||
<Dependency>opencv</Dependency>
|
||||
<Dependency>libgomp</Dependency>
|
||||
<Dependency>ilmbase</Dependency>
|
||||
<Dependency>libXext</Dependency>
|
||||
<Dependency>openexr-libs</Dependency>
|
||||
<Dependency>libjpeg-turbo</Dependency>
|
||||
<Dependency>GraphicsMagick</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc/bash_completion.d</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc/gmic</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>gmic-devel</Name>
|
||||
<Summary>Development files for gmic</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">gmic</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>gimp-gmic-plugin</Name>
|
||||
<Summary>Gimp plugin for the GMIC image procession framework.</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>atk</Dependency>
|
||||
<Dependency>gtk2</Dependency>
|
||||
<Dependency>gimp</Dependency>
|
||||
<Dependency>cairo</Dependency>
|
||||
<Dependency>pango</Dependency>
|
||||
<Dependency>fftw3</Dependency>
|
||||
<Dependency>fontconfig</Dependency>
|
||||
<Dependency>gdk-pixbuf</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/gimp</Path>
|
||||
<Path fileType="doc">/usr/share/doc/gimp-gmic-plugin</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="5">
|
||||
<Date>2014-12-25</Date>
|
||||
<Version>1.6.0.3</Version>
|
||||
<Comment>version bump</Comment>
|
||||
<Name>Ayhan Yalçınsoy</Name>
|
||||
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-06-19</Date>
|
||||
<Version>1.5.5.0</Version>
|
||||
<Comment>Rebuild for gcc</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-12-01</Date>
|
||||
<Version>1.5.5.0</Version>
|
||||
<Comment>Rebuild for ffmpeg.</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-03-27</Date>
|
||||
<Version>1.5.5.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-08-13</Date>
|
||||
<Version>1.5.1.7</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gmic</Name>
|
||||
<Summary xml:lang="en">Image procession framework.</Summary>
|
||||
<Description xml:lang="en">G'MIC stands for GREYC's Magic Image Converter. G'MIC is focused on the design of possibly complex pipelines for converting, manipulating, filtering and visualizing generic 1d/2d/3d multi-spectral image datasets.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gmic-devel</Name>
|
||||
<Summary xml:lang="en">Development files for gmic</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>gimp-gmic-plugin</Name>
|
||||
<Summary xml:lang="en">Gimp plugin for the GMIC image procession framework.</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user