qca2 stable port information

Info3: <<
Package: qca2-%type_pkg[qca]
Version: 2.0.3
Revision: 4
Description: Cross-platform Crypto API
Type: qca (x11 mac)
License: LGPL
Maintainer: Benjamin Reed

Depends: <<
%N-shlibs (= %v-%r),
libiconv,
libpng15-shlibs,
qt4-base-%type_pkg[qca]-qtcore-shlibs,
qt4-base-%type_pkg[qca]-qtgui-shlibs,
qt4-base-%type_pkg[qca]-qtnetwork-shlibs
<<
BuildDepends: <<
fink (>= 0.30.0-1),
(%type_pkg[qca] = x11) glib2-dev (>= 2.22.0-1),
(%type_pkg[qca] = x11) x11-dev,
libgettext8-dev,
libiconv-dev (>= 1.12-3),
libpng15 (>= 1.5.2-1),
system-openssl-dev,
qt4-base-%type_pkg[qca] (>= 4.7.3-1)
<<
BuildDependsOnly: true
GCC: 4.0

Source: http://delta.affinix.com/download/qca/2.0/qca-%v.tar.bz2
Source-MD5: fc15bd4da22b8096c51fcfe52d2fa309
PatchFile: qca2.patch
PatchFile-MD5: a7fccb386d0011775c1884112619dfc7

UseMaxBuildJobs: true
CompileScript: <<
#!/bin/sh -ev

QTDIR="%p/lib/qt4-%type_pkg[qca]"
export PATH="$QTDIR/bin:$PATH"
./configure --prefix="%p/opt/qca2/%type_pkg[qca]" --no-framework --release --no-separate-debug-info
make
<<

InstallScript: <<
#!/bin/sh -ev

make -j1 install INSTALL_ROOT="%d"
QCALIBDIR="%p/opt/qca2/%type_pkg[qca]/lib"
install_name_tool -id $QCALIBDIR/libqca.2.dylib "%d/$QCALIBDIR/libqca.%v.dylib"
install_name_tool -change libqca.2.dylib $QCALIBDIR/libqca.2.dylib "%d/$QCALIBDIR/../bin/qcatool2"
perl -pi -e 's,-lqca_debug,-lqca,g' %i/lib/qt4-%type_pkg[qca]/mkspecs/features/crypto.prf
install -d -m 755 %i/share/doc/%N
find examples -name Makefile -exec rm -rf {} \;
mv apidocs/* examples %i/share/doc/%N/
<<
DocFiles: COPYING INSTALL README TODO
SplitOff: <<
Package: %N-shlibs
Description: Shared libraries for QCA
Depends: <<
libiconv,
libpng15-shlibs (>= 1.5.2-1),
qt4-base-%type_pkg[qca]-qtcore-shlibs (>= 4.7.3-1)
<<
Recommends: %N (>= %v-%r)
DocFiles: COPYING
Files: opt/qca2/%type_pkg[qca]/lib/libqca.2*.dylib
Shlibs: %p/opt/qca2/%type_pkg[qca]/lib/libqca.2.dylib 2.0.0 %n (>= 2.0.2-1)
<<

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!
<<
<<

qca2 stable port .patch

diff -Nurd qca-2.0.2/configure qca-2.0.2-new/configure
--- qca-2.0.2/configure 2009-04-29 18:16:15.000000000 -0400
+++ qca-2.0.2-new/configure 2009-06-06 22:39:10.000000000 -0400
@@ -977,7 +977,7 @@
{
bundled = false;

-#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
+#if defined(Q_OS_WIN) || defined(Q_OS_MAC) || defined(Q_OS_DARWIN)
// use built-in
return true;
#else
@@ -1047,7 +1047,7 @@
{
#if defined(Q_OS_WIN)
return "using Windows built-in";
-#elif defined(Q_OS_MAC)
+#elif defined(Q_OS_MAC) || defined(Q_OS_DARWIN)
return "using Mac built-in";
#else
if(success)
diff -Nurd qca-2.0.2/src/src.pro qca-2.0.2-new/src/src.pro
--- qca-2.0.2/src/src.pro 2009-04-26 15:10:44.000000000 -0400
+++ qca-2.0.2-new/src/src.pro 2009-06-06 22:39:10.000000000 -0400
@@ -70,20 +70,15 @@
$$QCA_CPP/support/qpipe.cpp \
$$QCA_CPP/support/console.cpp

-unix:!mac: {
- SOURCES += $$QCA_CPP/qca_systemstore_flatfile.cpp
-}
windows: {
SOURCES += $$QCA_CPP/qca_systemstore_win.cpp
LIBS += -lcrypt32
}
-mac: {
- SOURCES += $$QCA_CPP/qca_systemstore_mac.cpp
- LIBS += -framework Carbon -framework Security
- QMAKE_LFLAGS_SONAME = -Wl,-install_name,"$$LIBDIR/"
+SOURCES += $$QCA_CPP/qca_systemstore_mac.cpp
+LIBS += -framework Carbon -framework Security
+QMAKE_LFLAGS_SONAME = -Wl,-install_name,"$$LIBDIR/"

- QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3
-}
+QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3

mac:lib_bundle: {
QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET

qca2 _unstable_ port .patch