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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Apr 10 21:38:25 2005 UTC (9 years, 6 months ago) by stkn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
cleanup part #1

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.11.7.ebuild,v 1.11 2005/01/08 20:15:47 stkn 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.4.11*
18 ssl? ( dev-libs/openssl )"
19
20 pkg_setup() {
21 # to prevent merge problems with broken makefiles from old
22 # pwlib versions, we double-check here.
23
24 if [ "` fgrep '\$(OPENSSLDIR)/include' /usr/share/pwlib/make/unix.mak`" ]
25 then
26 # patch unix.mak so it doesn't require annoying
27 # unmerge/merge cycle to upgrade
28 einfo "Fixing broken pwlib makefile."
29 cd /usr/share/pwlib/make
30 sed -i \
31 -e "s:-DP_SSL -I\$(OPENSSLDIR)/include -I\$(OPENSSLDIR)/crypto:-DP_SSL:" \
32 -e "s:^LDFLAGS.*\+= -L\$(OPENSSLDIR)/lib -L\$(OPENSSLDIR):LDFLAGS +=:" \
33 unix.mak
34 fi
35 }
36
37 src_compile() {
38 export PWLIBDIR=/usr/share/pwlib
39 export OPENH323DIR=${S}
40 if use ssl; then
41 export OPENSSLFLAG=1
42 export OPENSSLDIR=/usr
43 export OPENSSLLIBS="-lssl -lcrypt"
44 fi
45 make optshared || die
46 }
47
48 src_install() {
49
50 dodir /usr/lib /usr/share/openh323
51
52 cd ${S}/lib
53 mv lib* ${D}/usr/lib
54
55 cd ${S}
56 find ./ -name 'CVS' -type d | xargs rm -rf
57 cp -a * ${D}/usr/share/openh323
58
59 # mod to keep gnugk happy
60 insinto /usr/share/openh323/src
61 newins ${FILESDIR}/openh323-1.11.2-emptyMakefile Makefile
62
63 rm -f ${D}/usr/lib/libopenh323.so
64 if [ ${ARCH} = "ppc" ] ; then
65 dosym /usr/lib/libh323_linux_ppc_r.so.${PV} /usr/lib/libopenh323.so
66 else
67 dosym /usr/lib/libh323_linux_x86_r.so.${PV} /usr/lib/libopenh323.so
68 fi
69
70
71 }

  ViewVC Help
Powered by ViewVC 1.1.20