On 8/30/07, Sven Schwyn <[EMAIL PROTECTED]> wrote: > Hi folks > > I'm very new to Fink and need GraphicsMagick to work with TYPO3 on a > Mac. I've therefore converted the installation guide into an .info > for Fink. However, it's surely far from perfect I guess, so hints on > how to improve it are very much apprechiated, particularly: > > 1) > I've got /sw hardcoded which causes Fink to nag. Replacing it with > @FINKPREFIX@ does not work as this is not being replaced by /sw at > build time. There seems to be missing something.
You need a PatchScript which converts @FINKPREFIX@ to %p after any patches are applied, but before the build. Something to the effect of Patchscript: sed 's|@FINKPREFIX@|%p|g' <%a/%n.patch | patch -p1 is pretty standard > > 2) > The line which temporary sets a symbolic link (sudo ln -s /sw / > Developer...) is needed for the GraphicsMagick to compile. Why is this necessary? However, > sudo asks for the password - is there a way to prevent this? > This isn't generally acceptable in a Fink package: we don't let packages do anything outside of their build directories during the build process. You're going to need to come up with a different way to do it. > 3) > The package is very OS version dependent, 10.4 in this case. Setting > the symbolic link will fail on other releases or if the Developer > Tools are not installed. Is this enough or should there be another > statement in the .info file to enforce the dependency to a specific > Mac OS X release? > There are separate trees for 10.3 and 10.4, so this doesn't have to be added to 10.3. If you tag it as Distribution: 10.4, then it won't be visible on 10.3 or 10.5 in any case. > Many thanks for your help, -sven > > > ======BEGIN====== > Info2: << > Package: graphicsmagick > Version: 1.1.8 > Revision: 1000 > GCC: 4.0 > Source: ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/ > GraphicsMagick-%v.tar.gz > Source-MD5: 437e7b6bac2e75695b3482c0b9b8c275 > SourceDirectory: GraphicsMagick-%v > BuildDepends: libjpeg, libpng3, libtiff > CompileScript: << > #!/bin/sh -ev > sudo ln -s /sw /Developer/SDKs/MacOSX10.4u.sdk/ > export CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk/ -arch > i386 -I/sw/include/" > export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk/,-L/ > sw/lib/" > ./configure --prefix=/sw --with-quantum-depth=16 --disable-dependency- > tracking --with-x=yes --x-includes=/usr/X11R6/include --x-libraries=/ > usr/X11R6/lib/ --without-perl > sudo /Developer/SDKs/MacOSX10.4u.sdk/sw > make > << > Description: Image manipulation tools like ImageMagick > InstallScript: << > #!/bin/sh -ev > make install DESTDIR=%d > << > DescDetail: << > GraphicsMagick is doing very much the same as ImageMagick, however, > the interface is undergoing less changes which made it popular with > frameworks and CMS such as TYPO3. > << > DocFiles: README.txt ChangeLog NEWS > License: GraphicsMagick License > Maintainer: Sven Schwyn <[EMAIL PROTECTED]> > Homepage: http://www.graphicsmagick.org > #end of Info2 > << > ======END====== > Moreover, I'm pretty sure that the package is going to need splitoffs for libraries and headers, and you don't have any runtime dependencies listed. -- Alexander K. Hansen akh AT finkproject DOT org Fink User Liaison and Documenter ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel