/[gentoo-x86]/net-libs/openh323/openh323-1.18.0.ebuild
Gentoo

Contents of /net-libs/openh323/openh323-1.18.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Dec 15 11:51:45 2013 UTC (8 months, 1 week ago) by moult
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
net-libs/openh323 removal (pending 11 July 2013), see #290062 and #290063 for reference.

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.18.0.ebuild,v 1.12 2012/10/05 19:12:21 ago Exp $
4
5 EAPI=4
6
7 inherit eutils flag-o-matic multilib toolchain-funcs
8
9 MY_P="${PN}-v${PV//./_}"
10
11 DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol"
12 HOMEPAGE="http://www.openh323.org/"
13 SRC_URI="http://www.voxgratia.org/releases/${PN}-v${PV//./_}-src-tar.gz"
14
15 IUSE="debug ssl +video +audio"
16 SLOT="0"
17 LICENSE="MPL-1.1"
18 KEYWORDS="alpha amd64 ~hppa ppc sparc x86"
19
20 DEPEND=">=sys-apps/sed-4
21 =dev-libs/pwlib-1.10*
22 virtual/ffmpeg
23 ssl? ( dev-libs/openssl )"
24 RDEPEND="${DEPEND}"
25
26 S="${WORKDIR}/${PN}_v${PV//./_}"
27
28 pkg_setup() {
29 use debug || makeopts="NOTRACE=1"
30 }
31
32 src_unpack() {
33 tar -xzf "${DISTDIR}"/${A} -C "${WORKDIR}" || die
34 }
35
36 src_prepare() {
37 # Makefile does not work correctly, fix
38 epatch "${FILESDIR}"/${PN}-1.18.0-install.diff
39 # Do not include compiler.h, bug #168791
40 epatch "${FILESDIR}"/${P}-compilerh.patch
41 }
42
43 src_configure() {
44 # remove -fstack-protector, may cause problems (bug #75259)
45 filter-flags -fstack-protector
46
47 #export OPENH323DIR=${S}
48
49 econf \
50 $(use_enable video) \
51 $(use_enable audio) \
52 --disable-transnexusosp
53 }
54
55 src_compile() {
56 emake \
57 CC="$(tc-getCC)" \
58 CXX="$(tc-getCXX)" \
59 AR="$(tc-getAR)" \
60 ${makeopts} opt
61 }
62
63 src_install() {
64 emake ${makeopts} PREFIX=/usr DESTDIR="${D}" install
65
66 ###
67 # Compatibility "hacks"
68 #
69
70 # debug / no debug use different suffixes - some packages build with only one
71 for i in "${ED}"/usr/lib/libh323_linux_x86_*; do
72 use debug && ln -s "${ED}"/usr/lib/libh323_linux_x86_*.so.*.*.* ${i/_r/_n} \
73 || ln -s "${ED}"/usr/lib/libh323_linux_x86_*.so.*.*.* ${i/_n/_r}
74 done
75
76 # set notrace corerctly
77 if ! use debug ; then
78 sed \
79 -i \
80 -e "s:^\(NOTRACE.*\):\1 1:" \
81 "${ED}"/usr/share/openh323/openh323u.mak || die
82 fi
83
84 # mod to keep gnugk happy
85 insinto /usr/share/openh323/src
86 echo -e "opt:\n\t:" > "${T}"/Makefile
87 doins "${T}"/Makefile
88
89 # these should point to the right directories,
90 # openh323.org apps and others need this
91 sed -i -e "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/${libdir}:" \
92 "${ED}"/usr/share/openh323/openh323u.mak || die
93 sed -i -e "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
94 "${ED}"/usr/share/openh323/openh323u.mak || die
95
96 # this is hardcoded now?
97 sed -i -e "s:^\(OPENH323DIR[ \t]\+=\) "${S}":\1 /usr/share/openh323:" \
98 "${ED}"/usr/share/openh323/openh323u.mak || die
99 }

  ViewVC Help
Powered by ViewVC 1.1.20