summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-02-03 20:11:08 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-02-03 20:11:08 +0000
commit12474a5ea11cf9795a7e593bdc85a2d9c5fcaaac (patch)
tree8d00d7ecda634b02fc26a6db5c5e609e8934142f /net-libs
parentadded ~amd64 to KEYWORDS. fixes #75613 (diff)
downloadhistorical-12474a5ea11cf9795a7e593bdc85a2d9c5fcaaac.tar.gz
historical-12474a5ea11cf9795a7e593bdc85a2d9c5fcaaac.tar.bz2
historical-12474a5ea11cf9795a7e593bdc85a2d9c5fcaaac.zip
Cleanups and important amd64 fixes
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/openh323/ChangeLog8
-rw-r--r--net-libs/openh323/Manifest16
-rw-r--r--net-libs/openh323/files/digest-openh323-1.13.2-r21
-rw-r--r--net-libs/openh323/files/digest-openh323-1.13.5-r11
-rw-r--r--net-libs/openh323/files/digest-openh323-1.15.2-r11
-rw-r--r--net-libs/openh323/openh323-1.13.2-r2.ebuild137
-rw-r--r--net-libs/openh323/openh323-1.13.5-r1.ebuild138
-rw-r--r--net-libs/openh323/openh323-1.15.2-r1.ebuild142
8 files changed, 438 insertions, 6 deletions
diff --git a/net-libs/openh323/ChangeLog b/net-libs/openh323/ChangeLog
index 5ff055e06d08..2f4f5b346e90 100644
--- a/net-libs/openh323/ChangeLog
+++ b/net-libs/openh323/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-libs/openh323
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/ChangeLog,v 1.61 2005/01/14 17:07:15 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/ChangeLog,v 1.62 2005/02/03 20:11:08 stkn Exp $
+
+*openh323-1.15.2-r1 (03 Feb 2005)
+
+ 03 Feb 2005; Stefan Knoblich <stkn@gentoo.org> +openh323-1.13.2-r2.ebuild,
+ +openh323-1.13.5-r1.ebuild, +openh323-1.15.2-r1.ebuild:
+ Cleanups and important amd64 fixes.
14 Jan 2005; <avatar@gentoo.org> openh323-1.15.2.ebuild:
Added to ~ppc.
diff --git a/net-libs/openh323/Manifest b/net-libs/openh323/Manifest
index 1f6fc6f21e7c..6ee2407b619e 100644
--- a/net-libs/openh323/Manifest
+++ b/net-libs/openh323/Manifest
@@ -1,4 +1,4 @@
-MD5 49eb882688151806beac06f16312db86 ChangeLog 10112
+MD5 e365382ffedb10ec084df7b03496b30e ChangeLog 10320
MD5 5ae9f140fcd4525c88ee9239bd8772a6 metadata.xml 267
MD5 a167b86038f89f15ce2609935c31678c openh323-1.11.7.ebuild 1822
MD5 3aeadd649563d6df48e8f2d24eb9f2ed openh323-1.12.0-r1.ebuild 2818
@@ -7,8 +7,11 @@ MD5 9c59d13d7b06bc4d44c71723173b32c9 openh323-1.12.2-r2.ebuild 3720
MD5 822d1f8b8e3353d2035fd6ea153f0f71 openh323-1.13.2-r1.ebuild 4098
MD5 4a8ed9e0975b6974ff38d251fa023e08 openh323-1.13.2.ebuild 3702
MD5 bfec45ab1419b0262efe9daf786ac7f8 openh323-1.13.5.ebuild 4154
-MD5 0fc92f812d82b55f0070957e64f12182 openh323-1.9.10-r1.ebuild 1099
MD5 6403b8d202d6dffc5c0c4b1017b95a87 openh323-1.15.2.ebuild 3941
+MD5 0fc92f812d82b55f0070957e64f12182 openh323-1.9.10-r1.ebuild 1099
+MD5 fd9eabb5af0e900cd67948bbc8b04d57 openh323-1.13.2-r2.ebuild 4155
+MD5 4dab4ea86ea58a3d35c62000b9f30e9a openh323-1.13.5-r1.ebuild 4185
+MD5 592c5a7aa17c09fecda1c08bf7314dfd openh323-1.15.2-r1.ebuild 4098
MD5 e9ac1227eaf205c20f84a4fc712e8d66 files/digest-openh323-1.11.7 68
MD5 238a3a0b91aabce0a61e0dd5c4b9ee68 files/digest-openh323-1.12.0-r1 68
MD5 2efc1a39c75805caacb974bfa6208dea files/digest-openh323-1.12.2-r1 68
@@ -16,16 +19,19 @@ MD5 2efc1a39c75805caacb974bfa6208dea files/digest-openh323-1.12.2-r2 68
MD5 8f793eaf228e13d19c7393fe95c8ed19 files/digest-openh323-1.13.2 68
MD5 8f793eaf228e13d19c7393fe95c8ed19 files/digest-openh323-1.13.2-r1 68
MD5 9519f9e7c6a88c9159cba2345725ed9d files/digest-openh323-1.13.5 73
+MD5 ba6d90bbb25d240c705e30bd55bc8daf files/digest-openh323-1.15.2 73
MD5 47caff52a16cf5135ad984dcfe022f6a files/digest-openh323-1.9.10-r1 68
MD5 c3dd75b2e6b09b4f5cc5b88a12064159 files/openh323-1.11.7-emptyMakefile 8
MD5 3f59306b619abf22dd5338af0c4c099b files/openh323-1.12.0-include-order.diff 1326
MD5 76afb2b1c9c9e4aa4414531ffdd812e9 files/openh323-1.12.2-ffmpeg.diff 1899
MD5 767748fd04f2626be4c6914e110a1676 files/openh323-1.12.2-include-order.diff 1361
MD5 76afb2b1c9c9e4aa4414531ffdd812e9 files/openh323-1.13.2-ffmpeg.diff 1899
+MD5 e4b00dfe33b6d0574e651c93ceddf59d files/openh323-1.13.2-gcc34.diff 291
MD5 d63db2246a246adf622afeefabbb1e9d files/openh323-1.13.2-include-order.diff 1027
+MD5 2c75f68b5db8444726ae9342b8a02319 files/openh323-1.13.2-ixjuser.diff 285
MD5 76afb2b1c9c9e4aa4414531ffdd812e9 files/openh323-1.13.5-ffmpeg.diff 1899
MD5 d63db2246a246adf622afeefabbb1e9d files/openh323-1.13.5-include-order.diff 1027
-MD5 e4b00dfe33b6d0574e651c93ceddf59d files/openh323-1.13.2-gcc34.diff 291
-MD5 2c75f68b5db8444726ae9342b8a02319 files/openh323-1.13.2-ixjuser.diff 285
-MD5 ba6d90bbb25d240c705e30bd55bc8daf files/digest-openh323-1.15.2 73
MD5 73a8df25ace2235307956d67acecb32d files/openh323-1.15.2-notrace.diff 801
+MD5 8f793eaf228e13d19c7393fe95c8ed19 files/digest-openh323-1.13.2-r2 68
+MD5 9519f9e7c6a88c9159cba2345725ed9d files/digest-openh323-1.13.5-r1 73
+MD5 ba6d90bbb25d240c705e30bd55bc8daf files/digest-openh323-1.15.2-r1 73
diff --git a/net-libs/openh323/files/digest-openh323-1.13.2-r2 b/net-libs/openh323/files/digest-openh323-1.13.2-r2
new file mode 100644
index 000000000000..2f836c8e94ca
--- /dev/null
+++ b/net-libs/openh323/files/digest-openh323-1.13.2-r2
@@ -0,0 +1 @@
+MD5 b63e0ae7555facdbeab5be8b407d09b6 openh323-1.13.2.tar.gz 2197100
diff --git a/net-libs/openh323/files/digest-openh323-1.13.5-r1 b/net-libs/openh323/files/digest-openh323-1.13.5-r1
new file mode 100644
index 000000000000..8ef463ce574e
--- /dev/null
+++ b/net-libs/openh323/files/digest-openh323-1.13.5-r1
@@ -0,0 +1 @@
+MD5 c8b2bd20f1cb38796fbda554903fd6bd openh323-v1_13_5-src.tar.gz 2216406
diff --git a/net-libs/openh323/files/digest-openh323-1.15.2-r1 b/net-libs/openh323/files/digest-openh323-1.15.2-r1
new file mode 100644
index 000000000000..3b4c43407ba9
--- /dev/null
+++ b/net-libs/openh323/files/digest-openh323-1.15.2-r1
@@ -0,0 +1 @@
+MD5 53086e76eb4e2ff2a3b77f1d4e9acaa8 openh323-v1_15_2-src-tar.gz 3735815
diff --git a/net-libs/openh323/openh323-1.13.2-r2.ebuild b/net-libs/openh323/openh323-1.13.2-r2.ebuild
new file mode 100644
index 000000000000..36d8722c0700
--- /dev/null
+++ b/net-libs/openh323/openh323-1.13.2-r2.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.13.2-r2.ebuild,v 1.1 2005/02/03 20:11:08 stkn Exp $
+
+inherit eutils flag-o-matic multilib
+
+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"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="x86 sparc amd64 ppc"
+IUSE="ssl"
+
+DEPEND=">=sys-apps/sed-4
+ ~dev-libs/pwlib-1.6.3
+ >=media-video/ffmpeg-0.4.7
+ ssl? ( dev-libs/openssl )"
+
+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)/$(get_libdir) -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 emerging"
+ ewarn "we are currently investigating this problem..."
+ ewarn ""
+ ewarn "<sleeping 10 seconds...>"
+ 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
+
+ # fix to compile on gcc-3.4 (bug #56951)
+ epatch ${FILESDIR}/${P}-gcc34.diff
+
+ # fix for 2.6 headers (bug #72448)
+ epatch ${FILESDIR}/${P}-ixjuser.diff
+
+ # fix a typo
+ sed -i -e "s:\$(DESDIR):\$(DESTDIR):" \
+ Makefile.in
+}
+
+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 use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR=/usr
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ append-flags -fPIC
+
+ # use shipped speex version
+ econf \
+ --enable-localspeex || die
+
+ emake -j1 ${makeopts} opt || die "make failed"
+}
+
+src_install() {
+ local OPENH323_ARCH ALT_ARCH
+ # make NOTRACE=1 opt ==> linux_$ARCH_n
+ # make opt ==> linux_$ARCH_r
+
+ # amd64 needs special treatment
+ if [ ${ARCH} = "amd64" ]; then
+ OPENH323_ARCH="linux_x86_64_n"
+ else
+ OPENH323_ARCH="linux_${ARCH}_n"
+ fi
+
+ make PREFIX=/usr DESTDIR=${D} install || die "install failed"
+ dobin ${S}/samples/simple/obj_${OPENH323_ARCH}/simph323
+
+ # 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/$(get_libdir)/libopenh323.so
+ dosym /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so.${PV} /usr/$(get_libdir)/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/$(get_libdir)/libh323_${ALT_ARCH}.so.${pv} symlink"
+ dosym /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so.${PV} /usr/$(get_libdir)/libh323_${ALT_ARCH}.so.${pv}
+ done
+ dosym /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so.${PV} /usr/$(get_libdir)/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/$(get_libdir):" \
+ /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.5-r1.ebuild b/net-libs/openh323/openh323-1.13.5-r1.ebuild
new file mode 100644
index 000000000000..cd6b095b848d
--- /dev/null
+++ b/net-libs/openh323/openh323-1.13.5-r1.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.13.5-r1.ebuild,v 1.1 2005/02/03 20:11:08 stkn Exp $
+
+IUSE="ssl"
+
+inherit eutils flag-o-matic multilib
+
+MY_P="${PN}-v${PV//./_}"
+
+S=${WORKDIR}/${PN}
+DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol"
+HOMEPAGE="http://www.openh323.org/"
+SRC_URI="mirror://sourceforge/openh323/${MY_P}-src.tar.gz"
+
+SLOT="0"
+LICENSE="MPL-1.1"
+KEYWORDS="~x86 ppc ~amd64 ~sparc ~alpha"
+
+DEPEND=">=sys-apps/sed-4
+ >=dev-libs/pwlib-1.6.6
+ >=media-video/ffmpeg-0.4.7
+ ssl? ( dev-libs/openssl )"
+
+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)/$(get_libdir) -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...>"
+ epause 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
+
+ # fix to compile on gcc-3.4 (bug #56951)
+ epatch ${FILESDIR}/${PN}-1.13.2-gcc34.diff
+
+ # fix ixjuser.h problems
+ epatch ${FILESDIR}/${PN}-1.13.2-ixjuser.diff
+}
+
+src_compile() {
+ local makeopts
+
+ # remove -fstack-protector, may cause problems (bug #75259)
+ filter-flags -fstack-protector
+
+ 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 use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR=/usr
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ # use shipped speex version
+ econf \
+ --enable-localspeex || die
+
+ emake -j1 ${makeopts} opt || die "make failed"
+}
+
+src_install() {
+ local OPENH323_ARCH ALT_ARCH
+ # make NOTRACE=1 opt ==> linux_$ARCH_n
+ # make opt ==> linux_$ARCH_r
+
+ # amd64 needs special treatment
+ if [ ${ARCH} = "amd64" ]; then
+ OPENH323_ARCH="linux_x86_64_n"
+ else
+ OPENH323_ARCH="linux_${ARCH}_n"
+ fi
+
+ make PREFIX=/usr DESTDIR=${D} install || die "install failed"
+ dobin ${S}/samples/simple/obj_${OPENH323_ARCH}/simph323
+
+ # 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/$(get_libdir)/libopenh323.so
+ dosym /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so.${PV} /usr/$(get_libdir)/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/$(get_libdir)/libh323_${ALT_ARCH}.so.${pv} symlink"
+ dosym /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so.${PV} /usr/$(get_libdir)/libh323_${ALT_ARCH}.so.${pv}
+ done
+ dosym /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so.${PV} /usr/$(get_libdir)/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/$(get_libdir):" \
+ /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.15.2-r1.ebuild b/net-libs/openh323/openh323-1.15.2-r1.ebuild
new file mode 100644
index 000000000000..4f59a0c5a2b8
--- /dev/null
+++ b/net-libs/openh323/openh323-1.15.2-r1.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.15.2-r1.ebuild,v 1.1 2005/02/03 20:11:08 stkn Exp $
+
+IUSE="ssl novideo noaudio debug"
+
+inherit eutils flag-o-matic multilib
+
+MY_P="${PN}-v${PV//./_}"
+
+S=${WORKDIR}/${PN}
+DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol"
+HOMEPAGE="http://www.openh323.org/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src-tar.gz"
+
+SLOT="0"
+LICENSE="MPL-1.1"
+KEYWORDS="~x86 ~sparc ~alpha ~ppc ~amd64"
+
+DEPEND=">=sys-apps/sed-4
+ >=dev-libs/pwlib-1.8.3
+ >=media-video/ffmpeg-0.4.7
+ ssl? ( dev-libs/openssl )"
+
+src_unpack() {
+ # currently complaining to UPSTREAM about new naming scheme
+ tar -C ${WORKDIR} -xzf ${DISTDIR}/${MY_P}-src-tar.gz || die "Unpacking of ${PF} failed"
+
+ cd ${S}
+ # Makefile is currently broken with NOTRACE=1, fix that
+ epatch ${FILESDIR}/${PN}-1.15.2-notrace.diff
+}
+
+src_compile() {
+ local makeopts
+ local myconf
+
+ # remove -fstack-protector, may cause problems (bug #75259)
+ filter-flags -fstack-protector
+
+ export PWLIBDIR=/usr/share/pwlib
+ export PTLIB_CONFIG=/usr/bin/ptlib-config
+ export OPENH323DIR=${S}
+
+ makeopts="${makeopts} ASNPARSER=/usr/bin/asnparser LDFLAGS=-L${S}/lib"
+
+ # NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1
+ # compile with PTRACING if the user wants to debug stuff
+ if ! use debug; then
+ makeopts="${makeopts} NOTRACE=1"
+ fi
+
+ if use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR=/usr
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ use novideo \
+ && myconf="${myconf} --disable-video"
+
+ use noaudio \
+ && myconf="${myconf} --disable-audio"
+
+ econf ${myconf} || die "configure failed"
+ emake ${makeopts} opt || die "make failed"
+}
+
+src_install() {
+ local OPENH323_ARCH ALT_ARCH OPENH323_SUFFIX
+ local makeopts
+ # make NOTRACE=1 opt ==> linux_$ARCH_n
+ # make opt ==> linux_$ARCH_r
+ if ! use debug; then
+ OPENH323_SUFFIX="n"
+ makeopts="NOTRACE=1"
+ else
+ OPENH323_SUFFIX="r"
+ fi
+
+ # amd64 needs special treatment
+ if use amd64; then
+ OPENH323_ARCH="linux_x86_64_${OPENH323_SUFFIX}"
+ else
+ OPENH323_ARCH="linux_${ARCH}_${OPENH323_SUFFIX}"
+ fi
+
+ # set ALT_ARCH
+ if use debug; then
+ ALT_ARCH=${OPENH323_ARCH/_r/_n}
+ else
+ ALT_ARCH=${OPENH323_ARCH/_n/_r}
+ fi
+
+ ###
+ # Install stuff
+ #
+ make PREFIX=/usr DESTDIR=${D} \
+ OH323_FILE="libh323_${OPENH323_ARCH}.so.${PV}" \
+ ${makeopts} install || die "install failed"
+
+ # workaround: don't install libh323*.so and libh323.so.${PV}
+ if [[ -f ${D}/usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so ]]; then
+ # libh323*.so is a file... replace it w/ a symlink
+ rm -f ${D}/usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so
+
+ dosym /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so
+ fi
+
+ ###
+ # Compatibility "hacks"
+ #
+
+ # 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/$(get_libdir)/libopenh323.so
+ dosym /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so.${PV} /usr/$(get_libdir)/libopenh323.so
+
+ # for backwards compatibility with _r versioned libraries
+ for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
+ einfo "creating /usr/$(get_libdir)/libh323_${ALT_ARCH}.so.${pv} symlink"
+ dosym /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so.${PV} /usr/$(get_libdir)/libh323_${ALT_ARCH}.so.${pv}
+ done
+ dosym /usr/$(get_libdir)/libh323_${OPENH323_ARCH}.so.${PV} /usr/$(get_libdir)/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/$(get_libdir):" \
+ /usr/share/openh323/openh323u.mak
+ dosed "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
+ /usr/share/openh323/openh323u.mak
+ # this is hardcoded now?
+ dosed "s:^\(OPENH323DIR[ \t]\+=\) ${S}:\1 /usr/share/openh323:" \
+ /usr/share/openh323/openh323u.mak
+}