1 # Contributor: Arto Puranen <purcher@gmail.com>
6 pkgdesc="RPC Library much like CORBA except API is completely new and written entirely by zeroc"
8 url="http://www.zeroc.com"
10 depends=('db' 'openssl' 'expat' 'bzip2' 'mcpp>=2.7')
12 conflicts=('zeroc-ice')
14 install=('Ice.install')
15 source=(http://www.zeroc.com/download/Ice/3.3/Ice-$pkgver.tar.gz
20 cd $startdir/src/Ice-$pkgver
22 patch -R Makefile ../Makefile.patch
24 #find . -name "*.cpp" -exec sed -i "1i#include <cstring>\n#include <cstdlib>\n#include <limits.h>\n#include <memory>\n#include <db.h>" {} \;
25 #sed -i "s/memcpy/std::memcpy/" cpp/src/Slice/MD5.cpp
26 #sed -i "1i#include <memory>" cpp/include/Ice/Outgoing.h
27 #sed -i "1i#define DB_LOG_AUTOREMOVE 0x00000004" cpp/src/Freeze/SharedDbEnv.cpp
30 mkdir -p $startdir/pkg/opt/Ice-$pkgver
31 make prefix=$startdir/pkg/opt/Ice-$pkgver install
33 install -D -m755 $startdir/Ice.profile $startdir/pkg/etc/profile.d/ice.sh
35 md5sums=('0500306d9cdbc0fbb553fbb529de557a'
36 '8c987c73122b7079d8a5cdd2cc6afc0c'
37 '04d478be63b34578740a2fbf86029aff')
38 md5sums=('1f37dfcec4662fcde030553fb447d064'
39 '8c987c73122b7079d8a5cdd2cc6afc0c'
40 '04d478be63b34578740a2fbf86029aff')