media-gfx/gmic: remove old
authorTim Harder <radhermit@gentoo.org>
Tue, 25 Aug 2015 01:35:27 +0000 (21:35 -0400)
committerTim Harder <radhermit@gentoo.org>
Tue, 25 Aug 2015 01:35:27 +0000 (21:35 -0400)
media-gfx/gmic/Manifest
media-gfx/gmic/files/gmic-1.6.0.2-makefile.patch [deleted file]
media-gfx/gmic/gmic-1.6.0.2.ebuild [deleted file]
media-gfx/gmic/gmic-1.6.0.3.ebuild [deleted file]
media-gfx/gmic/gmic-1.6.0.4.ebuild [deleted file]

index 0e0d1bb39eb2b0663e88270a552e81038e974f4a..7a6735db7f4a5713b18098de129b9cd680b744d5 100644 (file)
@@ -1,5 +1,2 @@
-DIST gmic_1.6.0.2.tar.gz 3013936 SHA256 ec9fa41bb8c27f883b9f845258d41f8024936c80bdec723a1c67cfe05ef9b900 SHA512 9d754cc2c72835bd139a39f72863f5315bebc25716efadb023f54661a4bb3fbf29066ddcd258ab8f084164edc9bd02f77a5a801b5c0753322f959205ce0adaf1 WHIRLPOOL 1d8e7126901b7a269f0aae9bdc1bd05a859efa3269de892e712892aa0c06eeb856c27cf05564bac30abcacf27f3e11d2bcc8f179fc29a675960d6640567cdc0c
-DIST gmic_1.6.0.3.tar.gz 3019692 SHA256 91ce6cfe58e29a6819bf849346bf049d2d73f826bbd7b8b8de42dae7d54c7752 SHA512 377b361fc178ab73a7542a39243d32de970ad6ec5928c295d86acf1bd67efc2ebaf72ce818b55c6a7aeda17eb657fbf4176f4f4c90bc48179419842343e3619b WHIRLPOOL fb78366cd72467b2c1ac2e3f704061be173ba28cb888dabee56f7c4c7c2a4b870293c2e1ae88c87edad8f4e511944bb99218e9fae2d30226c1a4b07b001927f6
-DIST gmic_1.6.0.4.tar.gz 3073596 SHA256 ef83e4efc31280e819d02315b1ebbaec6c0b8ebb960da3e785651572853b8f58 SHA512 75c0adc8a0460c140ec656403053e4533fc6434a0b23c2ac842045aeb788a8ce5da5338832574e76e06fd710bebf5ec627a5bc894f00081ffd1b37a5c6aa852e WHIRLPOOL 1eb3afc6c9fb9c07999e5e497e6d6c5075fda46293417e889511c28c9e0ce26b0070e1356dcf0db9bb49e76b83d75941ed917c01b61c98ab537430ea938c831d
 DIST gmic_1.6.5.0.tar.gz 3005945 SHA256 ebc98c4f5848b8343d581104e072299529ac3edbcea7b565ffd6e1fb4bfd66ed SHA512 3feb5589dcc341106ce1305ce2d3f90776f074607bec3b8413519aa5f2c9dc9554a9ee7a5ba1d52d1a9e7676e6bff135d444276c989511f973cd456136d0e4e1 WHIRLPOOL 02f3f711fa9c876fba39e56a42c30f62a6c2d0848ae836f9635d7df0ef57f48f2a8f09ca361232c2239e473046fe7d085260ac365d2e7b6d49e65c3c0aa2e9bc
 DIST gmic_1.6.5.1.tar.gz 3092777 SHA256 63737973848c292ef3877e1f6af3839e20fa209dd7a1bbacbdbac03bbb6fce85 SHA512 cfbb8db9a3f884ac27b4929a774c94372523a1e59a205180dde452d34310d32df4ef76c9cdfcc4ef5adf0ba72c5e1e44564cfeb2e9bc003ec8fae45df9c606c4 WHIRLPOOL e5e0e9d4dfff7a5b0da9d613bc998e32f71925cc44eb504519811327697fd13edf2abb1b94bd22619b17fa111d1e984944a01d7417ff0e328950b4258a7172fb
diff --git a/media-gfx/gmic/files/gmic-1.6.0.2-makefile.patch b/media-gfx/gmic/files/gmic-1.6.0.2-makefile.patch
deleted file mode 100644 (file)
index 2ec9047..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
---- gmic-1.6.0.2/src/Makefile
-+++ gmic-1.6.0.2/src/Makefile
-@@ -85,7 +85,6 @@
- else\r
- MANDATORY_CFLAGS += -Dgmic_build -I$(USR)/$(INCLUDE)\r
- endif\r
--MANDATORY_LIBS += -L$(USR)/$(LIB)\r
- ifeq ($(notdir $(CC)),g++)\r
- MANDATORY_CFLAGS += -Wall -W\r
- MANDATORY_LIBS += -lm\r
-@@ -142,14 +141,14 @@
- # (keep /usr/ dirname here since X11 is located in /usr/ on Mac too).\r
- # This requires the presence of the X11 include and library files.\r
- # (package 'libx11-dev' on Debian).\r
--X11_CFLAGS = -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" -I/usr/X11R6/include #-Dcimg_use_xrandr\r
--X11_LIBS = -L/usr/X11R6/lib -lX11 -lpthread #-lXrandr\r
-+X11_CFLAGS = -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" #-Dcimg_use_xrandr\r
-+X11_LIBS = -lX11 -lpthread #-lXrandr\r
\r
- # Flags to enable fast display, using XShm.\r
- # This requires the presence of the X11 extension include and library files.\r
- # (package 'libx11-dev' on Debian).\r
- XSHM_CFLAGS = -Dcimg_use_xshm\r
--XSHM_LIBS = -L$(USR)/X11R6/lib -lXext\r
-+XSHM_LIBS = -lXext\r
\r
- # Flags to enable image display, using GDI32.\r
- # This requires the presence of the GDI32 include and library files.\r
-@@ -177,8 +176,8 @@
- # Flags to enable native support for MINC2 image files, using the MINC2 library.\r
- # ( http://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_Users_Guide )\r
- # (package 'libminc-dev' on Debian).\r
--MINC2_CFLAGS = -Dcimg_use_minc2 -I${HOME}/local/include\r
--MINC2_LIBS = -lminc_io -lvolume_io2 -lminc2 -lnetcdf -lhdf5 -lz -L${HOME}/local/lib\r
-+MINC2_CFLAGS = -Dcimg_use_minc2\r
-+MINC2_LIBS = -lminc_io -lvolume_io2 -lminc2 -lnetcdf -lhdf5 -lz\r
\r
- # Flags to enable native support for compressed .cimgz files, using the Zlib library.\r
- # This requires the presence of the Zlib include and library files.\r
-@@ -345,10 +344,10 @@
- endif\r
\r
- gimp:\r
--      $(MAKE) "CFLAGS=$(STD_GIMP_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(STD_GIMP_LIBS) $(OPT_LIBS)" "STRIP_EXE=1" gmic_gimp\r
-+      $(MAKE) "CFLAGS+=$(STD_GIMP_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(STD_GIMP_LIBS) $(OPT_LIBS)" gmic_gimp\r
\r
- lib:\r
--      $(MAKE) "CFLAGS=$(STD_LIB_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(STD_LIB_LIBS) $(OPT_LIBS)" gmic_lib\r
-+      $(MAKE) "CFLAGS+=$(STD_LIB_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(STD_LIB_LIBS) $(OPT_LIBS)" gmic_lib\r
\r
- zart: lib\r
- ifneq ($(OS),Darwin)\r
-@@ -359,7 +358,7 @@
\r
- # Entries for other configurations.\r
- linux:\r
--      $(MAKE) "CFLAGS=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LIBS=$(STD_UNIX_LIBS)" "STRIP_EXE=1" gmic\r
-+      $(MAKE) "CFLAGS+=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LIBS=$(STD_UNIX_LIBS)" gmic\r
\r
- solaris:\r
-       $(MAKE) "CFLAGS=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LIBS=$(STD_UNIX_LIBS) -R$(USR)/X11R6/lib -lrt -lnsl -lsocket" "STRIP_EXE=1" gmic\r
-@@ -386,28 +385,27 @@
-       $(MAKE) "CFLAGS+=$(MINIMAL_MACOSX_CFLAGS)" "LIBS+=$(MINIMAL_MACOSX_LIBS)" gmic\r
\r
- custom:\r
--      $(MAKE) "CFLAGS=$(CUSTOM_UNIX_CFLAGS) $(OPT_CFLAGS)" "LIBS=$(CUSTOM_UNIX_LIBS)" "STRIP_EXE=1" gmic\r
-+      $(MAKE) "CFLAGS+=$(CUSTOM_UNIX_CFLAGS) $(OPT_CFLAGS)" "LIBS=$(CUSTOM_UNIX_LIBS)" gmic\r
\r
- # Internal rules to build compilation modules.\r
- gmic_lib.o: gmic.cpp\r
-       $(CC) -o gmic_lib.o -c gmic.cpp -fPIC $(CFLAGS)\r
- gmic_lib: gmic_lib.o\r
--      ar rcs libgmic.a gmic_lib.o\r
-+      $(AR) rcs libgmic.a gmic_lib.o\r
- ifneq ($(OS),Darwin)\r
--      $(CC) -shared -Wl,-soname,libgmic.so.1 -o libgmic.so gmic_lib.o $(LIBS)\r
-+      $(CC) $(LDFLAGS) -shared -Wl,-soname,libgmic.so.1 -o libgmic.so gmic_lib.o $(LIBS)\r
-       $(CC) -o gmic_use_lib gmic_use_lib.cpp -L. -lgmic $(FFTW_LIBS)\r
- else\r
--      $(CC) -shared -o libgmic.so gmic_lib.o $(LIBS)\r
-+      $(CC) $(LDFLAGS) -shared -o libgmic.so gmic_lib.o $(LIBS)\r
- endif\r
\r
- gmic_gimp.o: gmic.cpp CImg.h\r
-       $(CC) -o gmic_gimp.o -c gmic.cpp $(CFLAGS) -Dgmic_gimp\r
- gmic_gimp : gmic_gimp.o gmic_gimp.cpp\r
--      $(CC) -o gmic_gimp gmic_gimp.cpp gmic_gimp.o `gimptool-2.0$(EXE) --cflags` $(CFLAGS) `gimptool-2.0$(EXE) --libs` $(LIBS)\r
--      strip gmic_gimp$(EXE)\r
-+      $(CC) -o gmic_gimp gmic_gimp.cpp gmic_gimp.o `gimptool-2.0$(EXE) --cflags` $(CFLAGS) $(LDFLAGS) `gimptool-2.0$(EXE) --libs` $(LIBS)\r
\r
- gmic: gmic.cpp gmic.h CImg.h\r
--      $(CC) -o gmic gmic.cpp $(CFLAGS) -Dgmic_main $(LIBS)\r
-+      $(CC) -o gmic gmic.cpp $(CFLAGS) $(LDFLAGS) -Dgmic_main $(LIBS)\r
\r
- gmic_def.h: gmic_def.gmic\r
-       @echo "#ifndef gmic_gimp" > gmic_def.h\r
-@@ -422,20 +420,25 @@
- # Generate bash completion script.\r
- bashcompletion:\r
-       @mkdir -p ../resources\r
--      @\gmic -v - gmic_def.gmic raw:gmic_def.gmic,uchar -document_gmic bash 2> ../resources/gmic_bashcompletion.sh\r
-+      @./gmic -v - gmic_def.gmic raw:gmic_def.gmic,uchar -document_gmic bash 2> ../resources/gmic_bashcompletion.sh\r
\r
- # Generate man page.\r
- man:\r
-       @mkdir -p ../man\r
--      @\gmic -v - gmic_def.gmic raw:gmic_def.gmic,uchar -__help man 2> ../man/gmic.1\r
--      @gzip -f ../man/gmic.1\r
-+      @./gmic -v - gmic_def.gmic raw:gmic_def.gmic,uchar -__help man 2> ../man/gmic.1\r
-+\r
-+install: install-gimp install-bin install-lib install-man install-bash\r
\r
- # Install/uninstall/clean procedures.\r
--install:\r
-+install-gimp:\r
-       mkdir -p $(DESTDIR)$(PLUGINDIR)/\r
-       cp -f gmic_gimp $(DESTDIR)$(PLUGINDIR)/\r
-+\r
-+install-bin:\r
-       mkdir -p $(DESTDIR)$(USR)/$(BIN)/\r
-       cp -f gmic $(DESTDIR)$(USR)/$(BIN)/\r
-+\r
-+install-lib:\r
-       mkdir -p $(DESTDIR)$(USR)/$(INCLUDE)/\r
-       cp -f gmic.h $(DESTDIR)$(USR)/$(INCLUDE)/\r
- ifneq ($(OS),Darwin)\r
-@@ -445,13 +448,14 @@
-       ln -s libgmic.so.1.6.0 $(DESTDIR)$(USR)/$(LIB)/libgmic.so.1\r
-       ln -s libgmic.so.1 $(DESTDIR)$(USR)/$(LIB)/libgmic.so\r
- endif\r
-+\r
-+install-man:\r
-       mkdir -p $(DESTDIR)$(USR)/share/man/\r
-       mkdir -p $(DESTDIR)$(USR)/share/man/man1/\r
--      mkdir -p $(DESTDIR)$(USR)/share/man/fr/man1/\r
--      cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/man1/gmic.1.gz\r
--      cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/fr/man1/gmic.1.gz\r
-+      cp -f ../man/gmic.1 $(DESTDIR)$(USR)/share/man/man1/gmic.1\r
-+\r
-+install-bash:\r
-       if [ -d /etc/bash_completion.d/ ]; then mkdir -p $(DESTDIR)/etc/bash_completion.d/; cp -f ../resources/gmic_bashcompletion.sh $(DESTDIR)/etc/bash_completion.d/gmic; fi\r
--      if [ -d /opt/local/etc/bash_completion.d/ ]; then mkdir -p $(DESTDIR)/opt/local/etc/bash_completion.d/; cp -f ../resources/gmic_bashcompletion.sh $(DESTDIR)/opt/local/etc/bash_completion.d/gmic; fi\r
\r
- uninstall:\r
-       rm -f $(DESTDIR)$(USR)/$(BIN)/gmic\r
-@@ -460,8 +464,7 @@
-       rm -f $(DESTDIR)$(USR)/$(LIB)/libgmic.so.1\r
-       rm -f $(DESTDIR)$(USR)/$(LIB)/libgmic.so\r
-       rm -rf $(DESTDIR)$(USR)/share/doc/gmic/\r
--      rm -f $(DESTDIR)$(USR)/share/man/man1/gmic.1.gz\r
--      rm -f $(DESTDIR)$(USR)/share/man/fr/man1/gmic.1.gz\r
-+      rm -f $(DESTDIR)$(USR)/share/man/man1/gmic.1\r
\r
- distclean: clean\r
\r
diff --git a/media-gfx/gmic/gmic-1.6.0.2.ebuild b/media-gfx/gmic/gmic-1.6.0.2.ebuild
deleted file mode 100644 (file)
index 44c0c82..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-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 openmp png tiff X zlib"
-
-DEPEND="
-       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 )"
-RDEPEND="${DEPEND}
-       ffmpeg? ( media-video/ffmpeg:0 )
-"
-
-S=${WORKDIR}/${P}/src
-
-pkg_pretend() {
-       if use openmp ; then
-               tc-has-openmp || die "Please switch to an openmp compatible compiler"
-       fi
-
-       if ! test-flag-CXX -std=c++11 ; then
-               die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags"
-       fi
-}
-
-src_prepare() {
-       epatch "${FILESDIR}"/${P}-makefile.patch
-
-       for i in fftw jpeg opencv openmp png tiff zlib ; do
-               use $i || { sed -i -r "s/^(${i}_(CFLAGS|LIBS) =).*/\1/I" Makefile || die ; }
-       done
-
-       use graphicsmagick || { sed -i -r "s/^(MAGICK_(CFLAGS|LIBS) =).*/\1/" Makefile || die ; }
-       use openexr || { sed -i -r "s/^(EXR_(CFLAGS|LIBS) =).*/\1/" Makefile || die ; }
-
-       if ! use X ; then
-               sed -i -r "s/^((X11|XSHM)_(CFLAGS|LIBS) =).*/\1/" Makefile || die
-
-               # disable display capabilities when X support is disabled
-               append-cxxflags -Dcimg_display=0
-       fi
-}
-
-src_compile() {
-       emake AR="$(tc-getAR)" CC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" \
-               LIB="$(get_libdir)" OPT_CFLAGS= DEBUG_CFLAGS= linux lib
-       emake man bashcompletion
-}
-
-src_install() {
-       emake DESTDIR="${D}" LIB="$(get_libdir)" install-bin install-lib install-man install-bash
-       dodoc ../README
-}
diff --git a/media-gfx/gmic/gmic-1.6.0.3.ebuild b/media-gfx/gmic/gmic-1.6.0.3.ebuild
deleted file mode 100644 (file)
index a420b57..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-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 openmp png tiff X zlib"
-
-DEPEND="
-       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 )"
-RDEPEND="${DEPEND}
-       ffmpeg? ( media-video/ffmpeg:0 )
-"
-
-S=${WORKDIR}/${P}/src
-
-pkg_pretend() {
-       if use openmp ; then
-               tc-has-openmp || die "Please switch to an openmp compatible compiler"
-       fi
-
-       if ! test-flag-CXX -std=c++11 ; then
-               die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags"
-       fi
-}
-
-src_prepare() {
-       cp "${FILESDIR}"/${PN}-1.6.0.2-makefile.patch "${WORKDIR}" || die
-       edos2unix "${WORKDIR}"/${PN}-1.6.0.2-makefile.patch
-       epatch "${WORKDIR}"/${PN}-1.6.0.2-makefile.patch
-
-       for i in fftw jpeg opencv openmp png tiff zlib ; do
-               use $i || { sed -i -r "s/^(${i}_(CFLAGS|LIBS) =).*/\1/I" Makefile || die ; }
-       done
-
-       use graphicsmagick || { sed -i -r "s/^(MAGICK_(CFLAGS|LIBS) =).*/\1/" Makefile || die ; }
-       use openexr || { sed -i -r "s/^(EXR_(CFLAGS|LIBS) =).*/\1/" Makefile || die ; }
-
-       if ! use X ; then
-               sed -i -r "s/^((X11|XSHM)_(CFLAGS|LIBS) =).*/\1/" Makefile || die
-
-               # disable display capabilities when X support is disabled
-               append-cxxflags -Dcimg_display=0
-       fi
-}
-
-src_compile() {
-       emake AR="$(tc-getAR)" CC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" \
-               LIB="$(get_libdir)" OPT_CFLAGS= DEBUG_CFLAGS= linux lib
-       emake man bashcompletion
-}
-
-src_install() {
-       emake DESTDIR="${D}" LIB="$(get_libdir)" install-bin install-lib install-man install-bash
-       dodoc ../README
-}
diff --git a/media-gfx/gmic/gmic-1.6.0.4.ebuild b/media-gfx/gmic/gmic-1.6.0.4.ebuild
deleted file mode 100644 (file)
index 7e0b7f7..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils toolchain-funcs bash-completion-r1 flag-o-matic
-
-DESCRIPTION="GREYC's Magic Image Converter"
-HOMEPAGE="http://gmic.eu/"
-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 openmp png tiff X zlib"
-
-DEPEND="
-       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 )"
-RDEPEND="${DEPEND}
-       ffmpeg? ( media-video/ffmpeg:0 )
-"
-
-S=${WORKDIR}/${P}/src
-
-pkg_pretend() {
-       if use openmp ; then
-               tc-has-openmp || die "Please switch to an openmp compatible compiler"
-       fi
-
-       if ! test-flag-CXX -std=c++11 ; then
-               die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags"
-       fi
-}
-
-src_prepare() {
-       cp "${FILESDIR}"/${PN}-1.6.0.2-makefile.patch "${WORKDIR}" || die
-       edos2unix "${WORKDIR}"/${PN}-1.6.0.2-makefile.patch
-       epatch "${WORKDIR}"/${PN}-1.6.0.2-makefile.patch
-
-       for i in fftw jpeg opencv openmp png tiff zlib ; do
-               use $i || { sed -i -r "s/^(${i}_(CFLAGS|LIBS) =).*/\1/I" Makefile || die ; }
-       done
-
-       use graphicsmagick || { sed -i -r "s/^(MAGICK_(CFLAGS|LIBS) =).*/\1/" Makefile || die ; }
-       use openexr || { sed -i -r "s/^(EXR_(CFLAGS|LIBS) =).*/\1/" Makefile || die ; }
-
-       if ! use X ; then
-               sed -i -r "s/^((X11|XSHM)_(CFLAGS|LIBS) =).*/\1/" Makefile || die
-
-               # disable display capabilities when X support is disabled
-               append-cxxflags -Dcimg_display=0
-       fi
-}
-
-src_compile() {
-       emake AR="$(tc-getAR)" CC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" \
-               LIB="$(get_libdir)" OPT_CFLAGS= DEBUG_CFLAGS= linux lib
-       emake man bashcompletion
-}
-
-src_install() {
-       emake DESTDIR="${D}" LIB="$(get_libdir)" install-bin install-lib install-man install-bash
-       dodoc ../README
-}