the Fink project is an effort to port
popular Unix programs to Mac OS X
Info4: <<
Package: libzip2%type_pkg[-64bit]
Version: 0.10
Revision: 1
Type: -64bit (boolean)
Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = -64bit ) i386
Distribution: ( %type_raw[-64bit] = -64bit ) 10.5, ( %type_raw[-64bit] = -64bit ) 10.6
Description: Library for handling zip archives
Maintainer: Daniel Johnson
Homepage: http://www.nih.at/libzip/
License: BSD
DescPackaging: <<
libzip is a C library for reading, creating, and modifying zip archives.
Files can be added from data buffers, files, or compressed data copied
directly from other zip archives. Changes made without closing the
archive can be reverted. The API is documented by man pages.
<<
Source: http://www.nih.at/libzip/libzip-%v.tar.bz2
Source-MD5: 663d79a9d299a61026d1860d52cdf6fc
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
BuildDepends: fink (>= 0.26.2)
BuildDependsOnly: True
Conflicts: libzip1, libzip1-64bit, libzip2, libzip2-64bit
Replaces: libzip1, libzip1-64bit, libzip2, libzip2-64bit
NoSetCPPFLAGS: True
NoSetLDFLAGS: True
SetCFLAGS: -Os
UseMaxBuildJobs: True
ConfigureParams: --disable-dependency-tracking --libdir='${prefix}/%lib' --disable-static
CompileScript: <<
#!/bin/bash -ev
if [ "%type_raw[-64bit]" == "-64bit" ]; then
export CC="gcc -m64"
fi
%{default_script}
<<
InstallScript: <<
make install DESTDIR=%d
#No need for dependency_libs in .la files if not building static libs
perl -pi -e "s/dependency_libs=.*$/dependency_libs=''/" %i/%lib/*.la
<<
DocFiles: AUTHORS LICENSE NEWS README THANKS TODO
SplitOff: <<
Package: %N-shlibs
Depends: ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Files: %lib/libzip.2*dylib
Shlibs: %p/%lib/libzip.2.dylib 4.0.0 %n (>= 0.10-1) %type_num[-64bit]
DocFiles: AUTHORS LICENSE NEWS README THANKS TODO
<<
SplitOff2: <<
Package: %N-bin
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Conflicts: libzip1-bin, libzip1-64bit-bin, libzip2-bin, libzip2-64bit-bin
Replaces: libzip1-bin, libzip1-64bit-bin, libzip2-bin, libzip2-64bit-bin
Files: bin share/man/man1
DocFiles: AUTHORS LICENSE NEWS README THANKS TODO
<<
InfoTest: <<
TestScript: <<
perl -pi -e 's|19/2|19/0|' regress/open_nonarchive.test
make check || exit 2
<<
<<
<<