the Fink project is an effort to port
popular Unix programs to Mac OS X
Info4: <<
Package: libssh2.1%type_pkg[-64bit]
Version: 1.4.1
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 implementing the SSH2 protocol
DescDetail: libssh2 is a C library that implements the SSH2 protocol.
Maintainer: Daniel Johnson
Homepage: http://www.libssh2.org
License: BSD
DescPackaging: <<
The actual name of this library is libssh2; the "2" has
nothing to do with the version number. The major version
number is actually 1.
No longer build static libs.
Packages depending on libssh2.1 no longer need to depend on its dependencies,
just Depend on libssh2.1-shlibs and BuildDepend on libssh2.1.
Patch to not build example programs.
<<
Source: http://www.libssh2.org/download/libssh2-%v.tar.gz
Source-MD5: b94106e046af37fdc0734e487842fe66
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
BuildDepends: openssl100%type_pkg[-64bit]-dev (>= 1.0.1a-1), fink (>= 0.26.2)
BuildDependsOnly: true
Conflicts: libssh2, libssh2.1, libssh2.1-64bit
Replaces: libssh2, libssh2.1, libssh2.1-64bit
PatchScript: <<
# Don't build example programs
perl -pi -e 's/^SUBDIRS = src example tests docs/SUBDIRS = src tests docs/' Makefile.in
<<
SetCFLAGS: -Os
ConfigureParams: --libdir='${prefix}/%lib' --with-openssl=%p --with-libz=/usr --disable-dependency-tracking --disable-static F77=no CXX=no
CompileScript: <<
#!/bin/bash -ev
if [ "%type_raw[-64bit]" == "-64bit" ]; then
export CC="gcc -m64"
fi
%{default_script}
<<
InstallScript: <<
make install DESTDIR=%d
<<
DocFiles: AUTHORS ChangeLog COPYING INSTALL NEWS README
SplitOff: <<
Package: %N-shlibs
Depends: openssl100%type_pkg[-64bit]-shlibs (>= 1.0.1a-1), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Files: %lib/libssh2.1*dylib
Shlibs: %p/%lib/libssh2.1.dylib 2.0.0 %n (>= 0.14.99-1) %type_num[-64bit]
DocFiles: AUTHORS ChangeLog COPYING INSTALL NEWS README
<<
# One test fails when built with fink, but passes outside fink.
# It doesn't seem possible to start sshd properly within TestScript.
# libcurl4 has the same issue.
InfoTest: <<
TestScript: make check || exit 1
<<
<<