qca-10.6 stable port information

Package: qca
Version: 1.0
Revision: 1024
Distribution: 10.6
Depends: %N-shlibs
BuildDepends: <<
fink (>= 0.28.0-1),
cyrus-sasl2-dev,
system-openssl-dev,
qt3 (>= 3.3.3-4)
<<
BuildDependsOnly: true

Source: http://delta.affinix.com/qca/qca-%v.tar.bz2
Source-MD5: ee44022eb0e5b8b5df64c62630f6e6b6
Source2: http://delta.affinix.com/qca/qca-tls-%v.tar.bz2
Source2-MD5: 886b1f60fc31de3b1a0bd93281e27b73
Source3: http://delta.affinix.com/qca/qca-sasl-%v.tar.bz2
Source3-MD5: 2e324cb45706f37a8d2b196f43428023
PatchFile: %n.patch
PatchFile-MD5: fb804ac32c99a1ebb17e8e9ad44d8e84
GCC: 4.0

PatchScript: <<
cd ..; patch -p0 < %{PatchFile}
<<

CompileScript: <<
#!/bin/sh -ex

if [ -x /usr/bin/gcc-4.2 ]; then
export CC=gcc-4.2 CXX=g++-4.2 CPP=cpp-4.2
fi

export lt_cv_sys_max_cmd_len=65536
./configure --prefix=%p --qtdir=%p
make

pushd ../qca-sasl-%v
./configure --with-sasl-inc=%p/include --with-sasl-lib=%p/lib --qtdir=%p
make
popd

pushd ../qca-tls-%v
./configure --qtdir=%p --with-openssl-inc=%p/lib/system-openssl/include --with-openssl-lib=%p/lib/system-openssl/lib
make LIBS='-L%p/lib/system-openssl/lib -lssl -lcrypto -L%p/lib -lqt-mt $(SUBLIBS)'
popd
<<
InstallScript: <<
#!/bin/sh -ex

install -d -m 755 %i/include/qt
install -d -m 755 %i/lib
install -d %i/lib/qt3-plugins/crypto
install -d -m 755 %i/share/doc/%N/

mv *.dylib %i/lib/
mv src/*.h %i/include/qt/
cp -pR examples %i/share/doc/%N/

install -c -m 755 ../qca-*-%v/*.so %i/lib/qt3-plugins/crypto/
<<
SplitOff: <<
Package: %N-shlibs
Depends: cyrus-sasl2-shlibs, qt3-shlibs (>= 3.3.0-1)
Files: <<
lib/libqca.*.dylib
lib/qt3-plugins
<<
Shlibs: %p/lib/libqca.1.dylib 1.0.0 %n (>= 1.0-1)
DocFiles: COPYING*
<<
DocFiles: COPYING INSTALL README TODO
Description: Qt Cryptographic Architecture
DescDetail: <<
Taking a hint from the similarly-named Java Cryptography Architecture,
QCA aims to provide a straightforward and cross-platform crypto API,
using Qt datatypes and conventions. QCA separates the API from the
implementation, using plugins known as Providers. The advantage of
this model is to allow applications to avoid linking to or explicitly
depending on any particular cryptographic library. This allows one to
easily change or upgrade crypto implementations without even needing
to recompile the application!
<<
License: LGPL
Maintainer: Benjamin Reed
Homepage: http://delta.affinix.com/qca/