2011-11-01 03:27:00 +01:00
|
|
|
# Template file for 'Ice'
|
|
|
|
pkgname=Ice
|
|
|
|
version=3.4.2
|
2012-05-23 08:14:33 +02:00
|
|
|
revision=5
|
2012-02-06 17:34:28 +01:00
|
|
|
build_wrksrc=cpp
|
2011-11-01 03:27:00 +01:00
|
|
|
homepage="http://www.zeroc.com"
|
2012-05-24 12:00:22 +02:00
|
|
|
subpackages="lib$pkgname $pkgname-devel"
|
|
|
|
# XXX: other language bindings
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="mcpp-devel db-devel expat-devel openssl-devel"
|
2011-11-01 03:27:00 +01:00
|
|
|
short_desc="The Internet Communications Engine (Ice)"
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
2011-11-01 06:34:09 +01:00
|
|
|
license="GPL-2, ICE"
|
2012-05-24 12:00:22 +02:00
|
|
|
distfiles="${homepage}/download/Ice/3.4/${pkgname}-${version}.tar.gz"
|
2011-11-01 03:27:00 +01:00
|
|
|
checksum=dcf0484495b6df0849ec90a00e8204fe5fe1c0d3882bb438bf2c1d062f15c979
|
|
|
|
long_desc="
|
|
|
|
The Internet Communications Engine (Ice) is a modern object-oriented toolkit
|
|
|
|
that enables you to build distributed applications with minimal effort. Ice
|
|
|
|
allows you to focus your efforts on your application logic, and it takes care
|
|
|
|
of all interactions with low-level network programming interfaces. With Ice,
|
|
|
|
there is no need to worry about details such as opening network connections,
|
|
|
|
serializing and deserializing data for network transmission, or retrying
|
|
|
|
failed connection attempts (to name but a few of dozens of such low-level
|
|
|
|
details)."
|
|
|
|
|
2012-02-06 17:00:35 +01:00
|
|
|
do_configure() {
|
2011-11-01 03:27:00 +01:00
|
|
|
sed -i -e "s|^#OPTIMIZE|OPTIMIZE|" config/Make.rules
|
|
|
|
sed -i -e "s|x)/config|x)/lib/Ice/config|" config/Make.rules
|
2011-11-01 07:13:00 +01:00
|
|
|
sed -i '/^embedded_runpath_prefix*/d' config/Make.rules
|
2011-11-01 03:27:00 +01:00
|
|
|
sed -i -e "s|test demo||" Makefile
|
|
|
|
}
|
|
|
|
|
2012-02-06 17:00:35 +01:00
|
|
|
do_build() {
|
2012-05-24 12:00:22 +02:00
|
|
|
make prefix=/usr CXXFLAGS="$CXXFLAGS -fPIC -DPIC -fpermissive" ${makejobs}
|
2011-11-01 03:27:00 +01:00
|
|
|
}
|
|
|
|
|
2012-02-06 17:00:35 +01:00
|
|
|
do_install() {
|
2011-11-08 11:56:17 +01:00
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
2011-11-01 06:34:09 +01:00
|
|
|
vmkdir usr/lib
|
|
|
|
cd ${DESTDIR}/usr && ln -s lib lib64
|
2012-05-24 12:00:22 +02:00
|
|
|
cd ${wrksrc}/${build_wrksrc}
|
2011-11-01 06:34:09 +01:00
|
|
|
fi
|
|
|
|
make prefix=${DESTDIR}/usr install
|
|
|
|
[ -h ${DESTDIR}/usr/lib64 ] && rm -f ${DESTDIR}/usr/lib64
|
|
|
|
|
|
|
|
vmkdir usr/share/licenses/${pkgname}
|
2011-11-01 03:46:02 +01:00
|
|
|
mv ${DESTDIR}/usr/slice ${DESTDIR}/usr/share
|
|
|
|
rm ${DESTDIR}/usr/LICENSE
|
2011-11-01 06:34:09 +01:00
|
|
|
mv ${DESTDIR}/usr/ICE_LICENSE \
|
|
|
|
${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE
|
2011-11-01 07:13:00 +01:00
|
|
|
|
|
|
|
# remove unused cruft
|
|
|
|
rm -f ${DESTDIR}/usr/lib/*.class
|
2011-11-01 03:27:00 +01:00
|
|
|
}
|