Update of /cvsroot/fink/experimental/thesin/finkinfo
In directory vz-cvs-3.sog:/tmp/cvs-serv5442

Added Files:
        imagemagick.info imagemagick2.info imagemagick2.patch 
Log Message:
Add my custom imagemagick which allows a truely nox install and fixes MANY 
packaging problems in the current very broken version

--- NEW FILE: imagemagick2.info ---
Info2: <<
Package: imagemagick2%type_pkg[-nox]
Type: -nox (boolean)
Version: 6.5.8.10
Revision: 102
GCC: 4.0
Source: mirror:sourceforge:imagemagick/legacy/ImageMagick-6.5.8-10.tar.gz
Source-MD5: 6f9abe829e718a04720cc4f9ea4f8606
SourceDirectory: ImageMagick-6.5.8-10
PatchFile: imagemagick2.patch
PatchFile-MD5: 466d567dadf72e5fb81b175d21d0e9a3
BuildDepends: <<
 fink-package-precedence, lcms (>= 1.11-1), libtiff (>= 3.6.1-3), libjasper.1 
(>= 1.900.1-1), libpng14, libdjvulibre21-dev (>= 3.5.21-1003), libjpeg8, 
fontconfig2-dev (>= 2.4.1-1), bzip2-dev (>= 1.0.2-2), libxml2 (>= 2.6.30-1), 
libiconv-dev (>= 1.11-1), freetype219 (>= 2.3.5-1), libjbig, libtool2,
 (%type_raw[-nox] = .) openexr-dev,
 (%type_raw[-nox] = .) cairo (>= 1.6-1),
 (%type_raw[-nox] = .) glib2-dev (>= 2.14.0-1),
 (%type_raw[-nox] = .) glitz,
 (%type_raw[-nox] = .) gtk+2-dev (>= 2.12.0-1),
 (%type_raw[-nox] = .) libcroco3 (>= 0.6.0-11),
 (%type_raw[-nox] = .) libgettext8-dev,
 (%type_raw[-nox] = .) libgsf1.114-dev,
 (%type_raw[-nox] = .) librsvg2 (>= 2.20.0-1),
 (%type_raw[-nox] = .) libwmf (>= 0.2.8.4-2),
 (%type_raw[-nox] = .) pango1-xft2-ft219-dev (>= 1.18.4-4),
 (%type_raw[-nox] = .) pixman (>= 0.10.0-1),
 (%type_raw[-nox] = .) x11-dev,
 (%type_raw[-nox] = .) xft2-dev,
 pkgconfig (>= 0.21-1), fink (>= 0.24.12)
<<
Depends: <<
 %N-shlibs (= %v-%r), 
 lcms-shlibs (>= 1.11-1), libtiff-shlibs (>= 3.6.1-3), libjasper.1-shlibs (>= 
1.900.1-1), libpng14-shlibs, libdjvulibre21-shlibs (>= 3.5.21-1003), 
libjpeg8-shlibs, fontconfig2-shlibs (>= 2.4.1-1), bzip2-shlibs (>= 1.0.2-2), 
libxml2-shlibs (>= 2.6.30-1), libiconv (>= 1.11-1), freetype219-shlibs (>= 
2.3.5-1), libjbig-shlibs, libtool2-shlibs,
 (%type_raw[-nox] = .) openexr,
 (%type_raw[-nox] = .) libwmf-shlibs (>= 0.2.8.4-2),
 (%type_raw[-nox] = .) x11-shlibs,
 ghostscript | ghostscript%type_pkg[-nox]
<<
Conflicts: imagemagick (<< 6.5.8.10-102), imagemagick-nox (<< 6.5.8.10-102), 
graphicsmagick-imagemagick-compat, imagemagick2, imagemagick2-nox, 
imagemagick-nox2
Replaces: imagemagick (<< 6.5.8.10-102), imagemagick-nox (<< 6.5.8.10-102), 
imagemagick10-shlibs, imagemagick-nox10-shlibs, imagemagick10-dev (<= 
1:6.3.5-1006), graphicsmagick-imagemagick-compat, imagemagick2, 
imagemagick2-nox, imagemagick-nox2
Provides: imagemagick, imagemagick-nox

PatchScript: <<
        sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
        perl -pi -e 's,\@OPENEXR_LIBS\@,$& -lstdc++,' Makefile.in
        perl -pi -e 's,quantizeInfo =,quantizeInfo.dither =,' 
Magick++/lib/Magick++/STL.h
<<
ConfigureParams: <<
 --without-perl --mandir='${prefix}/share/man' --enable-libtool-verbose 
--with-bzlib --without-dps --without-fpx \
 --with-gs-font-dir=%p/share/ghostscript/fonts --without-gslib --without-gvc 
--with-jpeg --with-lcms \
 --without-fftw --without-lqr --with-jbig \
 --with-magick-plus-plus --with-png --with-tiff --with-xml --with-zlib 
--with-djvu --with-fontconfig --enable-hdri \
 (%type_raw[-nox] = .) --with-x (%type_raw[-nox] = .) --with-rsvg 
(%type_raw[-nox] = .) --x-includes=/usr/X11R6/include (%type_raw[-nox] = .) 
--x-libraries=/usr/X11R6/lib \
 (%type_raw[-nox] = -nox) --without-x (%type_raw[-nox] = -nox) --without-rsvg 
(%type_raw[-nox] = -nox) --without-wmf \
 --enable-dependency-tracking
<<
NoSetLDFLAGS: true
SetLDFLAGS: -L%p/lib/fontconfig2/lib -L%p/lib/freetype219/lib -L%p/lib
NoSetCPPFLAGS: true
SetCPPFLAGS: -I%p/lib/fontconfig2/include -I%p/lib/freetype219/include 
-I%p/lib/freetype219/include/freetype2 -I%p/include
CompileScript: <<
 #!/bin/sh -ev
 export PATH=%p/lib/freetype219/bin:%p/lib/fontconfig2/bin:$PATH
 if [ "%type_raw[-nox]" == -nox ]; then
   export 
PKG_CONFIG_PATH="%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
 else
   export 
PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
 fi
 if [ "%type_raw[-nox]" == -nox ]; then
   PKG_CONFIG=%p/bin/pkg-config ac_cv_func_poll=no ./configure %c
 else
   LDFLAGS="-L%p/lib/pango-ft219/lib $LDFLAGS" 
CPPFLAGS="-I%p/lib/pango-ft219/include $CPPFLAGS" PKG_CONFIG=%p/bin/pkg-config 
ac_cv_func_poll=no ./configure %c
 fi
 make CCLD=g++
 fink-package-precedence --prohibit-bdep %n .
<<
Description: Image manipulation tools
InstallScript: <<
 #!/bin/sh -ev
 make install DESTDIR=%d
 if [ "%type_raw[-nox]" == "." ]; then
 perl -pi -e "s|-lXext -lSM -lICE -lX11||g" %i/lib/libMagick*la
 perl -pi -e "s|-L/usr/X11R6/lib||g" %i/lib/libMagick*la
 fi
 perl -pi -e 's,-L%p/lib ,,g; s, -L%p/lib/freetype219/lib,,' %i/bin/*-config 
 /bin/rm -f %i/lib/libltdl*
 if [ "%type_raw[-nox]" == "-nox" ]; then
  /bin/rm -f %i/lib/*.la
 else
  perl -pi -e "s/dependency_libs=.*$/dependency_libs=''/" %i/lib/*.la
 fi
<<
DescDetail: <<
 ImageMagick is a robust collection of tools and libraries to read, 
 write, and manipulate an image in many image formats (over 68 major formats)
 including popular formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF.
 With ImageMagick you can create images dynamically, making it 
 suitable for Web applications. You can also resize, rotate, sharpen,
 color reduce, or add special effects to an image and save your
 completed work in the same or a different image format.
<<
DescPackaging: <<
 In version 6.3.8-1001 and later, the imagemagick-nox package no longer
 builds shared libraries and no longer has a -shlibs splitoff.  There is
 still a -dev splitoff, in case another package wishes to link to the
 static library.  Moreover, imagemagick now provides imagemagick-nox, rather
 than vice versa.

 Also in version 6.3.8-1001 and later, we have moved the plugins directory
 %p/lib/ImageMagick-%v from the -shlibs splitoff to the main package,
 and for this reason, the main package must Replace older versions of the
 splitoff packages.
<<
DescPort: <<
 --without-perl is the correct option for building perlmagick as a 
 separate package (which we do).

 configure has trouble finding pkg-config, so we tell it where to look.

 Fink's graphviz package is very out of date, and doesn't contain the
 libgvc library which imagemagick wants.  (Disabled for now.)

 In version >- 5.5.6-23, we get around the libpoll problem in OS X 10.3 by
 fooling ./configure into thinking that poll is not present.

 We take fontconfig (and hence freetype) support from fink:
 1) in order to avoid x11 in the -nox version, 
 2) for the x11-version, because imagemagick wants
 version >= 2.4.1 but Apple's X11 only supplies version 2.1.0,
 If it was just for xorg, it would have been more economical
 as a matter of footprint to use xorg's fontconfig and freetype.
<<
SplitOff: <<
 Package: %N-shlibs
 Conflicts: imagemagick2-shlibs, imagemagick2-nox-shlibs
 Replaces: imagemagick2-shlibs, imagemagick2-nox-shlibs
 Depends: <<
 lcms-shlibs (>= 1.11-1), libtiff-shlibs (>= 3.6.1-3), libjpeg8-shlibs, 
fontconfig2-shlibs (>= 2.4.1-1), bzip2-shlibs (>= 1.0.2-2), freetype219-shlibs 
(>= 2.3.5-1), libtool2-shlibs,
 (%type_raw[-nox] = .) fltk-x11-shlibs (>= 1.1.7-1003),
 (%type_raw[-nox] = .) x11-shlibs
 <<
  Files: lib/lib*.*.dylib
  Shlibs: <<
   %p/lib/libMagick++.2.dylib   3.0.0 %n (>= 6.5.7-1)
   %p/lib/libMagickWand.2.dylib 3.0.0 %n (>= 6.5.7-1)
   %p/lib/libMagickCore.2.dylib 3.0.0 %n (>= 6.5.7-1)
  <<
  DocFiles: LICENSE README.txt ChangeLog NEWS.txt
<<
SplitOff2: <<
 Package: %N-dev
 Depends: %N-shlibs (= %v-%r)
 Conflicts: imagemagick-dev, imagemagick-nox-dev, imagemagick10-dev, 
imagemagick-nox10-dev, imagemagick1-dev, imagemagick-nox1-dev, 
imagemagick2-dev, imagemagick-nox2-dev, imagemagick2-nox-dev
 Replaces: imagemagick-dev, imagemagick-nox-dev, imagemagick10-dev, 
imagemagick-nox10-dev, imagemagick1-dev, imagemagick-nox1-dev, 
imagemagick2-dev, imagemagick-nox2-dev, imagemagick2-nox-dev
 Files: include lib/lib*.* lib/pkgconfig %p/bin/*-config
 BuildDependsOnly: True
 DocFiles: LICENSE README.txt ChangeLog NEWS.txt
<<
SplitOff3: <<
 Package: %N-svg
 Conflicts: imagemagick-svg, imagemagick2-svg, imagemagick2-nox-svg
 Replaces: imagemagick-svg, imagemagick2-svg, imagemagick2-nox-svg
 Depends: <<
  imagemagick2-shlibs | imagemagick2-nox-shlibs, lcms-shlibs (>= 1.11-1), 
libtiff-shlibs (>= 3.6.1-3), libjpeg8-shlibs, fontconfig2-shlibs (>= 2.4.1-1), 
bzip2-shlibs (>= 1.0.2-2), freetype219-shlibs (>= 2.3.5-1), libxml2-shlibs (>= 
2.6.30-1), libtool2-shlibs,
  (%type_raw[-nox] = .) cairo-shlibs (>= 1.6-1),
  (%type_raw[-nox] = .) glib2-shlibs (>= 2.14.0-1),
  (%type_raw[-nox] = .) gtk+2-shlibs (>= 2.12.0-1),
  (%type_raw[-nox] = .) libcroco3-shlibs (>= 0.6.0-11),
  (%type_raw[-nox] = .) libgettext8-shlibs,
  (%type_raw[-nox] = .) libgsf1.114-shlibs,
  (%type_raw[-nox] = .) librsvg2-shlibs (>= 2.20.0-1),
  (%type_raw[-nox] = .) pango1-xft2-ft219-shlibs (>= 1.18.4-4),
  %N (= %v-%r)
 <<
 Files: lib/ImageMagick-6.5.8/modules-Q16/coders/svg.*
 DocFiles: LICENSE README.txt ChangeLog NEWS.txt
<<
DocFiles: LICENSE README.txt ChangeLog NEWS.txt
License: BSD
Maintainer: Todai Fink Team <[email protected]>
Homepage: http://www.imagemagick.org/
#end of Info2
<<

--- NEW FILE: imagemagick.info ---
Package: imagemagick
Version: 6.5.8.10
Revision: 102
Depends: imagemagick2 | imagemagick2-nox
Source: none
CompileScript: echo
InstallScript: <<
echo placeholder > %b/.placeholder
<<
DocFiles: .placeholder
Description: Placeholder package for smooth upgrade path
License: BSD
Maintainer: Todai Fink Team <[email protected]>
Homepage: http://www.imagemagick.org/

--- NEW FILE: imagemagick2.patch ---
--- ImageMagick-6.5.8-2/configure.orig  2009-11-28 21:53:06.000000000 +0100
+++ ImageMagick-6.5.8-2/configure       2011-03-22 13:22:20.000000000 +0900
@@ -7043,12 +7043,12 @@
 
 case "$host" in
 *darwin* | *-macos10*)
-  if test -d /opt/local ; then
+  if test -d @PREFIX@ ; then
+    CPPFLAGS="$CPPFLAGS -I@PREFIX@/include"
+    LDFLAGS="$LDFLAGS -L@PREFIX@/lib"
+  elif test -d /opt/local ; then
     CPPFLAGS="$CPPFLAGS -I/opt/local/include"
     LDFLAGS="$LDFLAGS -L/opt/local/lib"
-  elif test -d /sw ; then
-    CPPFLAGS="$CPPFLAGS -I/sw/include"
-    LDFLAGS="$LDFLAGS -L/sw/lib"
   fi
     # Check whether --enable-osx-universal-binary was given.
 if test "${enable_osx_universal_binary+set}" = set; then :
--- ImageMagick-6.5.8-2/www/advanced-unix-installation.html.orig        
2009-11-28 21:52:05.000000000 +0100
+++ ImageMagick-6.5.8-2/www/advanced-unix-installation.html     2011-03-22 
13:17:00.000000000 +0900
@@ -539,7 +539,7 @@
        <p class='crt'><span class="crtprompt"> $magick&gt; </span><span 
class='crtin'>make</span></p>    <p>Install ImageMagick:</p>
        <p class='crt'><span class="crtprompt"> $magick&gt; </span><span 
class='crtin'>sudo make install</span></p>  <p>To verify your install, type</p>
 
-  <p class='crt'><span class="crtprompt"> $magick&gt; </span><span 
class='crtin'>/opt/local/bin/identify -list font</span></p>
+  <p class='crt'><span class="crtprompt"> $magick&gt; </span><span 
class='crtin'>@PREFIX@/bin/identify -list font</span></p>
   <p>to list all the fonts ImageMagick knows about.</p>
          <p>To test the ImageMagick GUI, in a new shell, type:</p>
        <p class='crt'><span class="crtprompt"> $magick&gt; </span><span 
class='crtin'>display -display :0</span></p></div>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to