diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2004-03-12 01:44:13 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2004-03-12 01:44:13 +0000 |
commit | 62654b53e0f961d5d3d6e98d35c8f648d72a2ddb (patch) | |
tree | 22ece45050212b43724eeac6139837033aed1b24 /net-libs | |
parent | Version bump, bugfix release (Manifest recommit) (diff) | |
download | gentoo-2-62654b53e0f961d5d3d6e98d35c8f648d72a2ddb.tar.gz gentoo-2-62654b53e0f961d5d3d6e98d35c8f648d72a2ddb.tar.bz2 gentoo-2-62654b53e0f961d5d3d6e98d35c8f648d72a2ddb.zip |
fixes bug #44125 and (hopefully) a lot of other build problems
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/openh323/ChangeLog | 9 | ||||
-rw-r--r-- | net-libs/openh323/files/digest-openh323-1.13.2-r1 | 1 | ||||
-rw-r--r-- | net-libs/openh323/openh323-1.13.2-r1.ebuild | 127 | ||||
-rw-r--r-- | net-libs/openh323/openh323-1.13.2.ebuild | 4 |
4 files changed, 138 insertions, 3 deletions
diff --git a/net-libs/openh323/ChangeLog b/net-libs/openh323/ChangeLog index 63c117414298..23987f377b86 100644 --- a/net-libs/openh323/ChangeLog +++ b/net-libs/openh323/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-libs/openh323 # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/ChangeLog,v 1.30 2004/03/09 02:06:52 stkn Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/ChangeLog,v 1.31 2004/03/12 01:44:13 stkn Exp $ + +*openh323-1.13.2-r1 (12 Mar 2004) + + 12 Mar 2004; Stefan Knoblich <stkn@gentoo.org> openh323-1.13.2-r1.ebuild, + openh323-1.13.2.ebuild: + this update fixes bug #44125 and a lot of compile time problems, which may be + caused by some (major) changes in openh323. *openh323-1.13.2 (09 Mar 2004) diff --git a/net-libs/openh323/files/digest-openh323-1.13.2-r1 b/net-libs/openh323/files/digest-openh323-1.13.2-r1 new file mode 100644 index 000000000000..2f836c8e94ca --- /dev/null +++ b/net-libs/openh323/files/digest-openh323-1.13.2-r1 @@ -0,0 +1 @@ +MD5 b63e0ae7555facdbeab5be8b407d09b6 openh323-1.13.2.tar.gz 2197100 diff --git a/net-libs/openh323/openh323-1.13.2-r1.ebuild b/net-libs/openh323/openh323-1.13.2-r1.ebuild new file mode 100644 index 000000000000..14ed6d184ba6 --- /dev/null +++ b/net-libs/openh323/openh323-1.13.2-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.13.2-r1.ebuild,v 1.1 2004/03/12 01:44:13 stkn Exp $ + +IUSE="ssl" + +inherit eutils + +S=${WORKDIR}/${PN} +DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol" +HOMEPAGE="http://www.openh323.org/" +SRC_URI="http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/${P}.tar.gz" + +SLOT="0" +LICENSE="MPL-1.1" +KEYWORDS="~x86" + +DEPEND=">=sys-apps/sed-4 + >=dev-libs/pwlib-1.6.3-r1 + >=media-video/ffmpeg-0.4.7 + ssl? ( dev-libs/openssl )" + +MAKEOPTS="${MAKEOPTS} -j1" + +pkg_setup() { + # to prevent merge problems with broken makefiles from old + # pwlib versions, we double-check here. + + if [ "` fgrep '\$(OPENSSLDIR)/include' /usr/share/pwlib/make/unix.mak`" ] + then + # patch unix.mak so it doesn't require annoying + # unmerge/merge cycle to upgrade + einfo "Fixing broken pwlib makefile." + cd /usr/share/pwlib/make + sed -i \ + -e "s:-DP_SSL -I\$(OPENSSLDIR)/include -I\$(OPENSSLDIR)/crypto:-DP_SSL:" \ + -e "s:^LDFLAGS.*\+= -L\$(OPENSSLDIR)/lib -L\$(OPENSSLDIR):LDFLAGS +=:" \ + unix.mak + fi + + if has_version ">=sys-devel/gcc-3.3.2"; then + ewarn "If you are experiencing problems emerging openh323 with gcc-3.3.2" + ewarn "please try using CFLAGS=\"-O1\" when emergeing" + ewarn "we are currently investigating this problem..." + ewarn "" + ewarn "<sleeping 10 seconds...>" + sleep 10 + fi +} + +src_unpack() { + unpack ${A} + + cd ${S} + # fix and enable ffmpeg/h263 support (bug #32754) + epatch ${FILESDIR}/openh323-${PV}-ffmpeg.diff + + # fix include order (bug #32522) + epatch ${FILESDIR}/openh323-${PV}-include-order.diff +} + +src_compile() { + local makeopts + + export PWLIBDIR=/usr/share/pwlib + export PTLIB_CONFIG=/usr/bin/ptlib-config + export OPENH323DIR=${S} + + # NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1 + makeopts="${makeopts} ASNPARSER=/usr/bin/asnparser LDFLAGS=-L${S}/lib NOTRACE=1" + + if [ -n "`use ssl`" ]; then + export OPENSSLFLAG=1 + export OPENSSLDIR=/usr + export OPENSSLLIBS="-lssl -lcrypt" + fi + + # use shipped speex version + econf \ + --enable-localspeex || die + + emake ${makeopts} opt || die "make failed" +} + +src_install() { + local OPENH323_ARCH ALT_ARCH + # make NOTRACE=1 opt ==> linux_$ARCH_n + # make opt ==> linux_$ARCH_r + OPENH323_ARCH="linux_${ARCH}_n" + + dodir /usr/bin /usr/lib/ /usr/share + make PREFIX=${D}/usr install || die "install failed" + dobin ${S}/samples/simple/obj_${OPENH323_ARCH}/simph323 + + # remove CVS stuff + find ${D} -name 'CVS' -type d | xargs rm -rf + + # mod to keep gnugk happy + insinto /usr/share/openh323/src + newins ${FILESDIR}/openh323-1.11.7-emptyMakefile Makefile + + # install version.h into $OPENH323DIR + insinto /usr/share/openh323 + doins version.h + + rm ${D}/usr/lib/libopenh323.so + dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libopenh323.so + + # for backwards compatibility with _r versioned libraries + # (this might not work...) + ALT_ARCH=${OPENH323_ARCH/_n/_r} + for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do + einfo "creating /usr/lib/libh323_${ALT_ARCH}.so.${pv} symlink" + dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libh323_${ALT_ARCH}.so.${pv} + done + dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libh323_${ALT_ARCH}.so + + # these should point to the right directories, + # openh323.org apps and others need this + dosed "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/lib:" \ + /usr/share/openh323/openh323u.mak + dosed "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \ + /usr/share/openh323/openh323u.mak + # this is hardcoded now? nice... + dosed "s:^\(OPENH323DIR[ \t]\+=\) ${S}:\1 /usr/share/openh323:" \ + /usr/share/openh323/openh323u.mak +} diff --git a/net-libs/openh323/openh323-1.13.2.ebuild b/net-libs/openh323/openh323-1.13.2.ebuild index c250440a3225..6ef5f61b72b7 100644 --- a/net-libs/openh323/openh323-1.13.2.ebuild +++ b/net-libs/openh323/openh323-1.13.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.13.2.ebuild,v 1.1 2004/03/09 02:06:52 stkn Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.13.2.ebuild,v 1.2 2004/03/12 01:44:13 stkn Exp $ IUSE="ssl" @@ -13,7 +13,7 @@ SRC_URI="http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/${P} SLOT="0" LICENSE="MPL-1.1" -KEYWORDS="~x86" +KEYWORDS="-x86" DEPEND=">=sys-apps/sed-4 >=dev-libs/pwlib-1.6.3 |