void-packages/srcpkgs/Ice/template

68 lines
2 KiB
Text
Raw Normal View History

# Template file for 'Ice'
pkgname=Ice
2013-05-09 15:00:06 +00:00
version=3.5.0
2013-05-10 05:20:57 +00:00
revision=2
build_wrksrc=cpp
homepage="http://www.zeroc.com"
2012-05-24 10:00:22 +00:00
# XXX: other language bindings
2013-05-09 14:26:34 +00:00
makedepends="mcpp-devel db-devel>=5.3 expat-devel openssl-devel"
short_desc="The Internet Communications Engine (Ice)"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-2, ICE"
2013-05-09 15:00:06 +00:00
distfiles="${homepage}/download/Ice/3.5/${pkgname}-${version}.tar.gz"
checksum=583d4a819d50ad8b79b1e9ad45abfa3078f981486271ca8cd9ede8fa420ff575
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)."
do_configure() {
sed -i -e "s|^#OPTIMIZE|OPTIMIZE|" config/Make.rules
sed -i -e "s|x)/config|x)/lib/Ice/config|" config/Make.rules
sed -i '/^embedded_runpath_prefix*/d' config/Make.rules
sed -i -e "s|test demo||" Makefile
}
do_build() {
2012-05-24 10:00:22 +00:00
make prefix=/usr CXXFLAGS="$CXXFLAGS -fPIC -DPIC -fpermissive" ${makejobs}
}
do_install() {
if [ "$XBPS_MACHINE" = "x86_64" ]; then
vmkdir usr/lib
cd ${DESTDIR}/usr && ln -s lib lib64
2012-05-24 10:00:22 +00:00
cd ${wrksrc}/${build_wrksrc}
fi
make prefix=${DESTDIR}/usr install
[ -h ${DESTDIR}/usr/lib64 ] && rm -f ${DESTDIR}/usr/lib64
vmkdir usr/share/licenses/${pkgname}
mv ${DESTDIR}/usr/slice ${DESTDIR}/usr/share
rm ${DESTDIR}/usr/LICENSE
mv ${DESTDIR}/usr/ICE_LICENSE \
${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE
# remove unused cruft
rm -f ${DESTDIR}/usr/lib/*.class
}
libIce_package() {
short_desc+=" - Runtime libraries"
pkg_install() {
vmove usr/lib
}
}
Ice-devel_package() {
depends="libIce>=$version Ice>=$version"
short_desc+=" - Development files"
pkg_install() {
2013-04-16 09:06:16 +00:00
vmove usr/include
}
}