summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-03-19 08:03:19 +0000
committerTim Harder <radhermit@gentoo.org>2014-03-19 08:03:19 +0000
commit74e014c0ae872fedbe8d3a4d846423827158f9d3 (patch)
treedf15da049d02dea90570e2f44d54ae9a031b2174 /media-gfx
parentAdjust upper bound of dvbpsi dependency on vlc 2.0.9; fixes bug #504738, repo... (diff)
downloadhistorical-74e014c0ae872fedbe8d3a4d846423827158f9d3.tar.gz
historical-74e014c0ae872fedbe8d3a4d846423827158f9d3.tar.bz2
historical-74e014c0ae872fedbe8d3a4d846423827158f9d3.zip
Version bump.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/gmic/ChangeLog8
-rw-r--r--media-gfx/gmic/Manifest19
-rw-r--r--media-gfx/gmic/files/gmic-1.5.8.4-makefile.patch109
-rw-r--r--media-gfx/gmic/gmic-1.5.8.4.ebuild73
4 files changed, 200 insertions, 9 deletions
diff --git a/media-gfx/gmic/ChangeLog b/media-gfx/gmic/ChangeLog
index af9af89edc5d..796056117a7e 100644
--- a/media-gfx/gmic/ChangeLog
+++ b/media-gfx/gmic/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/gmic
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/ChangeLog,v 1.45 2014/02/11 05:30:27 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/ChangeLog,v 1.46 2014/03/19 08:03:17 radhermit Exp $
+
+*gmic-1.5.8.4 (19 Mar 2014)
+
+ 19 Mar 2014; Tim Harder <radhermit@gentoo.org> +gmic-1.5.8.4.ebuild,
+ +files/gmic-1.5.8.4-makefile.patch:
+ Version bump.
*gmic-1.5.8.3 (11 Feb 2014)
diff --git a/media-gfx/gmic/Manifest b/media-gfx/gmic/Manifest
index 897aa24ec2ba..099a0f50a602 100644
--- a/media-gfx/gmic/Manifest
+++ b/media-gfx/gmic/Manifest
@@ -5,26 +5,29 @@ AUX gmic-1.5.2.2-ffmpeg.patch 716 SHA256 068c3bbb808b8e68a8826203e124d8cc86c937b
AUX gmic-1.5.8.0-makefile.patch 5485 SHA256 39b5ff20a26b620f7cda95e1fa62c69532dfe3ecd34d8ef058f7144125ba564c SHA512 d8ea82f745f0bb5093ca328f569de74ba2e7a62f95045812b1932f086ebe9a2ac9adb645cc4a1d1b89f35c59f8bd10dac0a43f083ea6167ecbbb16a9a270f428 WHIRLPOOL 3d797b9d25966076c087ea87c07d9dc2aeceb1185cd4298a4ce2011864889d46aa8d2a2f6c01fe40dd78450b20661fb080a0aa3da4ea0e20634f28256680c4d6
AUX gmic-1.5.8.2-ffmpeg.patch 750 SHA256 14eff8233639c8e3384b9abf4acfa08af72595f4f64df015e28a918a23d4cb07 SHA512 51e767fd4f4a9a6bc0090a22502c9ffc1ba41cbbd59223b8fb880ca252d5f49166db5b6a9abf83e5d8c24a893e404823e72336dc0a7b493825cfab868bba2b55 WHIRLPOOL b5793611498cc0483241b615147184bff6b2f10ceb398473c7ee6fc0b89a79ccd572671dc80652dd8e45effe09430891fa52528c21edbc405ede67424f98c215
AUX gmic-1.5.8.3-makefile.patch 5037 SHA256 07e2f9d8a1c3d4a5053296f9b9a0f9a0718717e611493961d2907267c8cae380 SHA512 86f504b688bf4cc25fe698ed2d57d3bae719bb876688492b797927e76ac95326f6f2ab71fcc1e4b2f44d42500a90d6f7abe02d24dd7a22e4f617261f837fddb2 WHIRLPOOL f33a74d82fbeb91bd9712237f9e322b0f5aea426f2fff1da7088e0f90de8fb466f572fdc08eed8888dd51ba9235272b57f18de9d082724247bd6daa77355cf73
+AUX gmic-1.5.8.4-makefile.patch 5384 SHA256 48cd18f8e8086a21b62b59788d34185521dddfa9f42ec228f069d44aac2d7af0 SHA512 009cc63ce747ee0acd917795ff093d9aec4545105cb9a96f837d885d68f420b919557d569e2492cd016b96a723a932f8e7b19cf89f12b8ecb153b96dcf1e49b1 WHIRLPOOL 752c7849074e70f3bf10b5aa144917d9e18276c4d99a0a4b4139b217a1e8edd8036df0c95b9f7a3f3b12f03abc99e8c67666fab8365d5259e1e788096f512998
DIST gmic_1.5.8.0.tar.gz 2257558 SHA256 94382a599c23dd0be2ed9bf539072c057b7f780a8ac63b391a27522fec28f1e9 SHA512 46c7d46da2fd1f063dbb23df9cc8e894ff741871cc8d7ee570de54c5313ed101a3352915a71d952913e5bca97e35074fb025646aa05fd087d1575383ac2972b8 WHIRLPOOL 33ea1d72619bb40cc89357732b0f12c14377c9a5c7ab61d40300f9e81570d4e7fb01089597b9bb45e09358c67bbcf0ca2e25841e5e5e7c7b998feb870fccbad9
DIST gmic_1.5.8.1.tar.gz 2265467 SHA256 2b0b813253e8c409a8535d350894245b35836cd849af31986055e0a09b8d1cea SHA512 6fea97ae18abe770ba827946457955c74cb4180a272e7fb0a6e2a0f612bec6f8fd83daa4c1010eb236886ebacef331d9b1b0a4f0c64dbde27261e76f71244ef7 WHIRLPOOL f9fc34c21f87c222b081bcef2ae819cbe6f25c1b66a890a569ffae667acbdc5f334496ba8d1d5ddf811550ec0844bd2936ee3564f131bb7f5b1b35ba7a70dcde
DIST gmic_1.5.8.2.tar.gz 2319666 SHA256 459d0f8cf6ee0a9e8b2254ef93be18cf985bbec699de5354b52671e15f67c3b4 SHA512 5f54147a8903d49667c825afb28564753b0636d21812bc8f12fc1effc3586063c95fe5676c7e69924c69cd790cc4399c5a87a535195bbbecc1656d3de8bc398c WHIRLPOOL 07601508c81be6d3cc8b79ef0f524a36c507696148ec11524f978ae2df4c1326035de908f5d467d24b6482544a5a02f77f7a2847f74cef8806b50213d937e5a9
DIST gmic_1.5.8.3.tar.gz 2341936 SHA256 ed200f839c6b7cfa7df37a5b286d6dc106708a4466fe8d5e316b0a92681ad983 SHA512 70824a618365c9a0a46604ee3892f48284199b34888fc020860091e7ec9f93f5754d030427faa164c3542fa85a198f1dda82e4b7ee598958acfb48269c255663 WHIRLPOOL a0d677dead2038bf286d0e03a000c8c95971ab0868f375febf6637caddf7f1a0bdd90f49e5a9e71b1234a6b1711afa1559d9da37b589e07de7e2255f1c1d1e38
+DIST gmic_1.5.8.4.tar.gz 2359343 SHA256 1e8d20e93b37bfeee8b402c3a23fe8326f49304218a1537d027983e225726076 SHA512 cbe22391ab86e59707c734f641b79035fc230a696593f0f51c7e622bf4e0ce0c8f3fc14f4b40fa35bb80895e25cb5ec3d4c50511e1dd71fe30a957f078ae9c75 WHIRLPOOL 0c7ac6bba29d1453472a6488488f1f20fd349f84d002db93bf69d4f4cce392b1f7bd85283e0c698106da75f12311268096954e10333807c2dfd9e94900dcc84e
DIST gmic_reference-1.5.8.0.pdf.xz 16097444 SHA256 42b7c29d141fa382d5cdaa2236382682b13f64d705c7c42ac7959decbdfae08b SHA512 6222a729a5d1fdd0ccab50c45b5ce60f92a8122570938e8c71f50e86d91f10bb91f7853d59fc4e6d1b918498fe0483ad4a513192b3f46863a0b7580ffc51d1a7 WHIRLPOOL b1900f4ccb34aebd1a8e5c3cfff901b4fa09ae1f26b8ef96ce298d98d23338e3f9d71bf7a777821e43322dc9fe5ad3d0da452b82b86248467575b5b6b03b4b97
DIST gmic_reference-1.5.8.1.pdf.xz 16100496 SHA256 15aa3e4d4e67b8263640dee2a1eae4bb6de6ae6f4f681c320c0f33841e231799 SHA512 aaae69edb2833edd82568449cc428d03dc426001c69ed588442be65c5de75ee5f19d41852fb84b10f0c6c55279d5275eb6aaf929fb4e331e33aa51ecaae276b6 WHIRLPOOL 1003a188d2153046cf463a55ffd45e9693a1be4ad87653af2e76613d634f7e858479f9e1915f351061a7525d197cd3685556222968013e8700aadb8acd1dfd5a
EBUILD gmic-1.5.8.0.ebuild 2048 SHA256 e09a8538c5155a31d082ce30e2f1b6f965cf6999823b3c5e0331ad6fda6247a6 SHA512 45875c92a8d056b4808a8d8c78d02d898963d8ae55b8958249450064ce64d0504abaca343ac052450cd6ccbc3bc3b8772c2253c2d31996aa2043bd75c09f7e7e WHIRLPOOL 90e64fa218cbb9c81485c31c90fcf2791b50b04af57c54bcd3b3b04025ed1855b1b71120616b0b63165276d227651c3e556912774a1cb134c3562086237edeff
EBUILD gmic-1.5.8.1.ebuild 2036 SHA256 700fe5b0a92b7dcc2aa7b2e44fec5c33d5799b9c55b072a941f1dfaec6bf8670 SHA512 2976745c93d4e422f278c89c72814aa0d12c44a14253c7820781db7010b36e4188a166fded6a643a391ab782799646fca489c7d3145faec1850ebabce8cce159 WHIRLPOOL 364c142e1471c9db5f0cace1d8be0ef2c8454dbc049b25d675ecc5191c483fb7953b9f447d0ea9df569386da218c06aed2ddcaa89e81c8a54f531338046b59d3
EBUILD gmic-1.5.8.2.ebuild 1862 SHA256 c58bb113e420ae7d23ceadede576adb41102ca0215786bc688b17e5df7740a49 SHA512 3f3289ed6b776f87f72301f5053aa6d209d6da712fa3a7fd128e58e078e2f0bbdf0ef5cec6d860ab1a102eb1c74ac1583528a3674f167a058c48e6e0a3df68dd WHIRLPOOL 53e4bfca5c76edf845c9b9b9146f00ea3ed1b708f58dcfee87d30f7cd915fcf248c45ab692c28ac9d16b68811ee3a05228237d12a7f3944b818f37e757ea26bb
EBUILD gmic-1.5.8.3.ebuild 1888 SHA256 e77fc9d9fb17989c3a791b72cc63dd6afddafc218bf0846bb223f7e5eab56598 SHA512 970dfd4bc2533d644d327214f24c9985404441272e974e3c12314f9176229656abde38bffd1972176fb3cae1960decfdaa6b0ffca7d56d07da3f831849e4b0d9 WHIRLPOOL 0483593d4f91b0211a8707a97129fcd758c3be720b3870ea97c9e81312fc7c3637c0cb40f683071ac10d5177081f6b9327810560d3ecaa9bc3a708f732f1e782
-MISC ChangeLog 6509 SHA256 86c937ea0485eda5ebe436f3c0dd9fe0368082d187c40cd51d536cb97ca6c085 SHA512 6153482947197c1990a1eec22f593336db7bad46febdeaac93885cc6431522c87935858893ccd7a810ab0966dd79109bde5d11cb35c8a417dd3cf2b6cdb4355d WHIRLPOOL 1241038560966a3be27407848065e8463e562daf90958cd307325c9601a8d86f9f1aaaf72a14540c5a5050a0abb7a226512b99ad0a2089837fc676a49db233fa
+EBUILD gmic-1.5.8.4.ebuild 1888 SHA256 1a5913de3ade9b2f711b310fee3468d9d2a5a9fa7266afae7052aede0a874126 SHA512 e64edc8f0f1efabb4c7cd487a435006972c6e5d67cc9b067289fd0f6e61c1c66336d7d2646906e0d5b038a08cfca1ea31bb969fd9ac0e8c043ddf0d4e61b8909 WHIRLPOOL 0f58500d1b315075648adaa75cd64920011b1a70542ead1b5b46768afb54bb7bd9a8bb3e0c47165b52775621f49b1b70c89234aa610456ac9bd7c774e65c4f35
+MISC ChangeLog 6664 SHA256 a10849a8e3bd01f657a667fae496958671ca8521f9859f8e87e5a695711d3fe5 SHA512 6c83fa489139ee2fcda7b4fdcebb4596bd9c22a1ac497c9001f93ac6b00a8a1fad6dc1040fb9e6f4ca63a6a44e2d08cd08df7140b1a981dd0532ee7be6ce7c83 WHIRLPOOL a31164e676515fc04c18dbfb9f1b2227754d637a5b5485dddef0f593653c769cd94852f22fddc9d9517b27d2735ebedba097b03af97eea9b0d089af3a1aac659
MISC metadata.xml 473 SHA256 def06af4d0283b01f9313231ff05df286129ff57afbcac23fcc7c45d8f735a6c SHA512 4bd720129471c24a6b71e32f11054d96bd2eefb3316489806a06b8deed45e5544fe1c74a73c129ec90fe30c8a4c0646c50e6690717046ad93255771627588f32 WHIRLPOOL 9a356f4c399b7a6fdf217b2dbeaeb4fd40dffc080b86c0ad913690c0b0007aaad52ea79d3b7b5b21591432c99a1e59ed02ead94e2578f1915afe2ee0c9f7d090
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQEcBAEBCAAGBQJS+bV1AAoJEEqz6FtPBkyj2+MIAJiZBy8baKiTHqbweOdNEfUZ
-dCiNQKsoNt/j0mmq0bKFyoOO40pKxPNzCc1h4d14cXAuQx5TwGdmYiT6/VEkqYDM
-w4fygdllfU2qH3/9zwT1Tx8iY6zGgN87H3B+y5iS4vLgtGWncA4stJ8zHpAmrXm+
-pvzWVCTvY0/eKuW6OBgpBBIjIjs0gi2jdMR2N45Wfe8SEAzgQB851LcgJCOmNwQk
-8LE2oQQdxcuh9a1Fp0VAHS4HxS9qTm4yVbr16jVmQ1VMyfuW9iggHd1Hxq3j78MC
-nIeq8++EqHgcn0SHePXduvfrxO3Pc8OxsoLiIWTmoVAI36TPuWzbIDzYNNaAr/4=
-=nECI
+iQEcBAEBCAAGBQJTKU9GAAoJEEqz6FtPBkyjonYH/0JBMhVMigU4PbQPJ8a4HP5u
+P7LUPf89ZMEi6CIhpxvapLVoByph0jnM4/eW87MTkqhgB0avaU6VyJVWMcBRfXQ2
+3CXvWnDC08+mG8tBZL343DoNJwjLfuQnp7ZH78929AEaJB+xS0RjcBuaZ98TmBjy
+37rfqIiClYklZ1F0rPr4NPh63vivL75PPQc3ssiAHRXCdXEuCZnSTLfHylh51Ti0
+zIxXZy1AkWd2k30sfXf5fyWU+YCswbHhtseWfn9ZlCsfqXp3mcaR1eIvkB2DstWR
+qnQdU/fCeG9kc7ib1xNjixE/O6Uwd6hIl5/0l5SaPC0Y6idtAuy8C+cvrdq2SCA=
+=RYpH
-----END PGP SIGNATURE-----
diff --git a/media-gfx/gmic/files/gmic-1.5.8.4-makefile.patch b/media-gfx/gmic/files/gmic-1.5.8.4-makefile.patch
new file mode 100644
index 000000000000..53f511fdfba9
--- /dev/null
+++ b/media-gfx/gmic/files/gmic-1.5.8.4-makefile.patch
@@ -0,0 +1,109 @@
+--- gmic-1.5.8.4/src/Makefile
++++ gmic-1.5.8.4/src/Makefile
+@@ -77,7 +77,6 @@
+
+ # Flags that are mandatory to compile 'gmic'.
+ MANDATORY_CFLAGS += -Dgmic_build -I$(USR)/include
+-MANDATORY_LDFLAGS += -L$(USR)/lib
+ ifeq ($(CC),g++)
+ MANDATORY_CFLAGS += -Wall -W
+ MANDATORY_LDFLAGS += -lm
+@@ -121,14 +120,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.
+@@ -163,7 +162,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.
+@@ -174,14 +173,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.
+@@ -308,10 +301,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)
+@@ -331,13 +324,13 @@
+ $(MAKE) "CFLAGS+=$(MINIMAL_UNIX_CFLAGS)" "LDFLAGS+=$(MINIMAL_UNIX_LDFLAGS)" gmic_cli_standard
+
+ linux:
+- $(MAKE) "CFLAGS=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(STD_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_cli_standard
++ $(MAKE) "CFLAGS+=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_UNIX_LDFLAGS)" gmic_cli_standard
+
+ linux_alltypes:
+ $(MAKE) "CFLAGS=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(STD_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_cli_alltypes
+
+ custom:
+- $(MAKE) "CFLAGS=$(CUST_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(CUST_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_cli_alltypes
++ $(MAKE) "CFLAGS+=$(CUST_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(CUST_UNIX_LDFLAGS)" gmic_cli_alltypes
+
+ solaris:
+ $(MAKE) "CFLAGS=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(STD_UNIX_LDFLAGS) -R$(USR)/X11R6/lib -lrt -lnsl -lsocket" "STRIP_EXE=1" gmic_cli_standard
+@@ -355,10 +348,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
+@@ -367,7 +359,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_bool.o: gmic.cpp
+ $(CC) -o gmic_bool.o -c gmic.cpp $(CFLAGS) -Dgmic_split_compilation -Dgmic_bool
+@@ -389,7 +380,6 @@
+ $(CC) -o gmic_double.o -c gmic.cpp $(CFLAGS) -Dgmic_split_compilation -Dgmic_double
+ gmic_cli_alltypes: 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)
+
+ gmic_cli_standard: gmic.cpp
+ $(CC) -o gmic gmic.cpp $(CFLAGS) -Dgmic_float_only -Dgmic_main $(LDFLAGS)
diff --git a/media-gfx/gmic/gmic-1.5.8.4.ebuild b/media-gfx/gmic/gmic-1.5.8.4.ebuild
new file mode 100644
index 000000000000..04553acd8093
--- /dev/null
+++ b/media-gfx/gmic/gmic-1.5.8.4.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/gmic-1.5.8.4.ebuild,v 1.1 2014/03/19 08:03:17 radhermit Exp $
+
+EAPI=5
+
+inherit eutils toolchain-funcs bash-completion-r1 flag-o-matic
+
+DESCRIPTION="GREYC's Magic Image Converter"
+HOMEPAGE="http://gmic.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="CeCILL-2 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ffmpeg fftw graphicsmagick jpeg opencv openexr png tiff X zlib"
+
+RDEPEND="
+ ffmpeg? ( virtual/ffmpeg )
+ fftw? ( sci-libs/fftw:3.0[threads] )
+ graphicsmagick? ( media-gfx/graphicsmagick )
+ jpeg? ( virtual/jpeg )
+ opencv? ( >=media-libs/opencv-2.3.1a-r1 )
+ openexr? (
+ media-libs/ilmbase
+ media-libs/openexr
+ )
+ png? ( media-libs/libpng )
+ tiff? ( media-libs/tiff )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ )
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${P}/src
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch "${FILESDIR}"/${PN}-1.5.8.2-ffmpeg.patch
+
+ for i in ffmpeg fftw jpeg opencv png tiff zlib ; do
+ use $i || { sed -i -r "s/^(${i}_(C|LD)FLAGS =).*/\1/I" Makefile || die ; }
+ done
+
+ use graphicsmagick || { sed -i -r "s/^(MAGICK_(C|LD)FLAGS =).*/\1/" Makefile || die ; }
+ use openexr || { sed -i -r "s/^(EXR_(C|LD)FLAGS =).*/\1/" Makefile || die ; }
+
+ if ! use X ; then
+ sed -i -r "s/^((X11|XSHM)_(C|LD)FLAGS =).*/\1/" Makefile || die
+
+ # disable display capabilities when X support is disabled
+ append-cppflags -Dcimg_display=0
+ fi
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" CC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" OPT_CFLAGS= DEBUG_CFLAGS= custom lib
+}
+
+src_install() {
+ dobin gmic
+ newlib.so libgmic.so libgmic.so.1
+
+ insinto /usr/include
+ doins gmic.h
+
+ doman ../man/gmic.1.gz
+ dodoc ../README
+
+ newbashcomp gmic_bashcompletion.sh ${PN}
+}