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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Sep 3 12:51:39 2003 UTC (10 years, 11 months ago) by liquidx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
stable bump

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.12.0.ebuild,v 1.4 2003/07/09 00:18:23 liquidx Exp $
4
5 IUSE="ssl"
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.openh323.org/bin/${PN}_${PV}.tar.gz"
11
12 SLOT="0"
13 LICENSE="MPL-1.1"
14 KEYWORDS="~x86 ~ppc -sparc "
15
16 # FIXME: dep on ffmpeg but ./configure does not detect it properly
17 DEPEND=">=sys-apps/sed-4
18 >=dev-libs/pwlib-1.5.0
19 ssl? ( dev-libs/openssl )"
20
21 MAKEOPTS="${MAKEOPTS} -j1"
22
23 pkg_setup() {
24 # to prevent merge problems with broken makefiles from old
25 # pwlib versions, we double-check here.
26
27 if [ "` fgrep '\$(OPENSSLDIR)/include' /usr/share/pwlib/make/unix.mak`" ]
28 then
29 # patch unix.mak so it doesn't require annoying
30 # unmerge/merge cycle to upgrade
31 einfo "Fixing broken pwlib makefile."
32 cd /usr/share/pwlib/make
33 sed -i \
34 -e "s:-DP_SSL -I\$(OPENSSLDIR)/include -I\$(OPENSSLDIR)/crypto:-DP_SSL:" \
35 -e "s:^LDFLAGS.*\+= -L\$(OPENSSLDIR)/lib -L\$(OPENSSLDIR):LDFLAGS +=:" \
36 unix.mak
37 fi
38 }
39
40 src_unpack() {
41 unpack ${A}
42 cd ${S}
43 sed -i -e "s:/usr/local/include/ffmpeg:/usr/include/ffmpeg:" configure
44 epatch ${FILESDIR}/${P}-ptracing.patch
45 }
46
47 src_compile() {
48 local makeopts
49
50 export PWLIBDIR=/usr/share/pwlib
51 export OPENH323DIR=${S}
52
53 makeopts="${makeopts} ASNPARSER=/usr/bin/asnparser"
54
55
56 if [ "`use ssl`" ]; then
57 export OPENSSLFLAG=1
58 export OPENSSLDIR=/usr
59 export OPENSSLLIBS="-lssl -lcrypt"
60 fi
61
62 econf || die
63 emake ${makeopts} opt || die "make failed"
64 }
65
66 src_install() {
67
68 dodir /usr/bin /usr/lib/ /usr/share
69 make PREFIX=${D}/usr install || die "install failed"
70 dobin ${S}/simple/obj_linux_x86_r/simph323
71
72 find ${D} -name 'CVS' -type d | xargs rm -rf
73
74 # mod to keep gnugk happy
75 insinto /usr/share/openh323/src
76 newins ${FILESDIR}/openh323-1.11.7-emptyMakefile Makefile
77
78 rm ${D}/usr/lib/libopenh323.so
79 if [ ${ARCH} = "ppc" ] ; then
80 dosym /usr/lib/libh323_linux_ppc_r.so.${PV} /usr/lib/libopenh323.so
81 else
82 dosym /usr/lib/libh323_linux_x86_r.so.${PV} /usr/lib/libopenh323.so
83 fi
84
85
86 }

  ViewVC Help
Powered by ViewVC 1.1.20