dclib1-shlibs stable port information

Package: dclib1-shlibs
Version: 0.3.19
Revision: 7
Distribution: 10.5, 10.6
Description: Direct Connect protocol shared library
License: GPL
Maintainer: Hanspeter Niederstrasser
Depends: <<
bzip2-shlibs,
libiconv,
libxml2-shlibs
<<
BuildDepends: <<
bzip2-dev,
fink (>= 0.24.12),
libiconv-dev,
libxml2,
system-openssl-dev
<<
Source: mirror:sourceforge:wxdcgui/dclib-%v.tar.bz2
Source-MD5: 89b53d8a1a1bceaef90e931a48e8a04f
PatchFile: %n.patch
PatchFile-MD5: 79fb83796eaeb386eb7fda6a129e8787
PatchScript: <<
/usr/bin/sed 's|@PREFIX@|%p|g' <%{PatchFile} | /usr/bin/patch -p1
### need to add new dirs if they're added in the future
/usr/bin/perl -pi -e 's,-rdynamic,,g;' configure dclib/{,core,gnulib,hash}/Makefile.in
### '-undefined suppress' is also a no-no
# no longer present on 0.3.19, so commented out
#/usr/bin/perl -pi -e 's,-undefined suppress,,g;' `/usr/bin/grep -lr 'undefined suppress' .`
### place SSL_LDFLAGS ahead of some other %p/lib source
/usr/bin/perl -pi -e 's,\$\(XML_LIBS\) \$\(SSL_LDFLAGS\),\$\(SSL_LDFLAGS\) \$\(XML_LIBS\),g;' dclib/{,core,gnulib,hash}/Makefile.in
<<
SetCFLAGS: -I%p/lib/system-openssl/include
SetCPPFLAGS: -D_DARWIN_C_SOURCE
NoSetLDFLAGS: true
SetLDFLAGS: -L%p/lib/system-openssl/lib
ConfigureParams: <<
--disable-dependency-tracking
<<
GCC: 4.0
CompileScript: <<
#!/bin/sh -ev
export PKG_CONFIG_PATH=%p/lib/system-openssl/lib/pkgconfig
./configure %c
/usr/bin/make -w
<<
InstallScript: <<
/usr/bin/make -w install DESTDIR=%d
/bin/rm -r %i/include %i/lib/libdc.a %i/lib/libdc.la %i/lib/pkgconfig %i/lib/libdc.dylib
<<
DocFiles: AUTHORS ChangeLog COPYING INSTALL NEWS README
Shlibs: <<
%p/lib/libdc.1.dylib 2.0.0 %n (>= 0.3.19-1)
<<
Homepage: http://wxdcgui.sourceforge.net/
DescDetail: <<
dclib is a direct connect library for Direct Connect (DC) clients.
<<
DescPackaging: <<
Links to system-openssl to remove variants and clarify any
lingering licensing issues.

All compile time files removed to avoid pkgs using it.
<<

dclib1-shlibs stable port .patch

diff -Naur dclib-0.3.19.orig/dclib/core/cdir.cpp dclib-0.3.19/dclib/core/cdir.cpp
--- dclib-0.3.19.orig/dclib/core/cdir.cpp 2008-08-16 13:13:31.000000000 +0100
+++ dclib-0.3.19/dclib/core/cdir.cpp 2008-08-16 13:14:05.000000000 +0100
@@ -20,22 +20,10 @@
#endif

#ifndef WIN32
-#include
-#ifdef HAVE_SYS_PARAM_H
-#include
-#endif
-#include
#include
#include
-#ifdef HAVE_SYS_VFS_H
-#include
-#endif
-#ifdef HAVE_SYS_MOUNT_H
-#include
-#endif
-#ifdef HAVE_SYS_PARAM_H
-#include
-#endif
+#include
+#include
#endif

#include

dclib1-shlibs _unstable_ port .patch