diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-10-25 07:09:16 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-10-25 07:09:16 +0000 |
commit | 6c97ea914907d3f843723ce3a79a6e8af2fbbf5b (patch) | |
tree | 998369619d08c89fe5fe81b2bbd076e720087bb0 /media-plugins/gimp-gmic | |
parent | Version Bump, removed unnessecary blocker (diff) | |
download | historical-6c97ea914907d3f843723ce3a79a6e8af2fbbf5b.tar.gz historical-6c97ea914907d3f843723ce3a79a6e8af2fbbf5b.tar.bz2 historical-6c97ea914907d3f843723ce3a79a6e8af2fbbf5b.zip |
Initial import (thanks to all contributors in bug #283784).
Package-Manager: portage-2.2.0_alpha70/cvs/Linux x86_64
Diffstat (limited to 'media-plugins/gimp-gmic')
-rw-r--r-- | media-plugins/gimp-gmic/ChangeLog | 10 | ||||
-rw-r--r-- | media-plugins/gimp-gmic/Manifest | 19 | ||||
-rw-r--r-- | media-plugins/gimp-gmic/files/gmic-1.5.0.4-makefile.patch | 130 | ||||
-rw-r--r-- | media-plugins/gimp-gmic/gimp-gmic-1.5.0.4.ebuild | 43 | ||||
-rw-r--r-- | media-plugins/gimp-gmic/metadata.xml | 8 |
5 files changed, 210 insertions, 0 deletions
diff --git a/media-plugins/gimp-gmic/ChangeLog b/media-plugins/gimp-gmic/ChangeLog new file mode 100644 index 000000000000..c451d515616d --- /dev/null +++ b/media-plugins/gimp-gmic/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-plugins/gimp-gmic +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/ChangeLog,v 1.1 2011/10/25 07:09:16 radhermit Exp $ + +*gimp-gmic-1.5.0.4 (25 Oct 2011) + + 25 Oct 2011; Tim Harder <radhermit@gentoo.org> +gimp-gmic-1.5.0.4.ebuild, + +files/gmic-1.5.0.4-makefile.patch, +metadata.xml: + Initial import (thanks to all contributors in bug #283784). + diff --git a/media-plugins/gimp-gmic/Manifest b/media-plugins/gimp-gmic/Manifest new file mode 100644 index 000000000000..7fa0afa9bfe0 --- /dev/null +++ b/media-plugins/gimp-gmic/Manifest @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + +AUX gmic-1.5.0.4-makefile.patch 6103 RMD160 20467bf823bdde29e554f29d18cc64328ccb5079 SHA1 6ea32fef37a2b2971bf23cf7f17ef9c408fe79c5 SHA256 98e27d448764fe3704ae38d0eba08b19be3fdd7c9356e02b7f580f513b2ac5b3 +DIST gmic_1.5.0.4.tar.gz 1250701 RMD160 007a7bfbdec30fd42868fa2eabe9d52a69c001cc SHA1 b466bad3c5feec25c17a0004e7e3e4bdab1b64ba SHA256 0be5a5a7360f155b5f7e152035acaf936452dd613e518b427b81669b318de7ed +EBUILD gimp-gmic-1.5.0.4.ebuild 938 RMD160 74f9f6b789d393491cafddfbb6fe6a085f278009 SHA1 bc402de6e79dd7698dafabd9d46a943d2bfed077 SHA256 2ec0cd998d27e39626c2a29746d7b3ba4040ce0d5edd4617313f5a308a9a4d99 +MISC ChangeLog 448 RMD160 a658a9c1145dced19fe536fbae7de0e3ab9bda58 SHA1 cd5934e8041aeb9e0d120cf56d7f54ef21efbf37 SHA256 cea3f9657baf68612f07fd9aa82d50110f4569c3fd73a1f2227d21cc97333388 +MISC metadata.xml 232 RMD160 9725fc18735b1d8d4079f25759ee0823a0c6795d SHA1 ec75efe30e67f74a4f315324afc75ed2a8d30bb4 SHA256 a778e40f66cb2fa35529e4f45cb8356c8b1b109163cd939396f02e8ea6aa5f1a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iQEcBAEBCgAGBQJOpmCmAAoJEEqz6FtPBkyjKw8H/3BNDefcTHYzGSi7GeIvUrk5 +Rl1rq3N357UfE+r/z465+U7av1qh1C//Ob8ycnuIXZ0e019YpSnWc1ugnwOt/6lG +Lv3jFvO/Z40wUyTfz45Ygy7/vf8LUgKkgLThz6UIwgrv/vkYkwTnMpK0MOeCpA+x +31oV6AeHmvDc6ohYf652K7kIs54lZPOKZ2sfR6HOi/AMCj5w8uqTy1zYsLaahOeS +MePDaESarPMnVmYm4L7pe29GZ5tlxijyvu2G+DAdGzV5WWu+wkPe6eu9gW+nyg8v +sm1LbPotlZV1aSgMIBsEWeseyO3z5KniGYf5Ei0C1IuuBn5BKdSM3y+wfkfUJas= +=TGhv +-----END PGP SIGNATURE----- diff --git a/media-plugins/gimp-gmic/files/gmic-1.5.0.4-makefile.patch b/media-plugins/gimp-gmic/files/gmic-1.5.0.4-makefile.patch new file mode 100644 index 000000000000..047c6124a162 --- /dev/null +++ b/media-plugins/gimp-gmic/files/gmic-1.5.0.4-makefile.patch @@ -0,0 +1,130 @@ +--- gmic-1.5.0.4/src/Makefile.orig ++++ gmic-1.5.0.4/src/Makefile +@@ -87,7 +87,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 +@@ -98,21 +98,21 @@ + 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 ++#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 + + # 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_appname=\\\"gmic\\\" -I/usr/X11R6/include #-Dcimg_use_xrandr +-X11_LDFLAGS = -L/usr/X11R6/lib -lX11 -lpthread #-lXrandr ++X11_LDFLAGS = -lX11 -lpthread #-lXrandr + + # Flags to enable fast display, using XShm. + XSHM_CFLAGS = -Dcimg_use_xshm +-XSHM_LDFLAGS = -L$(USR)/X11R6/lib -lXext ++XSHM_LDFLAGS = -lXext + + # Flags to enable image display, using GDI32. + GDI32_CFLAGS = -Dcimg_display=2 -Dcimg_appname=\\\"gmic\\\" +@@ -144,12 +144,7 @@ + + # Flags to enable native support of webcams, using the OpenCV library. + OPENCV_CFLAGS = -Dcimg_use_opencv -I$(USR)/include/opencv +-ifeq ($(OS),Darwin) + OPENCV_LDFLAGS = -lopencv_core -lopencv_highgui # Use this for OpenCV 2.2.0 ! +-else +-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. + MAGICK_CFLAGS = -Dcimg_use_magick -I$(USR)/include/GraphicsMagick +@@ -183,11 +178,11 @@ + $(EXR_LDFLAGS) $(FFTW_LDFLAGS) $(OPENCV_LDFLAGS) # $(FFMPEG_LDFLAGS) $(XSHM_LDFLAGS) # $(MAGICK_LDFLAGS) + + CUST_UNIX_CFLAGS = $(MANDATORY_CFLAGS) $(X11_CFLAGS) $(XSHM_CFLAGS) $(PNG_CFLAGS) \ +- $(JPEG_CFLAGS) $(TIFF_CFLAGS) $(MINC2_CFLAGS) $(ZLIB_CFLAGS) $(OPENCV_CFLAGS) \ +- $(FFTW_CFLAGS) $(FFMPEG_CFLAGS) $(BOARD_CFLAGS) $(EXR_CFLAGS) $(MAGICK_CFLAGS) ++ $(JPEG_CFLAGS) $(TIFF_CFLAGS) $(ZLIB_CFLAGS) $(OPENCV_CFLAGS) \ ++ $(FFTW_CFLAGS) $(FFMPEG_CFLAGS) $(EXR_CFLAGS) $(MAGICK_CFLAGS) + CUST_UNIX_LDFLAGS = $(MANDATORY_LDFLAGS) $(X11_LDFLAGS) $(XSHM_LDFLAGS) $(PNG_LDFLAGS) \ +- $(JPEG_LDFLAGS) $(TIFF_LDFLAGS) $(MINC2_LDFLAGS) $(ZLIB_LDFLAGS) $(OPENCV_LDFLAGS) \ +- $(FFTW_LDFLAGS) $(FFMPEG_LDFLAGS) $(BOARD_LDFLAGS) $(EXR_LDFLAGS) $(MAGICK_LDFLAGS) ++ $(JPEG_LDFLAGS) $(TIFF_LDFLAGS) $(ZLIB_LDFLAGS) $(OPENCV_LDFLAGS) \ ++ $(FFTW_LDFLAGS) $(FFMPEG_LDFLAGS) $(EXR_LDFLAGS) $(MAGICK_LDFLAGS) + + DEBUG_UNIX_CFLAGS = $(MANDATORY_CFLAGS) $(DEBUG_CFLAGS) $(X11_CFLAGS) $(XSHM_CFLAGS) $(PNG_CFLAGS) \ + $(JPEG_CFLAGS) $(TIFF_CFLAGS) $(ZLIB_CFLAGS) $(FFTW_CFLAGS) \ +@@ -213,7 +208,7 @@ + STD_WINDOWS_LDFLAGS = $(MANDATORY_LDFLAGS) $(GDI32_LDFLAGS) $(ZLIB_LDFLAGS) $(PNG_LDFLAGS) $(JPEG_LDFLAGS) $(FFTW_LDFLAGS) + + STD_GIMP_CFLAGS = -Dgmic_build -Dcimg_display=0 -I$(USR)/include $(FFTW_CFLAGS) $(PNG_CFLAGS) $(ZLIB_CFLAGS) ${IS_BETA_CFLAGS} +-STD_GIMP_LDFLAGS = -L$(USR)/lib -lpthread $(FFTW_LDFLAGS) $(PNG_LDFLAGS) $(ZLIB_LDFLAGS) ++STD_GIMP_LDFLAGS = -lpthread $(FFTW_LDFLAGS) $(PNG_LDFLAGS) $(ZLIB_LDFLAGS) + ifeq ($(OS),MINGW32_NT-5.1) + STD_GIMP_LDFLAGS += -mwindows + endif +@@ -254,10 +249,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)" gmic_lib ++ $(MAKE) "CFLAGS+=$(STD_LIB_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_LIB_LDFLAGS)" gmic_lib + + # Entries for non-default configurations. + minimal: +@@ -267,10 +262,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 +@@ -288,7 +283,7 @@ + gmic_lib.o: gmic.cpp gmic_def.h + $(CC) -o gmic_lib.o -c gmic.cpp -fPIC -Dgmic_minimal -Dgmic_float $(CFLAGS) + gmic_lib: gmic_lib.o +- ar rcs libgmic.a gmic_lib.o ++ $(AR) rcs libgmic.a gmic_lib.o + $(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) + +@@ -296,7 +291,6 @@ + $(CC) -o gmic_gimp.o -c gmic.cpp -Dgmic_gimp -Dgmic_minimal -Dgmic_float $(CFLAGS) + 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 -Dgmic_minimal -Dgmic_float -Dgmic_main $(CFLAGS) $(LDFLAGS) +@@ -321,7 +315,6 @@ + $(CC) -o gmic_double.o -c gmic.cpp -Dgmic_separate_compilation -Dgmic_double $(CFLAGS) + gmic_gmic: gmic.cpp 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.cpp -Dgmic_separate_compilation -Dgmic_main $(CFLAGS) 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.0.4.ebuild b/media-plugins/gimp-gmic/gimp-gmic-1.5.0.4.ebuild new file mode 100644 index 000000000000..8008ab608cbe --- /dev/null +++ b/media-plugins/gimp-gmic/gimp-gmic-1.5.0.4.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2011 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.0.4.ebuild,v 1.1 2011/10/25 07:09:16 radhermit Exp $ + +EAPI="4" + +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-${PV}-makefile.patch +} + +src_compile() { + emake CC="$(tc-getCXX)" gimp +} + +src_install() { + exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins + doexe gmic_gimp + dodoc ../{AUTHORS,README} +} + +pkg_postinst() { + elog "The G'MIC plugin is accessible from the menu:" + elog "Filters -> G'MIC" +} diff --git a/media-plugins/gimp-gmic/metadata.xml b/media-plugins/gimp-gmic/metadata.xml new file mode 100644 index 000000000000..157326a7e891 --- /dev/null +++ b/media-plugins/gimp-gmic/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> +</pkgmetadata> |