2011-11-01 03:27:00 +01:00
|
|
|
# Template file for 'Ice'
|
|
|
|
pkgname=Ice
|
2014-02-20 11:34:05 +01:00
|
|
|
version=3.5.1
|
2016-03-25 22:34:44 +01:00
|
|
|
revision=12
|
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
|
|
|
# XXX: other language bindings
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="zlib-devel bzip2-devel mcpp-devel db-devel expat-devel libressl-devel"
|
2011-11-01 03:27:00 +01:00
|
|
|
short_desc="The Internet Communications Engine (Ice)"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-11-01 06:34:09 +01:00
|
|
|
license="GPL-2, ICE"
|
2015-11-01 19:27:28 +01:00
|
|
|
distfiles="${homepage}/download/Ice/${version%.*}/${pkgname}-${version}.tar.gz"
|
2014-02-20 11:34:05 +01:00
|
|
|
checksum=989e51194c6adadbd156da3288e37bad847b93b3b876502e83033b70493af392
|
2011-11-01 03:27:00 +01:00
|
|
|
|
2015-11-01 19:27:28 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# Cross build requires the host's slice2cpp and slice2freeze
|
|
|
|
hostmakedepends+=" Ice"
|
|
|
|
fi
|
2015-08-06 21:06:56 +02:00
|
|
|
|
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
|
2014-07-06 15:58:06 +02:00
|
|
|
sed -i -e 's|x)/man/man1|x)/share/man/man1|' config/Make.rules
|
2011-11-01 03:27:00 +01:00
|
|
|
sed -i -e "s|test demo||" Makefile
|
2015-11-01 19:27:28 +01:00
|
|
|
|
|
|
|
# Simple fixes for musl libc instead of a proper patch
|
|
|
|
sed -i -e 's|__GNUC__|__GLIBC__|' src/IceUtil/Exception.cpp
|
|
|
|
sed -i -e 's|PTHREAD_MUTEX_RECURSIVE_NP|PTHREAD_MUTEX_RECURSIVE|' src/IceUtil/RecMutex.cpp
|
|
|
|
sed -i -e 's|sys/poll\.h|poll.h|' src/Ice/*.h
|
|
|
|
|
|
|
|
# Patch to find our $CXX and always use our $CXXFLAGS
|
|
|
|
sed -i config/Make.rules.Linux \
|
|
|
|
-e "s|= g++|= ${CXX}|" \
|
|
|
|
-e "s|ifeq (\$(CXX),g++)|ifeq (\$(CXX),${CXX})|" \
|
|
|
|
-e "/CXXARCHFLAGS\s+=/ s| -m.*|${CXXFLAGS}|" \
|
|
|
|
-e "s|\$(CXX) -shared|${CXX} -shared|" \
|
|
|
|
-e "s|-rdynamic|-rdynamic -Wl,-rpath,\$(libdir)|"
|
|
|
|
# Fix cross building
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# Use host's slice2cpp and slice2freeze
|
|
|
|
sed -i config/Make.rules \
|
|
|
|
-e 's|$(SLICE2CPP) $(SLICE2CPPFLAGS)|LD_LIBRARY_PATH=/usr/lib /usr/bin/slice2cpp $(SLICE2CPPFLAGS)|'
|
|
|
|
find . -name Makefile -exec sed -i "{}" \
|
|
|
|
-e 's|^\(\s\)$(SLICE2FREEZE)|\1LD_LIBRARY_PATH=/usr/lib /usr/bin/slice2freeze|' \
|
|
|
|
-e '/SLICE2FREEZECMD\s=/ s|$(SLICE2FREEZE)|LD_LIBRARY_PATH=/usr/lib /usr/bin/slice2freeze|' \
|
|
|
|
\;
|
|
|
|
fi
|
2011-11-01 03:27:00 +01:00
|
|
|
}
|
|
|
|
|
2012-02-06 17:00:35 +01:00
|
|
|
do_build() {
|
2014-02-20 11:43:34 +01:00
|
|
|
export CXXFLAGS+=" -fPIC -DPIC"
|
|
|
|
make prefix=/usr ${makejobs}
|
2011-11-01 03:27:00 +01:00
|
|
|
}
|
|
|
|
|
2012-02-06 17:00:35 +01:00
|
|
|
do_install() {
|
2015-11-01 19:27:28 +01:00
|
|
|
case "$XBPS_MACHINE" in
|
|
|
|
x86_64*)
|
|
|
|
vmkdir usr/lib
|
|
|
|
ln -s lib ${DESTDIR}/usr/lib64
|
|
|
|
;;
|
|
|
|
esac
|
2011-11-01 06:34:09 +01:00
|
|
|
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
|
|
|
}
|
2013-04-12 09:01:46 +02:00
|
|
|
|
|
|
|
libIce_package() {
|
2014-02-20 11:30:22 +01:00
|
|
|
short_desc+=" - runtime libraries"
|
2013-04-12 09:01:46 +02:00
|
|
|
pkg_install() {
|
2014-02-20 11:30:22 +01:00
|
|
|
vmove "usr/lib/*.so.*"
|
|
|
|
vmove usr/lib/Ice
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Ice-devel_package() {
|
2014-02-20 11:30:22 +01:00
|
|
|
depends="libIce>=${version}_${revision} Ice>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
2013-04-12 09:01:46 +02:00
|
|
|
pkg_install() {
|
2013-04-16 11:06:16 +02:00
|
|
|
vmove usr/include
|
2014-02-20 11:30:22 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|