2011-11-01 02:27:00 +00:00
|
|
|
# Template file for 'Ice'
|
|
|
|
pkgname=Ice
|
2014-02-20 10:34:05 +00:00
|
|
|
version=3.5.1
|
2015-03-04 15:04:30 +00:00
|
|
|
revision=7
|
2012-02-06 16:34:28 +00:00
|
|
|
build_wrksrc=cpp
|
2011-11-01 02:27:00 +00:00
|
|
|
homepage="http://www.zeroc.com"
|
2012-05-24 10:00:22 +00:00
|
|
|
# XXX: other language bindings
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="zlib-devel bzip2-devel mcpp-devel db-devel expat-devel libressl-devel"
|
2011-11-01 02:27:00 +00:00
|
|
|
short_desc="The Internet Communications Engine (Ice)"
|
2014-06-08 09:52:36 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-11-01 05:34:09 +00:00
|
|
|
license="GPL-2, ICE"
|
2013-05-09 15:00:06 +00:00
|
|
|
distfiles="${homepage}/download/Ice/3.5/${pkgname}-${version}.tar.gz"
|
2014-02-20 10:34:05 +00:00
|
|
|
checksum=989e51194c6adadbd156da3288e37bad847b93b3b876502e83033b70493af392
|
2011-11-01 02:27:00 +00:00
|
|
|
|
2012-02-06 16:00:35 +00:00
|
|
|
do_configure() {
|
2011-11-01 02:27:00 +00: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 06:13:00 +00:00
|
|
|
sed -i '/^embedded_runpath_prefix*/d' config/Make.rules
|
2014-07-06 13:58:06 +00:00
|
|
|
sed -i -e 's|x)/man/man1|x)/share/man/man1|' config/Make.rules
|
2011-11-01 02:27:00 +00:00
|
|
|
sed -i -e "s|test demo||" Makefile
|
|
|
|
}
|
|
|
|
|
2012-02-06 16:00:35 +00:00
|
|
|
do_build() {
|
2014-02-20 10:43:34 +00:00
|
|
|
export CXXFLAGS+=" -fPIC -DPIC"
|
|
|
|
make prefix=/usr ${makejobs}
|
2011-11-01 02:27:00 +00:00
|
|
|
}
|
|
|
|
|
2012-02-06 16:00:35 +00:00
|
|
|
do_install() {
|
2011-11-08 10:56:17 +00:00
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
2011-11-01 05:34:09 +00:00
|
|
|
vmkdir usr/lib
|
|
|
|
cd ${DESTDIR}/usr && ln -s lib lib64
|
2012-05-24 10:00:22 +00:00
|
|
|
cd ${wrksrc}/${build_wrksrc}
|
2011-11-01 05:34:09 +00:00
|
|
|
fi
|
|
|
|
make prefix=${DESTDIR}/usr install
|
|
|
|
[ -h ${DESTDIR}/usr/lib64 ] && rm -f ${DESTDIR}/usr/lib64
|
|
|
|
|
|
|
|
vmkdir usr/share/licenses/${pkgname}
|
2011-11-01 02:46:02 +00:00
|
|
|
mv ${DESTDIR}/usr/slice ${DESTDIR}/usr/share
|
|
|
|
rm ${DESTDIR}/usr/LICENSE
|
2011-11-01 05:34:09 +00:00
|
|
|
mv ${DESTDIR}/usr/ICE_LICENSE \
|
|
|
|
${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE
|
2011-11-01 06:13:00 +00:00
|
|
|
|
|
|
|
# remove unused cruft
|
|
|
|
rm -f ${DESTDIR}/usr/lib/*.class
|
2011-11-01 02:27:00 +00:00
|
|
|
}
|
2013-04-12 07:01:46 +00:00
|
|
|
|
|
|
|
libIce_package() {
|
2014-02-20 10:30:22 +00:00
|
|
|
short_desc+=" - runtime libraries"
|
2013-04-12 07:01:46 +00:00
|
|
|
pkg_install() {
|
2014-02-20 10:30:22 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
|
|
|
vmove usr/lib/Ice
|
2013-04-12 07:01:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Ice-devel_package() {
|
2014-02-20 10:30:22 +00:00
|
|
|
depends="libIce>=${version}_${revision} Ice>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
2013-04-12 07:01:46 +00:00
|
|
|
pkg_install() {
|
2013-04-16 09:06:16 +00:00
|
|
|
vmove usr/include
|
2014-02-20 10:30:22 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 07:01:46 +00:00
|
|
|
}
|
|
|
|
}
|