diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-gfx/graphicsmagick | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-gfx/graphicsmagick')
13 files changed, 647 insertions, 0 deletions
diff --git a/media-gfx/graphicsmagick/Manifest b/media-gfx/graphicsmagick/Manifest new file mode 100644 index 000000000000..c91e31d38f49 --- /dev/null +++ b/media-gfx/graphicsmagick/Manifest @@ -0,0 +1,3 @@ +DIST GraphicsMagick-1.3.18.tar.xz 5124436 SHA256 fd48eebe200793e6f62a2b7d96413c94a8967ab56295605513898e2c8524b0ab SHA512 c04dbca467d2ac94d9c47818c7087954ceb54a736fdd062be6d499319037f4bbca3a779542d8acad262b59cb599521f895177574a21975f496ba57061b64b960 WHIRLPOOL d3b396d1cf3691f4aec1387066a55e4105e220cba22ef690234cb8724e955cc5dd4e39c269fddf610d61249850499facaaa54d2150660ed8f5126554a27c11dc +DIST GraphicsMagick-1.3.19.tar.xz 5153772 SHA256 de64372bb7bbff18cf14afd35c8239d9588592f053fd51a82f7239ad42174a54 SHA512 cdfbdc75356ade5037eab836739e7e59156d8b3555112d350f25e47072142e19d47ea9da718d93e40fd864c5bb88810737c078d6fbee9950b964f49519881f6e WHIRLPOOL d4cc6eba8472a5e25cbc9e6b49ec5e1449f1b44e2962936b35227c654d3712d65b4201938127e758be2a6f1818a099de04be4761fd115d3806749965f5c42282 +DIST GraphicsMagick-1.3.20.tar.xz 5206616 SHA256 35fa21da4c1479e08da8351c5b1e363adaca803a0064cfc83084363adce387c9 SHA512 59f5eece3a38a98aea43bfc2aefd9c2df458c7f836c8ac05e908c29ea1de295e3f26b63f8daeadac4f40094e5d50aa860472c48e7a52e9f694471d0dcc5bbe37 WHIRLPOOL 13bc6154fbb2224eefdb6f437179a279f8959b4ccff9dc8eb6ef2cec205774a2a7cac4093ac81d36ba22a9879edaca15576ecc56e91da0318b7fffe029a6aecc diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.16-libpng14.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.16-libpng14.patch new file mode 100644 index 000000000000..bacf70e9ec24 --- /dev/null +++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.16-libpng14.patch @@ -0,0 +1,65 @@ + +# HG changeset patch +# User Glenn Randers-Pehrson <glennrp@simple...> +# Date 1343491548 18000 +# Node ID d6e469d02cd260b6531e86a8a6c8a5a2b9ff51cb +# Parent fe9e2eb655ce8b85abfd9b88d20a8a1648ad71e7 +coders/png.c: Some typecasts were inconsistent with libpng-1.4 and later. + +diff -r fe9e2eb655ce -r d6e469d02cd2 coders/png.c +--- a/coders/png.c Thu Jul 26 20:24:26 2012 -0500 ++++ b/coders/png.c Sat Jul 28 11:05:48 2012 -0500 +@@ -1360,7 +1360,11 @@ + } + + #ifdef PNG_USER_MEM_SUPPORTED +-static png_voidp png_IM_malloc(png_structp png_ptr,png_uint_32 size) ++#if PNG_LIBPNG_VER >= 14000 ++static png_voidp png_IM_malloc(png_structp png_ptr,png_alloc_size_t size) ++#else ++static png_voidp png_IM_malloc(png_structp png_ptr,png_size_t size) ++#endif + { + (void) png_ptr; + return MagickAllocateMemory(png_voidp,(size_t) size); +@@ -6169,12 +6173,22 @@ + (void) printf("writing raw profile: type=%.1024s, length=%lu\n", + profile_type, (unsigned long)length); + } +- text=(png_textp) png_malloc(ping,(png_uint_32) sizeof(png_text)); ++#if PNG_LIBPNG_VER >= 14000 ++ text=(png_textp) png_malloc(ping,(png_alloc_size_t) sizeof(png_text)); ++#else ++ text=(png_textp) png_malloc(ping,(png_size_t) sizeof(png_text)); ++#endif + description_length=strlen((const char *) profile_description); + allocated_length=(png_uint_32) (length*2 + (length >> 5) + 20 + + description_length); +- text[0].text=(png_charp) png_malloc(ping,allocated_length); +- text[0].key=(png_charp) png_malloc(ping, (png_uint_32) 80); ++#if PNG_LIBPNG_VER >= 14000 ++ text[0].text=(png_charp) png_malloc(ping, ++ (png_alloc_size_t) allocated_length); ++ text[0].key=(png_charp) png_malloc(ping, (png_alloc_size_t) 80); ++#else ++ text[0].text=(png_charp) png_malloc(ping, (png_size_t) allocated_length); ++ text[0].key=(png_charp) png_malloc(ping, (png_size_t) 80); ++#endif + text[0].key[0]='\0'; + (void) strcat(text[0].key, "Raw profile type "); + (void) strncat(text[0].key, (const char *) profile_type, 61); +@@ -7620,7 +7634,12 @@ + + if (*attribute->key == '[') + continue; +- text=(png_textp) png_malloc(ping,(png_uint_32) sizeof(png_text)); ++#if PNG_LIBPNG_VER >= 14000 ++ text=(png_textp) png_malloc(ping, ++ (png_alloc_size_t) sizeof(png_text)); ++#else ++ text=(png_textp) png_malloc(ping,(png_size_t) sizeof(png_text)); ++#endif + text[0].key=attribute->key; + text[0].text=attribute->value; + text[0].text_length=strlen(attribute->value); + diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.17-freetype.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.17-freetype.patch new file mode 100644 index 000000000000..3ae4ad49f00b --- /dev/null +++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.17-freetype.patch @@ -0,0 +1,32 @@ +https://sourceforge.net/tracker/?func=detail&aid=3601612&group_id=73485&atid=537940 + +--- a/configure ++++ b/configure +@@ -26488,7 +26488,6 @@ + # directory as GraphicsMagick installation prefix. + #LDFLAGS="$LDFLAGS -L$LIB_DIR" + #CPPFLAGS="$CPPFLAGS -I$INCLUDE_DIR" +-MAGICK_API_CPPFLAGS="-I$INCLUDE_DIR/GraphicsMagick $MAGICK_API_CPPFLAGS" + + # + # Find the X11 RGB database +@@ -29490,8 +29490,8 @@ + then + freetype_prefix=`${freetype_config} --prefix` + freetype_exec_prefix=`${freetype_config} --exec-prefix` +- LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib" +- CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2" ++ LDFLAGS="$LDFLAGS `${PKG_CONFIG:-pkg-config} freetype2 --libs`" ++ CPPFLAGS="$CPPFLAGS `${PKG_CONFIG:-pkg-config} freetype2 --cflags`" + fi + + dnl First see if there is a library +@@ -35767,7 +35767,7 @@ + + MAGICK_API_CFLAGS=$CFLAGS + MAGICK_API_CPPFLAGS=`echo $MAGICK_API_CPPFLAGS | sed -e 's/ */ /g'` +-MAGICK_API_LDFLAGS="-L$LIB_DIR $LDFLAGS" ++MAGICK_API_LDFLAGS="$LDFLAGS" + MAGICK_API_DEP_LIBS="$MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL" + MAGICK_API_LIBS="-lGraphicsMagick $MAGICK_API_DEP_LIBS" + diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.18-freetype.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.18-freetype.patch new file mode 100644 index 000000000000..d6504e6d0ffe --- /dev/null +++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.18-freetype.patch @@ -0,0 +1,32 @@ +https://sourceforge.net/tracker/?func=detail&aid=3601612&group_id=73485&atid=537940 + +--- GraphicsMagick-1.3.18/configure ++++ GraphicsMagick-1.3.18/configure +@@ -22249,7 +22249,6 @@ + # directory as GraphicsMagick installation prefix. + #LDFLAGS="$LDFLAGS -L$LIB_DIR" + #CPPFLAGS="$CPPFLAGS -I$INCLUDE_DIR" +-MAGICK_API_CPPFLAGS="-I$INCLUDE_DIR/GraphicsMagick $MAGICK_API_CPPFLAGS" + + # + # Find the X11 RGB database +@@ -25994,8 +25993,8 @@ + then + freetype_prefix=`${freetype_config} --prefix` + freetype_exec_prefix=`${freetype_config} --exec-prefix` +- LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib" +- CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2" ++ LDFLAGS="$LDFLAGS `${PKG_CONFIG:-pkg-config} freetype2 --libs`" ++ CPPFLAGS="$CPPFLAGS `${PKG_CONFIG:-pkg-config} freetype2 --cflags`" + fi + + if test "$LIB_TTF" = '' +@@ -29605,7 +29604,7 @@ + + MAGICK_API_CFLAGS=$CFLAGS + MAGICK_API_CPPFLAGS=`echo $MAGICK_API_CPPFLAGS | sed -e 's/ */ /g'` +-MAGICK_API_LDFLAGS="-L$LIB_DIR $LDFLAGS" ++MAGICK_API_LDFLAGS="$LDFLAGS" + MAGICK_API_DEP_LIBS="$MAGICK_DEP_LIBS" + MAGICK_API_LIBS="-lGraphicsMagick $MAGICK_API_DEP_LIBS" + diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.18-powerpc.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.18-powerpc.patch new file mode 100644 index 000000000000..30a67fdc3e2d --- /dev/null +++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.18-powerpc.patch @@ -0,0 +1,11 @@ +--- a/magick/studio.h ++++ b/magick/studio.h +@@ -51,7 +51,7 @@ + threads. Most CPUs have cache lines of 32 or 64 bytes. IBM Power CPUs have + cache lines of 128 bytes. + */ +-#if defined(MAGICK_TARGET_CPU) && (MAGICK_TARGET_CPU == powerpc) ++#ifdef __powerpc__ + # define MAGICK_CACHE_LINE_SIZE 128 + #else + # define MAGICK_CACHE_LINE_SIZE 64 diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-flags.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-flags.patch new file mode 100644 index 000000000000..1ebef5400337 --- /dev/null +++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-flags.patch @@ -0,0 +1,56 @@ +Fix various preprocessor, compiler, and linker flags added to config wrappers. +Previously they would add build time flags to the files which is incorrect. + +--- GraphicsMagick-1.3.19/configure.ac ++++ GraphicsMagick-1.3.19/configure.ac +@@ -346,6 +346,7 @@ + + AC_OPENMP([C]) + CFLAGS="$OPENMP_CFLAGS $CFLAGS" ++MAGICK_API_CFLAGS="$MAGICK_API_CFLAGS $OPENMP_CFLAGS" + #CXXFLAGS="$OPENMP_CXXFLAGS $CXXFLAGS" + #LDFLAGS="$LDFLAGS $OPENMP_CFLAGS" + AC_SUBST(OPENMP_CFLAGS) +@@ -3407,9 +3408,10 @@ + MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'` + #LIBS=`echo $LIBS | sed -e 's/ */ /g'` + +-MAGICK_API_CFLAGS=$CFLAGS ++MAGICK_API_CFLAGS=`echo $MAGICK_API_CFLAGS | sed -e 's/ */ /g'` + MAGICK_API_CPPFLAGS=`echo $MAGICK_API_CPPFLAGS | sed -e 's/ */ /g'` +-MAGICK_API_LDFLAGS="-L$LIB_DIR $LDFLAGS" ++MAGICK_API_CXXFLAGS="" ++MAGICK_API_LDFLAGS="-L$LIB_DIR" + MAGICK_API_DEP_LIBS="$MAGICK_DEP_LIBS" + MAGICK_API_LIBS="-lGraphicsMagick $MAGICK_API_DEP_LIBS" + +@@ -3440,6 +3442,7 @@ + + AC_SUBST(MAGICK_API_CFLAGS) + AC_SUBST(MAGICK_API_CPPFLAGS) ++AC_SUBST(MAGICK_API_CXXFLAGS) + AC_SUBST(MAGICK_API_PC_CPPFLAGS) + AC_SUBST(MAGICK_API_LDFLAGS) + AC_SUBST(MAGICK_API_LIBS) +--- GraphicsMagick-1.3.19/magick/GraphicsMagick-config.in ++++ GraphicsMagick-1.3.19/magick/GraphicsMagick-config.in +@@ -30,7 +30,7 @@ + echo @PACKAGE_VERSION@ + ;; + --cflags) +- echo '@CFLAGS@' ++ echo '@MAGICK_API_CFLAGS@' + ;; + --cppflags) + echo '@MAGICK_API_CPPFLAGS@' +--- GraphicsMagick-1.3.19/Magick++/bin/GraphicsMagick++-config.in ++++ GraphicsMagick-1.3.19/Magick++/bin/GraphicsMagick++-config.in +@@ -33,7 +33,7 @@ + echo '@MAGICK_API_CPPFLAGS@' + ;; + --cxxflags) +- echo '@CXXFLAGS@' ++ echo '@MAGICK_API_CXXFLAGS@' + ;; + --ldflags) + echo '@MAGICK_API_LDFLAGS@' diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-freetype.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-freetype.patch new file mode 100644 index 000000000000..4ef1fb997edc --- /dev/null +++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-freetype.patch @@ -0,0 +1,15 @@ +https://sourceforge.net/tracker/?func=detail&aid=3601612&group_id=73485&atid=537940 + +--- GraphicsMagick-1.3.19/configure.ac ++++ GraphicsMagick-1.3.19/configure.ac +@@ -2283,8 +2284,8 @@ + then + freetype_prefix=`${freetype_config} --prefix` + freetype_exec_prefix=`${freetype_config} --exec-prefix` +- LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib" +- CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2" ++ LDFLAGS="$LDFLAGS `${PKG_CONFIG:-pkg-config} freetype2 --libs`" ++ CPPFLAGS="$CPPFLAGS `${PKG_CONFIG:-pkg-config} freetype2 --cflags`" + fi + + dnl First see if there is a library diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch new file mode 100644 index 000000000000..39cf05fd55f1 --- /dev/null +++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch @@ -0,0 +1,13 @@ +Link perl bindings against built libraries instead of system libraries (bug #456180). + +--- GraphicsMagick-1.3.19/PerlMagick/Makefile.PL.in ++++ GraphicsMagick-1.3.19/PerlMagick/Makefile.PL.in +@@ -23,7 +23,7 @@ + my $magick_BIN_DIR="$ENV{'DESTDIR'}@BIN_DIR@"; + my $magick_DEP_LIBS='@MAGICK_DEP_LIBS@'; + my $magick_PERLMAINCC='@PERLMAINCC@'; +-my $magick_LIB_DIR="$ENV{'DESTDIR'}@MAGICKLIBDIR@"; ++my $magick_LIB_DIR="../magick/.libs"; + + # Compute test specification + my $delegate_tests='t/*.t'; diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.20-powerpc.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.20-powerpc.patch new file mode 100644 index 000000000000..44a13581e42a --- /dev/null +++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.20-powerpc.patch @@ -0,0 +1,20 @@ +--- GraphicsMagick-1.3.20/magick/studio.h ++++ GraphicsMagick-1.3.20/magick/studio.h +@@ -51,12 +51,11 @@ + threads. Most CPUs have cache lines of 32 or 64 bytes. IBM Power CPUs have + cache lines of 128 bytes. + */ +-/* FIXME: C pre-processor does not support comparing strings. */ +-/* #if defined(MAGICK_TARGET_CPU) && (MAGICK_TARGET_CPU == powerpc) */ +-/* # define MAGICK_CACHE_LINE_SIZE 128 */ +-/* #else */ +-# define MAGICK_CACHE_LINE_SIZE 64 +-/* #endif */ ++#ifdef __powerpc__ ++#define MAGICK_CACHE_LINE_SIZE 128 ++#else ++#define MAGICK_CACHE_LINE_SIZE 64 ++#endif + + + /* diff --git a/media-gfx/graphicsmagick/graphicsmagick-1.3.18.ebuild b/media-gfx/graphicsmagick/graphicsmagick-1.3.18.ebuild new file mode 100644 index 000000000000..afb482ce3ee1 --- /dev/null +++ b/media-gfx/graphicsmagick/graphicsmagick-1.3.18.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs eutils + +MY_P=${P/graphicsm/GraphicsM} + +DESCRIPTION="Collection of tools and libraries for many image formats" +HOMEPAGE="http://www.graphicsmagick.org/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="bzip2 cxx debug fpx imagemagick jbig jpeg jpeg2k lcms lzma modules openmp perl png postscript q16 q32 static-libs svg threads tiff truetype wmf X zlib" + +RDEPEND=">=sys-devel/libtool-2.2.6b + bzip2? ( app-arch/bzip2 ) + fpx? ( media-libs/libfpx ) + imagemagick? ( !media-gfx/imagemagick ) + jbig? ( media-libs/jbigkit ) + jpeg? ( virtual/jpeg ) + jpeg2k? ( media-libs/jasper ) + lcms? ( media-libs/lcms:2 ) + lzma? ( app-arch/xz-utils ) + perl? ( dev-lang/perl ) + png? ( media-libs/libpng:0 ) + postscript? ( app-text/ghostscript-gpl ) + svg? ( dev-libs/libxml2 ) + tiff? ( media-libs/tiff:0 ) + truetype? ( + media-fonts/urw-fonts + >=media-libs/freetype-2 + ) + wmf? ( media-libs/libwmf ) + X? ( + x11-libs/libSM + x11-libs/libXext + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.3.18-freetype.patch + epatch "${FILESDIR}"/${PN}-1.3.18-powerpc.patch +} + +src_configure() { + local depth=8 + use q16 && depth=16 + use q32 && depth=32 + + local openmp=disable + if use openmp && tc-has-openmp; then + openmp=enable + fi + + econf \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ + --${openmp}-openmp \ + --enable-largefile \ + --enable-shared \ + $(use_enable static-libs static) \ + $(use_enable debug prof) \ + $(use_enable debug gcov) \ + $(use_enable imagemagick magick-compat) \ + $(use_with threads) \ + $(use_with modules) \ + --with-quantum-depth=${depth} \ + --without-frozenpaths \ + $(use_with cxx magick-plus-plus) \ + $(use_with perl) \ + --with-perl-options=INSTALLDIRS=vendor \ + $(use_with bzip2 bzlib) \ + $(use_with postscript dps) \ + $(use_with fpx) \ + --without-gslib \ + $(use_with jbig) \ + $(use_with jpeg) \ + $(use_with jpeg2k jp2) \ + --without-lcms \ + $(use_with lcms lcms2) \ + $(use_with lzma) \ + $(use_with png) \ + $(use_with tiff) \ + $(use_with truetype ttf) \ + $(use_with wmf) \ + --with-fontpath="${EPREFIX}"/usr/share/fonts \ + --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \ + --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \ + $(use_with svg xml) \ + $(use_with zlib) \ + $(use_with X x) +} + +src_compile() { + default + use perl && emake perl-build +} + +src_install() { + default + + if use perl; then + emake -C PerlMagick DESTDIR="${D}" install + find "${ED}" -type f -name perllocal.pod -exec rm -f {} + + find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + + fi + + find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + +} diff --git a/media-gfx/graphicsmagick/graphicsmagick-1.3.19.ebuild b/media-gfx/graphicsmagick/graphicsmagick-1.3.19.ebuild new file mode 100644 index 000000000000..3f5d217b51ed --- /dev/null +++ b/media-gfx/graphicsmagick/graphicsmagick-1.3.19.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils toolchain-funcs + +MY_P=${P/graphicsm/GraphicsM} + +DESCRIPTION="Collection of tools and libraries for many image formats" +HOMEPAGE="http://www.graphicsmagick.org/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="bzip2 cxx debug fpx imagemagick jbig jpeg jpeg2k lcms lzma modules openmp + perl png postscript q16 q32 static-libs svg threads tiff truetype webp wmf X zlib" + +RDEPEND=">=sys-devel/libtool-2.2.6b + bzip2? ( app-arch/bzip2 ) + fpx? ( media-libs/libfpx ) + imagemagick? ( !media-gfx/imagemagick ) + jbig? ( media-libs/jbigkit ) + jpeg? ( virtual/jpeg ) + jpeg2k? ( media-libs/jasper ) + lcms? ( media-libs/lcms:2 ) + lzma? ( app-arch/xz-utils ) + perl? ( dev-lang/perl ) + png? ( media-libs/libpng:0 ) + postscript? ( app-text/ghostscript-gpl ) + svg? ( dev-libs/libxml2 ) + tiff? ( media-libs/tiff:0 ) + truetype? ( + media-fonts/urw-fonts + >=media-libs/freetype-2 + ) + webp? ( media-libs/libwebp ) + wmf? ( media-libs/libwmf ) + X? ( + x11-libs/libSM + x11-libs/libXext + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.3.19-freetype.patch + epatch "${FILESDIR}"/${PN}-1.3.19-flags.patch + epatch "${FILESDIR}"/${PN}-1.3.19-perl.patch + epatch "${FILESDIR}"/${PN}-1.3.18-powerpc.patch + + epatch_user #498942 + + eautoreconf +} + +src_configure() { + local depth=8 + use q16 && depth=16 + use q32 && depth=32 + + local openmp=disable + if use openmp && tc-has-openmp; then + openmp=enable + fi + + econf \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ + --${openmp}-openmp \ + --enable-largefile \ + --enable-shared \ + $(use_enable static-libs static) \ + $(use_enable debug prof) \ + $(use_enable debug gcov) \ + $(use_enable imagemagick magick-compat) \ + $(use_with threads) \ + $(use_with modules) \ + --with-quantum-depth=${depth} \ + --without-frozenpaths \ + $(use_with cxx magick-plus-plus) \ + $(use_with perl) \ + --with-perl-options=INSTALLDIRS=vendor \ + $(use_with bzip2 bzlib) \ + $(use_with postscript dps) \ + $(use_with fpx) \ + --without-gslib \ + $(use_with jbig) \ + $(use_with webp) \ + $(use_with jpeg) \ + $(use_with jpeg2k jp2) \ + --without-lcms \ + $(use_with lcms lcms2) \ + $(use_with lzma) \ + $(use_with png) \ + $(use_with tiff) \ + $(use_with truetype ttf) \ + $(use_with wmf) \ + --with-fontpath="${EPREFIX}"/usr/share/fonts \ + --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \ + --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \ + $(use_with svg xml) \ + $(use_with zlib) \ + $(use_with X x) +} + +src_compile() { + default + use perl && emake perl-build +} + +src_test() { + unset DISPLAY # some perl tests fail when DISPLAY is set + default +} + +src_install() { + default + + if use perl; then + emake -C PerlMagick DESTDIR="${D}" install + find "${ED}" -type f -name perllocal.pod -exec rm -f {} + + find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + + fi + + find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + +} diff --git a/media-gfx/graphicsmagick/graphicsmagick-1.3.20-r1.ebuild b/media-gfx/graphicsmagick/graphicsmagick-1.3.20-r1.ebuild new file mode 100644 index 000000000000..6cc10fe84eb6 --- /dev/null +++ b/media-gfx/graphicsmagick/graphicsmagick-1.3.20-r1.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils toolchain-funcs + +MY_P=${P/graphicsm/GraphicsM} + +DESCRIPTION="Collection of tools and libraries for many image formats" +HOMEPAGE="http://www.graphicsmagick.org/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="bzip2 cxx debug fpx imagemagick jbig jpeg jpeg2k lcms lzma modules openmp + perl png postscript q16 q32 static-libs svg threads tiff truetype webp wmf X zlib" + +RDEPEND=">=sys-devel/libtool-2.2.6b + bzip2? ( app-arch/bzip2 ) + fpx? ( media-libs/libfpx ) + imagemagick? ( !media-gfx/imagemagick ) + jbig? ( media-libs/jbigkit ) + jpeg? ( virtual/jpeg:0 ) + jpeg2k? ( media-libs/jasper ) + lcms? ( media-libs/lcms:2 ) + lzma? ( app-arch/xz-utils ) + perl? ( dev-lang/perl ) + png? ( media-libs/libpng:0 ) + postscript? ( app-text/ghostscript-gpl ) + svg? ( dev-libs/libxml2 ) + tiff? ( media-libs/tiff:0 ) + truetype? ( + media-fonts/urw-fonts + >=media-libs/freetype-2 + ) + webp? ( media-libs/libwebp ) + wmf? ( media-libs/libwmf ) + X? ( + x11-libs/libSM + x11-libs/libXext + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.3.19-freetype.patch + epatch "${FILESDIR}"/${PN}-1.3.19-flags.patch + epatch "${FILESDIR}"/${PN}-1.3.19-perl.patch + epatch "${FILESDIR}"/${P}-powerpc.patch + + epatch_user #498942 + + eautoreconf +} + +src_configure() { + local depth=8 + use q16 && depth=16 + use q32 && depth=32 + + local openmp=disable + if use openmp && tc-has-openmp; then + openmp=enable + fi + + econf \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ + --${openmp}-openmp \ + --enable-largefile \ + --enable-shared \ + $(use_enable static-libs static) \ + $(use_enable debug prof) \ + $(use_enable debug gcov) \ + $(use_enable imagemagick magick-compat) \ + $(use_with threads) \ + $(use_with modules) \ + --with-quantum-depth=${depth} \ + --without-frozenpaths \ + $(use_with cxx magick-plus-plus) \ + $(use_with perl) \ + --with-perl-options=INSTALLDIRS=vendor \ + $(use_with bzip2 bzlib) \ + $(use_with postscript dps) \ + $(use_with fpx) \ + --without-gslib \ + $(use_with jbig) \ + $(use_with webp) \ + $(use_with jpeg) \ + $(use_with jpeg2k jp2) \ + --without-lcms \ + $(use_with lcms lcms2) \ + $(use_with lzma) \ + $(use_with png) \ + $(use_with tiff) \ + $(use_with truetype ttf) \ + $(use_with wmf) \ + --with-fontpath="${EPREFIX}"/usr/share/fonts \ + --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \ + --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \ + $(use_with svg xml) \ + $(use_with zlib) \ + $(use_with X x) +} + +src_compile() { + default + use perl && emake perl-build +} + +src_test() { + unset DISPLAY # some perl tests fail when DISPLAY is set + default +} + +src_install() { + default + + if use perl; then + emake -C PerlMagick DESTDIR="${D}" install + find "${ED}" -type f -name perllocal.pod -exec rm -f {} + + find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + + fi + + find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + +} diff --git a/media-gfx/graphicsmagick/metadata.xml b/media-gfx/graphicsmagick/metadata.xml new file mode 100644 index 000000000000..09f36fa05818 --- /dev/null +++ b/media-gfx/graphicsmagick/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>graphics</herd> + <longdescription lang="en"> + This is a port of GraphicsMagick(TM), the "swiss army knife" of + image processing. It provides a robust collection of tools and libraries + which support reading, writing, and manipulating an image in over 88 major + formats including formats like DPX, GIF, JPEG, JPEG-2000, PNG, PDF, + SVG and TIFF. + The program is the fork of a better-known ImageMagick (5.5.2), which + emphasizes end-user and API-stabilities. +</longdescription> + <use> + <flag name="fpx">Enable FlashPix support with <pkg>media-libs/libfpx</pkg></flag> + <flag name="modules">Compile graphicsmagick with dynamically loadable modules</flag> + <flag name="q16">Set storage quantum size to 16 (~2*memory)</flag> + <flag name="q32">Set storage quantum size to 32 (~5*memory)</flag> + <flag name="webp">Enable support for webp image format</flag> + </use> + <upstream> + <remote-id type="sourceforge">graphicsmagick</remote-id> + </upstream> +</pkgmetadata> |