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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Nov 8 18:33:54 2003 UTC (11 years, 1 month ago) by stkn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
fixes ffmpeg support and build problems (bugs #32522 and #32754)

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.2.ebuild,v 1.4 2003/09/09 17:18:08 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 DEPEND=">=sys-apps/sed-4
17 >=dev-libs/pwlib-1.5.2
18 >=media-video/ffmpeg-0.4.7_pre20030624
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 # enabling ffmpeg/h263 support
43 cd ${S}; sed -i -e "s:/usr/local/include/ffmpeg:/usr/include/ffmpeg:" configure
44 }
45
46 src_compile() {
47 local makeopts
48
49 export PWLIBDIR=/usr/share/pwlib
50 export PTLIB_CONFIG=/usr/bin/ptlib-config
51 export OPENH323DIR=${S}
52
53 # NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1
54 makeopts="${makeopts} ASNPARSER=/usr/bin/asnparser NOTRACE=1"
55
56
57 if [ "`use ssl`" ]; then
58 export OPENSSLFLAG=1
59 export OPENSSLDIR=/usr
60 export OPENSSLLIBS="-lssl -lcrypt"
61 fi
62
63 econf || die
64 emake ${makeopts} opt || die "make failed"
65 }
66
67 src_install() {
68 local OPENH323_ARCH ALT_ARCH
69 # make NOTRACE=1 opt ==> linux_$ARCH_n
70 # make opt ==> linux_$ARCH_r
71 OPENH323_ARCH="linux_${ARCH}_n"
72
73 dodir /usr/bin /usr/lib/ /usr/share
74 make PREFIX=${D}/usr install || die "install failed"
75 dobin ${S}/samples/simple/obj_${OPENH323_ARCH}/simph323
76
77 find ${D} -name 'CVS' -type d | xargs rm -rf
78
79 # mod to keep gnugk happy
80 insinto /usr/share/openh323/src
81 newins ${FILESDIR}/openh323-1.11.7-emptyMakefile Makefile
82 insinto /usr/share/openh323
83 doins version.h
84
85 rm ${D}/usr/lib/libopenh323.so
86 dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libopenh323.so
87
88 # for backwards compatibility with _r versioned libraries
89 ALT_ARCH=${OPENH323_ARCH/_n/_r}
90 for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
91 einfo "creating /usr/lib/libh323_${ALT_ARCH}.so.${pv} symlink"
92 dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libh323_${ALT_ARCH}.so.${pv}
93 done
94 dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libh323_${ALT_ARCH}.so
95
96 }

  ViewVC Help
Powered by ViewVC 1.1.20