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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Aug 15 19:30:24 2005 UTC (8 years, 11 months ago) by stkn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Removed obsolete ebuilds.
(Portage version: 2.0.51.22-r2)

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.13.2.ebuild,v 1.7 2005/07/10 01:06:25 swegener Exp $
4
5 inherit eutils
6
7 S=${WORKDIR}/${PN}
8 DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol"
9 HOMEPAGE="http://www.openh323.org/"
10 SRC_URI="http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/${P}.tar.gz"
11
12 IUSE="ssl"
13 SLOT="0"
14 LICENSE="MPL-1.1"
15 KEYWORDS="-x86"
16
17 DEPEND=">=sys-apps/sed-4
18 >=dev-libs/pwlib-1.6.3
19 >=media-video/ffmpeg-0.4.7
20 >=media-libs/speex-1.0.0
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 if has_version ">=sys-devel/gcc-3.3.2"; then
42 ewarn "If you are experiencing problems emerging openh323 with gcc-3.3.2"
43 ewarn "please try using CFLAGS=\"-O1\" when emergeing"
44 ewarn "we are currently investigating this problem..."
45 ewarn ""
46 ewarn "<sleeping 10 seconds...>"
47 epause 10
48 fi
49 }
50
51 src_unpack() {
52 unpack ${A}
53
54 cd ${S}
55 # fix and enable ffmpeg/h263 support (bug #32754)
56 epatch ${FILESDIR}/openh323-${PV}-ffmpeg.diff
57
58 # fix include order (bug #32522)
59 epatch ${FILESDIR}/openh323-${PV}-include-order.diff
60 }
61
62 src_compile() {
63 local makeopts
64
65 export PWLIBDIR=/usr/share/pwlib
66 export PTLIB_CONFIG=/usr/bin/ptlib-config
67 export OPENH323DIR=${S}
68
69 # NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1
70 makeopts="${makeopts} ASNPARSER=/usr/bin/asnparser LDFLAGS=-L${S}/lib NOTRACE=1"
71
72 if use ssl; then
73 export OPENSSLFLAG=1
74 export OPENSSLDIR=/usr
75 export OPENSSLLIBS="-lssl -lcrypt"
76 fi
77
78 econf || die
79 emake ${makeopts} opt || die "make failed"
80 }
81
82 src_install() {
83 local OPENH323_ARCH ALT_ARCH
84 # make NOTRACE=1 opt ==> linux_$ARCH_n
85 # make opt ==> linux_$ARCH_r
86 OPENH323_ARCH="linux_${ARCH}_n"
87
88 dodir /usr/bin /usr/lib/ /usr/share
89 make PREFIX=${D}/usr install || die "install failed"
90 dobin ${S}/samples/simple/obj_${OPENH323_ARCH}/simph323
91
92 # remove CVS stuff (not needed, we don't copy things to
93 # /usr/share/openh323 anymore...)
94 #find ${D} -name 'CVS' -type d | xargs rm -rf
95
96 # mod to keep gnugk happy
97 insinto /usr/share/openh323/src
98 newins ${FILESDIR}/openh323-1.11.7-emptyMakefile Makefile
99
100 # install version.h into $OPENH323DIR
101 insinto /usr/share/openh323
102 doins version.h
103
104 rm ${D}/usr/lib/libopenh323.so
105 dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libopenh323.so
106
107 # for backwards compatibility with _r versioned libraries
108 # (this might not work...)
109 ALT_ARCH=${OPENH323_ARCH/_n/_r}
110 for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
111 einfo "creating /usr/lib/libh323_${ALT_ARCH}.so.${pv} symlink"
112 dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libh323_${ALT_ARCH}.so.${pv}
113 done
114 dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libh323_${ALT_ARCH}.so
115
116 # these should point to the right directories,
117 # openh323.org apps and others need this
118 dosed "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/lib:" \
119 /usr/share/openh323/openh323u.mak
120 dosed "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
121 /usr/share/openh323/openh323u.mak
122 }

  ViewVC Help
Powered by ViewVC 1.1.20