Peter,

Let me refer you to a section of the Fink Packaging Manual 
http://www.finkproject.org/doc/packaging/policy.php?phpLang=en#sharedlibs which 
explains how shared libraries are packaged in fink.  Basically, you need to use 
fink's Splitoff mechanism to divide your package into a few others.

  -- Dave


On Jun 24, 2010, at 8:05 AM, peterwong wrote:

> hello fink-devel,
> 
> i've successfully put together a package for libdmtx-0.7.2, but since this  
> is the first fink package i'm attempting to contribute, i'm sure there are  
> some problems with it. however, it did install, and it is working (for me,  
> anyhow). the .info and the .patch file are pretty small, so i'll just post  
> them here:
> 
> libdmtx.info:
>> Package: libdmtx
>> Version: 0.7.2
>> Revision: 1
>> ###
>> Source: mirror:sourceforge:%n/%n-%v.tar.gz
>> Maintainer: John Doe <[email protected]>
>> HomePage: http://www.libdmtx.org
>> License: LGPL
>> Description: Data Matrix 2D barcode software
>> Source-MD5: e23705cd9bd40b9d7cf1e7c750c67ca5
>> ###
>> BuildDependsOnly:true
>> BuildDepends: fink (>= 0.24.12)
>> ###
>> PatchFile: %n.patch
>> PatchFile-MD5: ca3c0bdb5b846b3a9f05ab31adc47a0c
>> ###
>> CompileScript: <<
>> ./configure %c
>> make
>> <<
>> InstallScript: <<
>> #! /bin/sh -ev
>> make install prefix=%i
>> <<
>> Shlibs: <<
>>      %p/lib/libdmtx.0.dylib 1.0.0 %n (>= 0.7.2-1)
>>      %p/lib/libdmtx.dylib 1.0.0 %n (>= 0.7.2-1)
>> <<
> 
> libdmtx.patch:
>> --- libdmtx-0.7.2.orig/util/common/dmtxutil.c        2010-06-24  
>> 04:10:57.000000000 -0700
>> +++ libdmtx-0.7.2/util/common/dmtxutil.c     2010-06-24 04:17:36.000000000  
>> -0700
>> @@ -5,6 +5,7 @@
>> #include <ctype.h>
>> #include <errno.h>
>> #include <assert.h>
>> +#include <sys/time.h>
>> #include "../../dmtx.h"
>> #include "dmtxutil.h"
>> 
> 
> the patch file i made based on what they'd done with the same package for  
> macports. there was one line added there, and i didn't try to build or run  
> the software without the patch. fink was also upset about libdmtx.dylib  
> being 'less specifically versioned':
> 
>> Error: Files with names less specifically versioned than ones in public  
>> Shlibs entries do not belong in this package
>>      Offending file: /sw/lib/libdmtx.dylib
> 
> and didn't really like the way i dealt with it in the Shlibs: field:
> 
>> Error: File name '/sw/lib/libdmtx.dylib' specified in Shlibs does not  
>> match install_name '/sw/lib/libdmtx.0.dylib'
>> Package looks good!
> 
> but it built and ran this way.
> 
> also, the macports portfile lists dependencies on libpng and libtiff, and  
> the source itself states that two tools that compile by default from the  
> package (dmtxread and dmtxwrite) have a dependency on IMAGEMAGICK. i  
> already had all these installed, and libpng seems to be a virtual  
> package...i'm not sure how to best deal with the Depends: field as far as  
> how specific to make the version numbers, etc.. any suggestions here?
> 
> in case anyone needs to know, i'm running:
> 
>> $ uname -a
>> Darwin mpop.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26  
>> 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386
>> 
>> $ fink --version
>> Package manager version: 0.29.11
>> Distribution version: selfupdate-rsync Tue Jun  8 03:16:00 2010, 10.6,  
>> i386
>> 
>> $ xcodebuild -version
>> Xcode 3.2.2
>> Component versions: DevToolsCore-1648.0; DevToolsSupport-1631.0
>> BuildVersion: 10M2148
> 
> and lastly, check out what this cool package does (this is the above  
> libdmtx.info file encoded into a 2d datamatrix barcode):
> http://asl.hapahaus.com/test/libdmtx_fink.png
> 
> thanks!
> 
> -peterwong
> .
> 
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit.  See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Fink-devel mailing list
> [email protected]
> http://news.gmane.org/gmane.os.apple.fink.devel
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-devel


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to