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

Contents of /dev-libs/pwlib/pwlib-1.4.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Apr 10 22:00:53 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/dev-libs/pwlib/pwlib-1.4.11.ebuild,v 1.11 2005/01/08 20:12:42 stkn Exp $
4
5 DESCRIPTION="Libs needed for GnomeMeeting"
6 HOMEPAGE="http://www.openh323.org/"
7 SRC_URI="http://www.openh323.org/bin/${PN}_${PV}.tar.gz"
8
9 LICENSE="MPL-1.1"
10 SLOT="0"
11 KEYWORDS="x86 ppc -sparc"
12 IUSE="ssl"
13
14 DEPEND=">=sys-devel/bison-1.28
15 >=sys-devel/flex-2.5.4a
16 dev-libs/expat
17 ssl? ( dev-libs/openssl )"
18
19 S=${WORKDIR}/${PN}
20
21 src_unpack() {
22 unpack ${A}
23 cd ${S}/make
24
25 # filter out -O3 and -mcpu embedded compiler flags
26 sed -i \
27 -e "s:-mcpu=\$(CPUTYPE)::" \
28 -e "s:-O3 -DNDEBUG:-DNDEBUG:" \
29 unix.mak
30
31 # patch unix.mak so it doesn't require annoying upgrades
32 sed -i \
33 -e "s:-DP_SSL -I\$(OPENSSLDIR)/include -I\$(OPENSSLDIR)/crypto:-DP_SSL:" \
34 -e "s:^LDFLAGS.*\+= -L\$(OPENSSLDIR)/lib -L\$(OPENSSLDIR):LDFLAGS +=:" \
35 unix.mak
36 }
37
38 src_compile() {
39 export PWLIBDIR=${S}
40 export PWLIB_BUILD="yes"
41
42 if use ssl; then
43 export OPENSSLFLAG=1
44 export OPENSSLDIR=/usr
45 export OPENSSLLIBS="-lssl -lcrypt"
46 fi
47
48 make optshared || die
49
50 cd tools/asnparser
51 make optshared || die
52 }
53
54 src_install() {
55 dodir /usr/lib /usr/include/ptlib/unix/ptlib \
56 /usr/share/pwlib /usr/include/ptclib
57
58 cd ${S}
59 cp -a lib/*so* ${D}/usr/lib
60 cp -a include/ptlib.h ${D}/usr/include
61 cp -a include/ptlib/*.h ${D}/usr/include/ptlib/
62 cp -a include/ptlib/*.inl ${D}/usr/include/ptlib/
63 cp -a include/ptlib/unix/ptlib/*.h ${D}/usr/include/ptlib/unix/ptlib
64 cp -a include/ptlib/unix/ptlib/*.inl ${D}/usr/include/ptlib/unix/ptlib
65 cp -a include/ptclib/*.h ${D}/usr/include/ptclib/
66
67 cp -a * ${D}/usr/share/pwlib/
68 rm -rf ${D}/usr/share/pwlib/make/CVS
69 rm -rf ${D}/usr/share/pwlib/tools/CVS
70 rm -rf ${D}/usr/share/pwlib/tools/asnparser/CVS
71 rm -rf ${D}/usr/share/pwlib/src
72 rm -rf ${D}/usr/share/pwlib/include/CVS
73 rm -rf ${D}/usr/share/pwlib/include/ptlib/unix/CVS
74 rm -rf ${D}/usr/share/pwlib/include/ptlib/CVS
75
76 cd ${D}/usr/lib
77 if [ ${ARCH} = "ppc" ] ; then
78 ln -sf libpt_linux_ppc_r.so.${PV} libpt.so
79 else
80 ln -sf libpt_linux_x86_r.so.${PV} libpt.so
81 fi
82 }

  ViewVC Help
Powered by ViewVC 1.1.20