summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-09-20 20:11:06 +0000
committerTim Harder <radhermit@gentoo.org>2013-09-20 20:11:06 +0000
commit78a5e9e95f8b799de684ffa006981a7263a942dd (patch)
treec291722c7e35edf6bed1b62168253dcdb2c2718d /media-gfx
parentVersion bump. (diff)
downloadhistorical-78a5e9e95f8b799de684ffa006981a7263a942dd.tar.gz
historical-78a5e9e95f8b799de684ffa006981a7263a942dd.tar.bz2
historical-78a5e9e95f8b799de684ffa006981a7263a942dd.zip
Version bump.
Package-Manager: portage-2.2.0/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/Manifest20
-rw-r--r--media-gfx/gmic/files/gmic-1.5.7.1-makefile.patch124
-rw-r--r--media-gfx/gmic/gmic-1.5.7.1.ebuild77
4 files changed, 220 insertions, 9 deletions
diff --git a/media-gfx/gmic/ChangeLog b/media-gfx/gmic/ChangeLog
index ea300f43546b..ab000b904c26 100644
--- a/media-gfx/gmic/ChangeLog
+++ b/media-gfx/gmic/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/gmic
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/ChangeLog,v 1.38 2013/07/04 11:22:53 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/ChangeLog,v 1.39 2013/09/20 20:11:04 radhermit Exp $
+
+*gmic-1.5.7.1 (20 Sep 2013)
+
+ 20 Sep 2013; Tim Harder <radhermit@gentoo.org> +gmic-1.5.7.1.ebuild,
+ +files/gmic-1.5.7.1-makefile.patch:
+ Version bump.
*gmic-1.5.6.1 (04 Jul 2013)
diff --git a/media-gfx/gmic/Manifest b/media-gfx/gmic/Manifest
index 54ebee385e9a..e16bd3ab96bb 100644
--- a/media-gfx/gmic/Manifest
+++ b/media-gfx/gmic/Manifest
@@ -3,25 +3,29 @@ Hash: SHA256
AUX gmic-1.5.2.2-ffmpeg.patch 716 SHA256 068c3bbb808b8e68a8826203e124d8cc86c937b8c77bc998225510abf6080e1a SHA512 9697d41c7f0fb422eb70d9bca38e8822692d95be14c4c337bea3e02cae1ad039a4b1c007536bdda669ff95c30980d13183423504ae70be3da6da53de146b0c1a WHIRLPOOL 3e94e98a0c375573a3a936a281f3b28c0800d331189f21e6afa1d0c2b2b257a7b56e10419c2362eff726d0bdfb93d902d09e14cce76ae41d779b2ae208c80328
AUX gmic-1.5.5.1-makefile.patch 5313 SHA256 9871db2facbf096643727b2a38f3799ab9ebf33521ad8e25bc4f2c6099290626 SHA512 aaeab86291892d52170557dddf28b9879121a84bfa63ae7c4105e4e542c2c99c6f3f29f291725dd9221c58d88be4dce9e02da3750a9936f29253f04092f6d04d WHIRLPOOL cb7b8d5012bd637f4574b491369215ef4881974fa61f1109abd9b4722eae53d229c81bae017439cf70c5db1a56c97dcb4032e918d11bf4feb8a119028c733658
+AUX gmic-1.5.7.1-makefile.patch 5532 SHA256 f5b442d426b869656bbbef0d450e694cbf0f5b68215966b9d98055d49d2b2a3d SHA512 dcd63e8444763ba74f50a135299ab57fffc3f6ad45d3d8fac12f891ec2344876b0552db40f1e01cc2787b728cc6006c1086634e63feb6edddb3f3a7432f48839 WHIRLPOOL 8b876888de7ba1f7ae2b033362f2523b72f84b63dfa15bcf0b4c0d7ce0f1912eb5f0b0cd981d5fa0925253adecdd19b8644d8731bde781c1ffcd97df3bfb3459
DIST gmic_1.5.5.1.tar.gz 1689227 SHA256 3079b203f524bdf1736994abbd03d66d586d6fd2f0c0af98ad3ffe563fbd9613 SHA512 532e9f21692aa36872dbb2c9ca798ccac187b5fda02ca9d36f01ef28bfc104e43dec312afa448779282da52b1766ca0c3c645ccf962a938d55c53d72f366a8f4 WHIRLPOOL 18f8fbd6aff67dcbfa58fce59ac1ebf3856113084a238aa52fc03f24f16d1d4acd5e6d97c32813576094c48b4008fa616cd7be87ebd2c2eb11e7f89ea54b508e
DIST gmic_1.5.5.2.tar.gz 1683717 SHA256 4e1ff3dcd7dc79dcc7f8ac92cae49951854aea283751a83e90b9510de972382d SHA512 a0f2175aef8d93fa56bbc923793d59c716399231afedf391fcb1a9525ac2397ccb6ce1a542928f5c08d12ebd06af26ac5aec17fe7ae0d4c04e215bfac4ca586e WHIRLPOOL d59d4ab55b904ade2da5ab9ffb29329894cd3d8c009d5ed9f039b989f737502085e352f3a315cf1f287c60004a054e58955b2a189235497f70d25d48c48a2851
DIST gmic_1.5.6.1.tar.gz 2137616 SHA256 8399a97f4479a379d8e7fda6a0a73bde0ac120f781111b9ed8a2e28e5a3ed22f SHA512 3c3af5e071dc53c6f6971c494ceaec0d08a34ffc9595dea8c03c56be7ce6eb9dc4c0a91c49b93b01fc112192703aa0f53b2a859b855c4d5ab1f57ca22a45e0eb WHIRLPOOL 8071751c1e318e7aeac28a98c9a89e15008d5799422445cd9ca5e95c1ad9cbbd8ce1d703518a3f9ede5ed00d7deb5cf078a36d15122e4bf01d84069e20ab5321
+DIST gmic_1.5.7.1.tar.gz 2174947 SHA256 bc55fe0309c08fd4b4d97c37704db77965316c818c169ac573b8b12a5a44d42f SHA512 945e688fca9116cc53dafda63f7ec26bc0dd8c57e8fa9ae380f16c2b14086a2c1925327d71713d1e8249948d95b4f455b6bf217c1f1fa9c4ee8596cb81dcba62 WHIRLPOOL 088541176c84c6e6b4d25bc61ea68a87cd75ea60c9e2bd2a0d9080f32861bf1a014028d4a69bb1cc1d4e13ad84c8d1fd9757fefd4d302f7e7bcb60db1cf11616
DIST gmic_reference-1.5.5.1.pdf.xz 15343940 SHA256 c8649d36b87c24743f3afb0f0b0cb03699d65b7eac86d5ee1c33e36ebb76e1e2 SHA512 becec9f9d7ba8b716eda85aab49c9d091cdbbf7e643911639b21a15e9c9b10e450316094a3c5f52b407c73ca31c4675a25dc318360716cbca7ac593d686b44dc WHIRLPOOL ecf048a48d18eb4f4f736621e0e6f08f98e4c9513ab27e4e323b889a40c694c4830312e8add94aa8de640de6b129b5d6158beff61f695cee59abff1130bd3a2b
DIST gmic_reference-1.5.5.2.pdf.xz 15384132 SHA256 d0fd745ec708ccd4c63e817a9de20833bfa64c5d3365356bc680a2be05814e80 SHA512 eaeebef81d7df2ed98d52a0519161edba570ae1002d1cf9601f4dc672aef51a42a18a3d7c9b6a8c0872e16574d82586f9d080dad7ad68c151cd9ae3087156c1e WHIRLPOOL eb97ab3508d57313d257fe90f9dde0649b4787664ac17cde3e5fc354b2bf53eb1bcd5bd3c6cb79c92f69d80a4fa0b0a2a703f83fd3e4773844a243b0eaa146f4
DIST gmic_reference-1.5.6.1.pdf.xz 15629240 SHA256 e5fbaf82a68f19fd5914c26fb3eb8fe4888b94508c2893658adc132d72289221 SHA512 45eee7d021ff071edadb89c355dd1a7906bf9dc2166a8401509b61059b6e1005a07ed087a8cc260959d7e204cbacc014064aa3bf9a5db7bf1fdc3812e18764c7 WHIRLPOOL 9ba89f40a1746b45be13659aa1dd4580607e4f9467841897e584a860715e1b033fecfc11a13d4886f4698b569b68bed268706f80b668cb4534e286b77837b03c
+DIST gmic_reference-1.5.7.1.pdf.xz 15847624 SHA256 b2fb780b70c29ca5ea1fca553a20878eaf57b97d4533a3d2de0f6659a3a7c9b4 SHA512 6028dab9f63a667137a35783b48f2b11d93e0259eaf55a18db1add071e793f88865f8170d1f03fcb0bcdffd44015cb21dc799fd4be95b037baaae1ef4813c835 WHIRLPOOL 05368539c8037331237c0abc5d1bf704d3f44d27ea25fd6975f2c9b8b006c4dff3510adabeb4fafbebcb5e78d9e02f866bb3564e62e8a4bc5aeb13782ef3726d
EBUILD gmic-1.5.5.1.ebuild 2030 SHA256 15953b873974ad6bdd490f69de2cae8489def7f652c96376449056b3b9abb400 SHA512 2403dbd95ec0273509e1277d0eac61a525f05f2ccc8ac7d0d0474a1f251996dda12111f0211f272b8ed3049fea9afebc0d49c99e95c3d3bc4c6595961b1102ca WHIRLPOOL 3b62144036efce0217f6ffbf97f8a408b5b1313f025d173d93f44dde272d9e2d5ac790f42c51a749431bff57e6bd75140f1ee52d0fb60f4258b495c2d5ad197b
EBUILD gmic-1.5.5.2.ebuild 2039 SHA256 3dcfe6b2e4aa5420aa010608fbc5f4da54781a0c3103a7875d60c3f5cdc20f0e SHA512 d5227309021823fa5f7518624d5835f0c01bb49eb27eee70caafe8fcf6a0636bb2d304382dcc2301c6b0eb33c2e43f9da35597ad49a1907365cb3d23bd280b22 WHIRLPOOL 56ca7ae11765722a64791ee8def149b332d088b41050a6f1a250c07cd9c2b7873e3b395f667d328f2c46fa687bfd885de6db813c8037c3de2f5e9df094f36e35
EBUILD gmic-1.5.6.1.ebuild 2039 SHA256 7a8c8730d5da6b6ae06ced9bbca7829b95e09d22e0c90d3271a07bb5b9f96e4e SHA512 734b12e3370deb94800061c6d57617480bf2379911958dbae32d413de470728c621e849781bbbe2e80370b4bb681ac65d234fa27fde5f8b09e3debd84ed71eb8 WHIRLPOOL 24a1c159343878b23dcad8c09cc286285c81e6854fd1cbb0581702bf4cede20bf2c1cff6d2b18187eaefc919f80316c1117d198cc3506c98424411989b948541
-MISC ChangeLog 5356 SHA256 2accc93cb1757dd08c2443cea27284109901fc45077e542e2bd8d03de5f8ab1d SHA512 9765ecd5a4433a87bd984529d9662c3bab3f3b90e915c68ecac88814f478420922ece294dc423693abb8d0e5549a31894e5fa7f00dac44447193f4b6ecd46eb8 WHIRLPOOL 51ee8b54fb5e838a46b5fc826843e36c861d99411a63575057d82b08c492996e031767e35e2ae65808713b4713da9455b5b0285657af4c9c6e44e7725abfd3c1
+EBUILD gmic-1.5.7.1.ebuild 2039 SHA256 b241073efac03600ae4808bc0218f32a6e74943340a70ec1eeac39c6a778fdaa SHA512 08872a9b527313b6fec3380e8b224c7570d692fe85f966518da650508f963b7487be325b6369508a8d0055322b5f6c61782938b91e8ccde2ddd2de1462af832d WHIRLPOOL e541ed8e10681ce0f8cd49fa74fbf705f2a5e006c2edabdd7905e0f71da4bd49904ddeb673ed0447ab63438f9a5f1fe38b1d8b56d78ac099732c2294b3be1b75
+MISC ChangeLog 5511 SHA256 cc648b04a687f2933eaae6256a13a66a4a6755586bb839d42839e8157feb8fad SHA512 d39b5ade22182438cf368a5665d5791c2ae261083fd68cf9b4599174ca6ee2217fb6fcbc11174b553f615a34125d6c6730ee8612517c283668d5c1cc98062bcd WHIRLPOOL 275d053c227f920c8e21aa5a6fc83821bd6f7586e9a0c5e247b72ebe4abc066d2f09175c247025bd0ac6ca2edbfd7cb9831a8e964d0f0ffd0a510947783020d4
MISC metadata.xml 473 SHA256 def06af4d0283b01f9313231ff05df286129ff57afbcac23fcc7c45d8f735a6c SHA512 4bd720129471c24a6b71e32f11054d96bd2eefb3316489806a06b8deed45e5544fe1c74a73c129ec90fe30c8a4c0646c50e6690717046ad93255771627588f32 WHIRLPOOL 9a356f4c399b7a6fdf217b2dbeaeb4fd40dffc080b86c0ad913690c0b0007aaad52ea79d3b7b5b21591432c99a1e59ed02ead94e2578f1915afe2ee0c9f7d090
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iQEcBAEBCAAGBQJR1VsOAAoJEEqz6FtPBkyjG60H/RCXTmfYkqygDMfq61MAWSnA
-wGO2a5vG9u3IWqMixyRmlgaJRZwCNenJRtPUiXYpjdp5SouuwLKZIke8MAQES7N2
-075GAKiACLXDjxpH5uI7MKQPwsAcUDPOlWQY7XCYpvYl/AEFdTTyx82u+/JRjz9/
-z/LyeTsfPVLCtIJhEwapv9KrmbFErKdEajvzC0WWVQkaejbVtKr/kEBkAWmaGeEZ
-jTSMHfNPsP3fdhc6/fHcfPdzHjIc5UcRjkTYfT60Ibw/+L5mxNjdaYC05al4niT3
-6PU3bYf9AdKgKx9rLxh8LkvydDJmjDwD9Bpyb+k3bQhaNnHPKmVFUx77x7hWMjo=
-=W25G
+iQEcBAEBCAAGBQJSPKvZAAoJEEqz6FtPBkyjl08IALoKpKQzNhdfyH1BxAlI2pfJ
+HcawFNTZoWd2uMJ2Sd9XTklvt/+MX7CTfwUlqet/qf4ULA5g620p7xlqzqCF0dmJ
+wbXsAqVNkhjnf7MN4xT0NTIuw/0ZrU2N5OGlVIlk9eWBr65fybSjlDHWYq8T97C7
+PFLzEb5Y4DBqX2PaqNkQmMJ5jPXEnCwRzJNVadA2KInUZK4fVXewN+EE8WFmib5c
+DK5AVhid1hfjtjwVjZ0dEVkdt9eMO9VEE7Vmk3ZS7J8fdZCXdb9tYButtz+Qkrw9
+ifgmhxyk6Kxr0rlzxHkLl1pvmZ6BXJLkyzNE2cFNNZzeruqlB0RybiesERTfM7A=
+=Hg/H
-----END PGP SIGNATURE-----
diff --git a/media-gfx/gmic/files/gmic-1.5.7.1-makefile.patch b/media-gfx/gmic/files/gmic-1.5.7.1-makefile.patch
new file mode 100644
index 000000000000..16e6b42a8557
--- /dev/null
+++ b/media-gfx/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-gfx/gmic/gmic-1.5.7.1.ebuild b/media-gfx/gmic/gmic-1.5.7.1.ebuild
new file mode 100644
index 000000000000..ef65306d68db
--- /dev/null
+++ b/media-gfx/gmic/gmic-1.5.7.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/gmic-1.5.7.1.ebuild,v 1.1 2013/09/20 20:11:04 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
+ doc? ( http://dev.gentoo.org/~radhermit/dist/gmic_reference-${PV}.pdf.xz )"
+
+LICENSE="CeCILL-2 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc ffmpeg fftw graphicsmagick jpeg opencv openexr png tiff X zlib"
+
+RDEPEND="
+ ffmpeg? ( virtual/ffmpeg )
+ fftw? ( sci-libs/fftw:3.0 )
+ 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}
+ doc? ( app-arch/xz-utils )"
+
+S=${WORKDIR}/${P}/src
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.5.7.1-makefile.patch
+ epatch "${FILESDIR}"/${PN}-1.5.2.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} ${CPPFLAGS}" 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
+
+ use doc && dodoc "${WORKDIR}"/gmic_reference-${PV}.pdf
+
+ newbashcomp gmic_bashcompletion.sh ${PN}
+}