/[gentoo-x86]/dev-libs/pwlib/pwlib-1.3.11-r1.ebuild
Gentoo

Contents of /dev-libs/pwlib/pwlib-1.3.11-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Sun Apr 10 22:00:53 2005 UTC (9 years, 9 months ago) by stkn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +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/dev-libs/pwlib/pwlib-1.3.11-r1.ebuild,v 1.13 2005/01/08 20:12:42 stkn Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Libs needed for GnomeMeeting"
8 HOMEPAGE="http://www.openh323.org/"
9 SRC_URI="http://www.openh323.org/bin/${PN}_${PV}.tar.gz"
10
11 LICENSE="MPL-1.1"
12 SLOT="0"
13 KEYWORDS="x86 ppc -sparc"
14 IUSE="ssl"
15
16 DEPEND=">=sys-devel/bison-1.28
17 >=sys-devel/flex-2.5.4a
18 dev-libs/expat
19 ssl? ( dev-libs/openssl )"
20
21 S=${WORKDIR}/${PN}
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}
26 epatch ${FILESDIR}/${PF}.diff
27 }
28
29 src_compile() {
30 export PWLIBDIR=${S}
31 export PWLIB_BUILD="yes"
32
33 if use ssl ; then
34 export OPENSSLFLAG=1
35 export OPENSSLDIR=/usr
36 export OPENSSLLIBS="-lssl -lcrypt"
37 fi
38
39 make optshared || die
40
41 cd tools/asnparser
42 make optshared || die
43 }
44
45 src_install() {
46 dodir /usr/lib /usr/include/ptlib/unix/ptlib \
47 /usr/share/pwlib /usr/include/ptclib
48
49 cd ${S}
50 cp -a lib/*so* ${D}/usr/lib
51 cp -a include/ptlib.h ${D}/usr/include
52 cp -a include/ptlib/*.h ${D}/usr/include/ptlib/
53 cp -a include/ptlib/*.inl ${D}/usr/include/ptlib/
54 cp -a include/ptlib/unix/ptlib/*.h ${D}/usr/include/ptlib/unix/ptlib
55 cp -a include/ptlib/unix/ptlib/*.inl ${D}/usr/include/ptlib/unix/ptlib
56 cp -a include/ptclib/*.h ${D}/usr/include/ptclib/
57
58 cp -a * ${D}/usr/share/pwlib/
59 rm -rf ${D}/usr/share/pwlib/make/CVS
60 rm -rf ${D}/usr/share/pwlib/tools/CVS
61 rm -rf ${D}/usr/share/pwlib/tools/asnparser/CVS
62 rm -rf ${D}/usr/share/pwlib/src
63 rm -rf ${D}/usr/share/pwlib/include/CVS
64 rm -rf ${D}/usr/share/pwlib/include/ptlib/unix/CVS
65 rm -rf ${D}/usr/share/pwlib/include/ptlib/CVS
66
67 cd ${D}/usr/lib
68 if [ ${ARCH} = "ppc" ] ; then
69 ln -sf libpt_linux_ppc_r.so.${PV} libpt.so
70 else
71 ln -sf libpt_linux_x86_r.so.${PV} libpt.so
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20