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

Contents of /net-libs/openh323/openh323-1.12.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue Oct 3 13:11:05 2006 UTC (8 years, 2 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
remove unused
(Portage version: 2.1.2_pre2-r2)
 (Unsigned Manifest commit)

1 # Copyright 1999-2005 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.12.0-r1.ebuild,v 1.11 2005/07/10 01:06:25 swegener Exp $
4
5 inherit eutils
6
7 IUSE="ssl"
8
9 S=${WORKDIR}/${PN}
10 DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol"
11 HOMEPAGE="http://www.openh323.org"
12 SRC_URI="http://www.openh323.org/bin/${PN}_${PV}.tar.gz"
13
14 SLOT="0"
15 LICENSE="MPL-1.1"
16 KEYWORDS="x86 ~ppc -sparc "
17
18 DEPEND=">=sys-apps/sed-4
19 =dev-libs/pwlib-1.5.0*
20 >=media-video/ffmpeg-0.4.7_pre20030624
21 ssl? ( dev-libs/openssl )"
22
23 MAKEOPTS="${MAKEOPTS} -j1"
24
25 pkg_setup() {
26 # to prevent merge problems with broken makefiles from old
27 # pwlib versions, we double-check here.
28
29 if [ "` fgrep '\$(OPENSSLDIR)/include' /usr/share/pwlib/make/unix.mak`" ]
30 then
31 # patch unix.mak so it doesn't require annoying
32 # unmerge/merge cycle to upgrade
33 einfo "Fixing broken pwlib makefile."
34 cd /usr/share/pwlib/make
35 sed -i \
36 -e "s:-DP_SSL -I\$(OPENSSLDIR)/include -I\$(OPENSSLDIR)/crypto:-DP_SSL:" \
37 -e "s:^LDFLAGS.*\+= -L\$(OPENSSLDIR)/lib -L\$(OPENSSLDIR):LDFLAGS +=:" \
38 unix.mak
39 fi
40 }
41
42 src_unpack() {
43 unpack ${A}
44 # enabling ffmpeg/h263 support
45 cd ${S}; sed -i -e "s:/usr/local/include/ffmpeg:/usr/include/ffmpeg:" configure
46
47 # change search order of include files
48 # fixes bug #32522
49 epatch ${FILESDIR}/openh323-${PV}-include-order.diff
50 }
51
52 src_compile() {
53 local makeopts
54
55 export PWLIBDIR=/usr/share/pwlib
56 export OPENH323DIR=${S}
57
58 # NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1
59 makeopts="${makeopts} ASNPARSER=/usr/bin/asnparser NOTRACE=1"
60
61
62 if use ssl; then
63 export OPENSSLFLAG=1
64 export OPENSSLDIR=/usr
65 export OPENSSLLIBS="-lssl -lcrypt"
66 fi
67
68 econf || die
69 emake ${makeopts} opt || die "make failed"
70 }
71
72 src_install() {
73 local OPENH323_ARCH ALT_ARCH
74 # make NOTRACE=1 opt ==> linux_$ARCH_n
75 # make opt ==> linux_$ARCH_r
76 OPENH323_ARCH="linux_${ARCH}_n"
77
78 dodir /usr/bin /usr/lib/ /usr/share
79 make PREFIX=${D}/usr install || die "install failed"
80 dobin ${S}/samples/simple/obj_${OPENH323_ARCH}/simph323
81
82 find ${D} -name 'CVS' -type d | xargs rm -rf
83
84 # mod to keep gnugk happy
85 insinto /usr/share/openh323/src
86 newins ${FILESDIR}/openh323-1.11.7-emptyMakefile Makefile
87
88 rm ${D}/usr/lib/libopenh323.so
89 dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libopenh323.so
90
91 # for backwards compatibility with _r versioned libraries
92 ALT_ARCH=${OPENH323_ARCH/_n/_r}
93 for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
94 einfo "creating /usr/lib/libh323_${ALT_ARCH}.so.${pv} symlink"
95 dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libh323_${ALT_ARCH}.so.${pv}
96 done
97 dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libh323_${ALT_ARCH}.so
98
99 }

  ViewVC Help
Powered by ViewVC 1.1.20