diff options
author | Tim Harder <radhermit@gentoo.org> | 2012-11-02 07:22:37 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2012-11-02 07:22:37 +0000 |
commit | c53c74c172e3e089be39a3630ce5a59db8691097 (patch) | |
tree | 9f4c62a146a468459465157b0685bf3e9dd50969 /media-gfx/gmic | |
parent | 0.9.5 version bump. (diff) | |
download | historical-c53c74c172e3e089be39a3630ce5a59db8691097.tar.gz historical-c53c74c172e3e089be39a3630ce5a59db8691097.tar.bz2 historical-c53c74c172e3e089be39a3630ce5a59db8691097.zip |
Version bump.
Package-Manager: portage-2.2.0_alpha141/cvs/Linux x86_64
Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'media-gfx/gmic')
-rw-r--r-- | media-gfx/gmic/ChangeLog | 8 | ||||
-rw-r--r-- | media-gfx/gmic/Manifest | 19 | ||||
-rw-r--r-- | media-gfx/gmic/files/gmic-1.5.2.1-makefile.patch | 110 | ||||
-rw-r--r-- | media-gfx/gmic/gmic-1.5.2.1.ebuild | 77 |
4 files changed, 205 insertions, 9 deletions
diff --git a/media-gfx/gmic/ChangeLog b/media-gfx/gmic/ChangeLog index 4124070251ca..8a23984577ca 100644 --- a/media-gfx/gmic/ChangeLog +++ b/media-gfx/gmic/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-gfx/gmic # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/ChangeLog,v 1.23 2012/08/31 18:46:14 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/ChangeLog,v 1.24 2012/11/02 07:22:35 radhermit Exp $ + +*gmic-1.5.2.1 (02 Nov 2012) + + 02 Nov 2012; Tim Harder <radhermit@gentoo.org> +gmic-1.5.2.1.ebuild, + +files/gmic-1.5.2.1-makefile.patch: + Version bump. *gmic-1.5.1.9 (31 Aug 2012) diff --git a/media-gfx/gmic/Manifest b/media-gfx/gmic/Manifest index 7119603d4cc8..c445b4fdc753 100644 --- a/media-gfx/gmic/Manifest +++ b/media-gfx/gmic/Manifest @@ -3,24 +3,27 @@ Hash: SHA256 AUX gmic-1.5.0.7-ffmpeg.patch 1927 SHA256 57e36922ecd33f8b05666ff707ed7f8cba2d9c732ae3bad7bd379a52bf2c0b25 SHA512 9240966708b0aed5bcb04e0e15650f5697c06ab8f7a0bd16529071e4f17562f4a9ab7e28aaf31b8835d1d04876febd1c2883242c1d7279f913ff66cb04a3c27c WHIRLPOOL 97d82dc3300eb4b364f94fa2990d676f60a3ef644cb34a2ff8c5ecc24cff38d25fe3aefe846e316768a1b7a03d9178fd16db9cb0568612f7c7a425de9b22afba AUX gmic-1.5.1.7-makefile.patch 5485 SHA256 c3703b0c8e35cfd86a0b851da1a6b8b3da8776789d987ce395e5a772f6112411 SHA512 0e40fd978232680d08c1c36f01a86f9940fc34f7ef88465e67e52f23de821d13efec2dc931ae2bb9ac1daa464391b3784061ded738105ce0def330719a98c963 WHIRLPOOL 4a690fc8959d73209583a4b3a68d2d66854355e4d36564c1393a04396d033c8af4e6a43763739dee66db941b3cdd42b6ece7cafa0e1bfc5456b71f78886d7841 +AUX gmic-1.5.2.1-makefile.patch 5487 SHA256 ffec62289b6d13853a61a3bff389ffbb7c1530fa39c111837349adeb8803099f SHA512 e0c16322ce1b41626e9031a715f7893e0a1ae73cafe1905251219dc091919fe4e41c60384b4f9ece92cb8b6f7e8b2014c0ff65aa1f7c2970f2bb597d4ee0496e WHIRLPOOL 5dc7a731ccd1d113893f9e09b1d7e797b72cf46bd4d43ee1dcdcf132cddf7fad7cea043d2fe929dba257067e14a67973d0f7054cd0d9b430c3b1925d8df142e2 DIST gmic_1.5.1.7.tar.gz 2090431 SHA256 13d7030099f5a485a11b178d19a882ee776c40d6029a7351bfc2bdc7dcb9e665 SHA512 2ae3fbefc8fe865f7ece6e93008650bad946019da3fd6cf50ab61d3895dbddc2ff89cdb35d2bf65c76aa5d188341c25a5c34978414a7635291b2a4d5d0a52740 WHIRLPOOL 1d293b334743ba901ff151e0dcb3d631b72c5298e7ef77d402223c003a5972c06f1f2c844e35116815b2a4857046aaf8c91dbee248367ddc6bbfea9e34e11ac7 DIST gmic_1.5.1.8.tar.gz 2096945 SHA256 d31bccb40eaf70ab8a2ca3b6f317ba0559641cb92fef0e49b1ccbb089a7aa13e SHA512 4332e5b0dea364d6ebd46ab4946bf47fa7039b0befe1ae24b60e173e0f7132ff8cd9a9438d6a71e21f5b209e034703595fa76c7fd18b06e92dc8d0c78de45d7e WHIRLPOOL 190ddb297b210a8d77bdae847cc79462a8272bdbe84fa9cb0f283575f16fc9103f4838e3780a53cf27ba22e9ae9220501a7d47d1b6ef699fa812b209ee2ac1a0 DIST gmic_1.5.1.9.tar.gz 2097627 SHA256 dc1f4d92f417b72e25e60fdde092b2c3e783af77c0595329aab471a1cf22d165 SHA512 723aaf092e79243e672d434f62c3fea8d1b723ad732034aa22225619233d76d32a4472b2b88fcee0a07cb468b85a81110fff5097dda32f2278e175fb338f87ba WHIRLPOOL b94b84a6369a647885f9edad21fd98ed1cb70d68d2bdcef479626d5f623d45490547aafe75f5195d68c1f90f201dee4544c1cd36ec6ccb54599a9550b434abb8 +DIST gmic_1.5.2.1.tar.gz 2170700 SHA256 8284ebc215b8fd7c8edca98f5b0c99e1d229d2123f3d1265758dbe80b6350547 SHA512 6629a13cf824ddbcf5ba292dc18a745af6b9b41cb58c81b790866a54f071af9fe47724d73f8979b310256857480032eeeedb2699502106b5d22188032b6ac03e WHIRLPOOL 24bc500567de777705b0bab58bfd8fec0e1eabda6e55c8635c75b27b398a51c50ac37fd29a07fcf262947e89a43d522333cb5aea22d98af34409ee3913623d85 DIST gmic_reference-1.5.1.8.pdf.xz 14022252 SHA256 5cdb5aea280e4ea3638d829fc6b1719cd41495f2749d405e1a31a6c05e66695c SHA512 5e5b37b0974da9d0e7c20a91558cb6b8378fc5621ea2b2a371f08cdbe53dbb6082c0d5876e24af4618bf4fe140bcee3b0d62622845f4573482dfadcf54ea0848 WHIRLPOOL 5da88bb26d804310d25a323e7432ee29da0859a905b42adbc1915eebf206b42c9b5e42527a402f9fd8286010959790f324a8c4678369f521d634bdfe783f5779 DIST gmic_reference-1.5.1.9.pdf.xz 14713168 SHA256 c9eb3a918616a9f0b49f1584e2d2a13f96cfb5639a3eb651cf25166e10ec23b7 SHA512 c1a1fa1c41c3520c537bd9c0e241e420a0074f45a6766f65f9aad0d91268d3c617c2611bf1af4b27b29aa77fac499e4108547ad9444f20f685263a39986e749f WHIRLPOOL 2b207eb9ce04b60399f20d2f52c81d0e3a45c43cd33ab0645120b117786af76d35e6c40d3aaa79f79e957116ed9b2f473a6d15ac01cfd6957211f1f523ab2ae6 EBUILD gmic-1.5.1.7.ebuild 1838 SHA256 38de549cab03e77ca53b8353843b1029222947516085ac9416b7e1fae2c5e390 SHA512 7b77c7d918bfa2caf98550a60c0547c4b4e4e1a9296ee607c394b81335ec388c996c4817881e3c4dc7914a5230bf9237fd1125b63ada1f4dc65f1d0c604ac4db WHIRLPOOL 942ce4a78b4ff76d9f644a0cb29a2a300e987232d162163686c735f9f3768afa7adc4bcc6ced8d41e1eca5f27d5dd3231f5b344e5c158d75cccee8c8a23be8dd EBUILD gmic-1.5.1.8.ebuild 2020 SHA256 06b996a10026425b6f392ed9e2d61cb0566a5845e14a002f9392670a54d9f996 SHA512 d08ad628b340515915eeba752617c7f2044e99032f96e0eb0863b4e71bb04e2d614ecbc2c39dc4bd04b4dfaa94db096fbcf1633d8b6fa048b4d5857f2d7d9de5 WHIRLPOOL b6e1bd92403df1bf27fa94eba73cad7d63faa886524bd18fd2ae9c96596bd2a6ad540f6163edeea6becc2c3516680bee8df290ae2ec6f80cd0ab25d23d572fe3 EBUILD gmic-1.5.1.9.ebuild 2020 SHA256 d0adb6758626e1f6addc7bbc1b0c969e42e48b887cf09b6d2213b3bad4bb5bf7 SHA512 8c6b2482e90a855dba4ab9b4b36951e61a4b7075f1b169e9c3d62fbf7f27f592178d5d1c5df657584a17f887ac8aefd692c4448f4bb8ddc02e95c007b779a026 WHIRLPOOL 8be57a69b7ac10079130da2aa00f1270d783618b23f0047c93e7844588bf9ab06182333c7d74ebde73191940283df0c039e214751271d1f262ed103492230ccc -MISC ChangeLog 3215 SHA256 ebdc2390e244d837a141c174518112f635a037af6fd6452f7289184e3097f649 SHA512 dc3c58be710a50fea6e92d3f7e4eb747dfec4b8ffce8dbb0d0549efbcefc38ea99d22c8eb73de65ba6ee2b8ee350ea67fd2d40740c5719595b3a87fa7281c9ee WHIRLPOOL b849cf87e2561c7101eb989f915fad7921c1eee93f127853e4cde9dd8c4cd20d432ad874432b0fa670aed95e598c129743a0ced47d909ac17fdf7889df89e59d +EBUILD gmic-1.5.2.1.ebuild 2001 SHA256 0cc146157a7495a89595da65b4c405f6dc03d43d10732f02aafe56c27d3c683f SHA512 ba6c41de4a6050a4fdf0c9edeecbbd300ad6e1703f783081bd1939f4ca37479123bdb2cdae414111effdb42e28872adf0b1b386d420d2da2f8cad3a4c8a852b3 WHIRLPOOL 22b2640a1f0ff054146483375bd4df21606c00786fbc72378cd8a26b863b6c46ae39f47e81cc1326164a09bb0ad9f832a4559bdf113555995d61726920cf77e2 +MISC ChangeLog 3370 SHA256 e43c87c531930c5ebc36fc83ae5ba11da5f7394d6780af5228e441161a7c6edd SHA512 a545a7dd8c65a1901563957451ad3bfe01320729bad9c40b3f72191c4ab80417b2830e6ecaad34d0e312b609fe64ceaacd538aafbbae5643c60f865209877dbb WHIRLPOOL 7e014363fc54285bc796afa17658e52f5ac7b6d2b436f439ba533c35315d308c3ce8f9ca9398c6d1073bf6b2607252324ab7478ea4ab9e36d1d5d335a70d0d87 MISC metadata.xml 473 SHA256 def06af4d0283b01f9313231ff05df286129ff57afbcac23fcc7c45d8f735a6c SHA512 4bd720129471c24a6b71e32f11054d96bd2eefb3316489806a06b8deed45e5544fe1c74a73c129ec90fe30c8a4c0646c50e6690717046ad93255771627588f32 WHIRLPOOL 9a356f4c399b7a6fdf217b2dbeaeb4fd40dffc080b86c0ad913690c0b0007aaad52ea79d3b7b5b21591432c99a1e59ed02ead94e2578f1915afe2ee0c9f7d090 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQEcBAEBCAAGBQJQQQZ8AAoJEEqz6FtPBkyjBjUH/0D7Bdr2P7iMvetSe/00zHBs -y3ot5naDFrcv8fp2+p+yvqWC4JiRPFgVjOb3uGdKLBJdqy6hE7dsW02le1GvoTcq -rFtv0Bsb5fOmYOWg3Dxwgau/99Z0hNBmdWzC6Fq6EYxW2f1ry5n7SEfE501TLrvs -UXahOxWSkv1nYkRGtMQr2IcbeO+v/Fb3goX/yO+1nAzBgNi3+tLeb3fSvYjIt8Hy -JqJm3YzmDZ+f4UsMJn7ELqaJ9im3oF+4YxGve/G4i7Qh/oIE6Ma2f6iK44//E4C/ -IzMkg4box36zr4fLvZEiH0Kaal8tujuuDKRe4txWHpkclaiJ5fJGvEiG1ElV5jQ= -=o/Bf +iQEcBAEBCAAGBQJQk3S8AAoJEEqz6FtPBkyjIdUIAKxQ9N+yQ72r1kxwdSWJPf6N +vfANBbm4pHLgd9TabGg2WfidSn44hz2M+3d5Sqso4b8PQN35+ZCkmqW5E66IQ7XK +6i2Zu3krT08/4fvJsDhVgMefhUqkhV3j/c18k+Z+9GJVsTXgjwkmU8g7PfpgaOQS +II1x51DNiTAWOrL+7YzASBxwUkhpLFQIYCllY6Pq6MmXMcbVh2ZQNN+QjKSzEgAk +3gbyl1Q7fGEAeeK2+P0xVVRnXeJ4di8RiF+k56B965FmHHgy/Pb3PCNlYUHttTNW +lp05H2MqliZsZosBfegDHn2357ITtZVV62mYFvwhetzJ1VAmu4wB0DTg7XQ7PFE= +=FpQm -----END PGP SIGNATURE----- diff --git a/media-gfx/gmic/files/gmic-1.5.2.1-makefile.patch b/media-gfx/gmic/files/gmic-1.5.2.1-makefile.patch new file mode 100644 index 000000000000..c5b701344e8c --- /dev/null +++ b/media-gfx/gmic/files/gmic-1.5.2.1-makefile.patch @@ -0,0 +1,110 @@ +--- gmic-1.5.2.1/src/Makefile ++++ gmic-1.5.2.1/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,15 +85,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 # -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). +@@ -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. +@@ -204,11 +190,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) \ +- $(FFTW_CFLAGS) $(BOARD_CFLAGS) $(EXR_CFLAGS) $(MAGICK_CFLAGS) # $(FFMPEG_CFLAGS) $(OPENCV_CFLAGS) ++ $(JPEG_CFLAGS) $(TIFF_CFLAGS) $(ZLIB_CFLAGS) \ ++ $(FFTW_CFLAGS) $(EXR_CFLAGS) $(MAGICK_CFLAGS) $(FFMPEG_CFLAGS) $(OPENCV_CFLAGS) + CUST_UNIX_LDFLAGS = $(MANDATORY_LDFLAGS) $(X11_LDFLAGS) $(XSHM_LDFLAGS) $(PNG_LDFLAGS) \ +- $(JPEG_LDFLAGS) $(TIFF_LDFLAGS) $(MINC2_LDFLAGS) $(ZLIB_LDFLAGS) \ +- $(FFTW_LDFLAGS) $(BOARD_LDFLAGS) $(EXR_LDFLAGS) $(MAGICK_LDFLAGS) # $(FFMPEG_LDFLAGS) $(OPENCV_LDFLAGS) ++ $(JPEG_LDFLAGS) $(TIFF_LDFLAGS) $(ZLIB_LDFLAGS) \ ++ $(FFTW_LDFLAGS) $(EXR_LDFLAGS) $(MAGICK_LDFLAGS) $(FFMPEG_LDFLAGS) $(OPENCV_LDFLAGS) + + DEBUG_UNIX_CFLAGS = $(MANDATORY_CFLAGS) $(DEBUG_CFLAGS) $(X11_CFLAGS) $(XSHM_CFLAGS) $(PNG_CFLAGS) \ + $(JPEG_CFLAGS) $(TIFF_CFLAGS) $(ZLIB_CFLAGS) $(FFTW_CFLAGS) \ +@@ -234,7 +220,7 @@ + STD_WINDOWS_LDFLAGS = $(MANDATORY_LDFLAGS) $(GDI32_LDFLAGS) $(ZLIB_LDFLAGS) $(PNG_LDFLAGS) $(JPEG_LDFLAGS) $(FFTW_LDFLAGS) + + STD_GIMP_CFLAGS = -Dgmic_build -Dcimg_display=0 -Dcimg_use_rng -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 +@@ -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 -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) +@@ -371,7 +356,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-gfx/gmic/gmic-1.5.2.1.ebuild b/media-gfx/gmic/gmic-1.5.2.1.ebuild new file mode 100644 index 000000000000..15eb93be4af8 --- /dev/null +++ b/media-gfx/gmic/gmic-1.5.2.1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/gmic-1.5.2.1.ebuild,v 1.1 2012/11/02 07:22:35 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-1.5.1.9.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}"/${P}-makefile.patch + epatch "${FILESDIR}"/${PN}-1.5.0.7-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)" 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} +} |