diff options
author | Tim Harder <radhermit@gentoo.org> | 2013-09-20 20:11:23 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2013-09-20 20:11:23 +0000 |
commit | aed14e24e2796aedffd04ddcec58ea9177441a1f (patch) | |
tree | 19a07d82ec63dac0b349c7b1121d35853d33fb0c /media-plugins/gimp-gmic | |
parent | Version bump. (diff) | |
download | gentoo-2-aed14e24e2796aedffd04ddcec58ea9177441a1f.tar.gz gentoo-2-aed14e24e2796aedffd04ddcec58ea9177441a1f.tar.bz2 gentoo-2-aed14e24e2796aedffd04ddcec58ea9177441a1f.zip |
Version bump.
(Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'media-plugins/gimp-gmic')
-rw-r--r-- | media-plugins/gimp-gmic/ChangeLog | 8 | ||||
-rw-r--r-- | media-plugins/gimp-gmic/files/gmic-1.5.7.1-makefile.patch | 124 | ||||
-rw-r--r-- | media-plugins/gimp-gmic/gimp-gmic-1.5.7.1.ebuild | 43 |
3 files changed, 174 insertions, 1 deletions
diff --git a/media-plugins/gimp-gmic/ChangeLog b/media-plugins/gimp-gmic/ChangeLog index beef1bc1ffdc..9e1ad0d1fe6c 100644 --- a/media-plugins/gimp-gmic/ChangeLog +++ b/media-plugins/gimp-gmic/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-plugins/gimp-gmic # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/ChangeLog,v 1.32 2013/07/04 11:20:00 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/ChangeLog,v 1.33 2013/09/20 20:11:23 radhermit Exp $ + +*gimp-gmic-1.5.7.1 (20 Sep 2013) + + 20 Sep 2013; Tim Harder <radhermit@gentoo.org> +gimp-gmic-1.5.7.1.ebuild, + +files/gmic-1.5.7.1-makefile.patch: + Version bump. *gimp-gmic-1.5.6.1 (04 Jul 2013) diff --git a/media-plugins/gimp-gmic/files/gmic-1.5.7.1-makefile.patch b/media-plugins/gimp-gmic/files/gmic-1.5.7.1-makefile.patch new file mode 100644 index 000000000000..16e6b42a8557 --- /dev/null +++ b/media-plugins/gimp-gmic/files/gmic-1.5.7.1-makefile.patch @@ -0,0 +1,124 @@ +--- gmic-1.5.7.1/src/Makefile ++++ gmic-1.5.7.1/src/Makefile +@@ -80,7 +80,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 +@@ -88,15 +88,7 @@ + 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 -mtune=generic # -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 parallel processing. + ifneq ($(OSTYPE),Darwin) +@@ -110,14 +102,14 @@ + # (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,7 +144,7 @@ + # This requires the presence of the FFMPEG include and library files. + # (packages 'libavcodec-dev', 'libavutil-dev', 'libavformat-dev' and 'libswscale-dev' on Debian). + FFMPEG_CFLAGS = -Dcimg_use_ffmpeg -D__STDC_CONSTANT_MACROS -I$(USR)/include/libavcodec -I$(USR)/include/libavformat -I$(USR)/include/libswscale -I$(USR)/include/ffmpeg +-FFMPEG_LDFLAGS = -lavcodec -lavformat -lswscale ++FFMPEG_LDFLAGS = -lavcodec -lavformat -lavutil -lswscale + + # Flags to enable native support for compressed .cimgz files, using the Zlib library. + # This requires the presence of the Zlib include and library files. +@@ -163,14 +155,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. +@@ -299,10 +285,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) +@@ -322,10 +308,10 @@ + $(MAKE) "CFLAGS+=$(MINIMAL_UNIX_CFLAGS)" "LDFLAGS+=$(MINIMAL_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 +@@ -343,10 +329,9 @@ + gmic_lib.o: gmic.cpp gmic_def.h + $(CC) -o gmic_lib.o -c gmic.cpp -fPIC $(CFLAGS) -Dgmic_float_only + gmic_lib: gmic_lib.o +- ar rcs libgmic.a gmic_lib.o ++ $(AR) rcs libgmic.a gmic_lib.o + ifneq ($(OS),Darwin) + $(CC) -shared -Wl,-soname,libgmic.so.1 -o libgmic.so gmic_lib.o $(LDFLAGS) +- $(CC) -o gmic_use_lib gmic_use_lib.cpp -L. -lgmic $(FFTW_LDFLAGS) + else + $(CC) -shared -o libgmic.so gmic_lib.o $(LDFLAGS) + endif +@@ -355,7 +340,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) +@@ -380,7 +364,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 diff --git a/media-plugins/gimp-gmic/gimp-gmic-1.5.7.1.ebuild b/media-plugins/gimp-gmic/gimp-gmic-1.5.7.1.ebuild new file mode 100644 index 000000000000..acfaf1faf89c --- /dev/null +++ b/media-plugins/gimp-gmic/gimp-gmic-1.5.7.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/gimp-gmic-1.5.7.1.ebuild,v 1.1 2013/09/20 20:11:23 radhermit Exp $ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="G'MIC GIMP plugin" +HOMEPAGE="http://gmic.sourceforge.net/gimp.shtml" +SRC_URI="mirror://sourceforge/gmic/gmic_${PV}.tar.gz" + +LICENSE="CeCILL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=media-gfx/gimp-2.4.0 + media-libs/libpng + sci-libs/fftw:3.0 + sys-libs/zlib" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/gmic-${PV}/src + +src_prepare() { + epatch "${FILESDIR}"/gmic-1.5.7.1-makefile.patch +} + +src_compile() { + emake CC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" gimp +} + +src_install() { + exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins + doexe gmic_gimp + dodoc ../README +} + +pkg_postinst() { + elog "The G'MIC plugin is accessible from the menu:" + elog "Filters -> G'MIC" +} |