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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Apr 1 02:50:25 2003 UTC (11 years, 4 months ago) by liquidx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
edging closer to solving all our pwlib/openh323 problems

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/dev-libs/pwlib/pwlib-1.4.10.ebuild,v 1.2 2003/03/07 14:04:44 lu_zero Exp $
4
5 S=${WORKDIR}/${PN}
6
7 IUSE="ssl"
8
9 DESCRIPTION="Libs needed for GnomeMeeting"
10 HOMEPAGE="http://www.openh323.org"
11 SRC_URI="http://www.openh323.org/bin/${PN}_${PV}.tar.gz"
12
13 SLOT="0"
14 LICENSE="MPL-1.1"
15 KEYWORDS="~x86 ~ppc -sparc"
16
17 DEPEND=">=sys-devel/bison-1.28
18 >=sys-devel/flex-2.5.4a
19 dev-libs/expat
20 ssl? ( dev-libs/openssl )"
21
22 src_unpack() {
23 ewarn ""
24 ewarn "Your compile WILL fail if you are upgrading from"
25 ewarn "a previous version of pwlib."
26 ewarn ""
27 ewarn "emerge unmerge pwlib"
28 ewarn "BEFORE upgrading to a newer version"
29 ewarn ""
30 ewarn "You have been warned :)"
31 ewarn ""
32 sleep 5
33
34 unpack ${A}
35 cd ${S}/make
36 cp unix.mak unix.mak.orig
37 sed \
38 -e "s:-mcpu=\$(CPUTYPE)::" \
39 -e "s:-O3 -DNDEBUG:-DNDEBUG:" \
40 < unix.mak.orig > unix.mak
41 }
42
43 src_compile() {
44
45 export PWLIBDIR=${S}
46 export PWLIB_BUILD="yes"
47
48 if [ "`use ssl`" ]; then
49 export OPENSSLFLAG=1
50 export OPENSSLDIR=/usr
51 export OPENSSLLIBS="-lssl -lcrypt"
52 fi
53
54 make optshared || die
55
56 cd tools/asnparser
57 make optshared || die
58
59 }
60
61 src_install() {
62
63 dodir /usr/lib /usr/include/ptlib/unix/ptlib \
64 /usr/share/pwlib /usr/include/ptclib
65
66 cd ${S}
67 cp -a lib/*so* ${D}/usr/lib
68 cp -a include/ptlib.h ${D}/usr/include
69 cp -a include/ptlib/*.h ${D}/usr/include/ptlib/
70 cp -a include/ptlib/*.inl ${D}/usr/include/ptlib/
71 cp -a include/ptlib/unix/ptlib/*.h ${D}/usr/include/ptlib/unix/ptlib
72 cp -a include/ptlib/unix/ptlib/*.inl ${D}/usr/include/ptlib/unix/ptlib
73 cp -a include/ptclib/*.h ${D}/usr/include/ptclib/
74
75 cp -a * ${D}/usr/share/pwlib/
76 rm -rf ${D}/usr/share/pwlib/make/CVS
77 rm -rf ${D}/usr/share/pwlib/tools/CVS
78 rm -rf ${D}/usr/share/pwlib/tools/asnparser/CVS
79 rm -rf ${D}/usr/share/pwlib/src
80 rm -rf ${D}/usr/share/pwlib/include/CVS
81 rm -rf ${D}/usr/share/pwlib/include/ptlib/unix/CVS
82 rm -rf ${D}/usr/share/pwlib/include/ptlib/CVS
83
84 cd ${D}/usr/lib
85 if [ ${ARCH} = "ppc" ] ; then
86 ln -sf libpt_linux_ppc_r.so.${PV} libpt.so
87 else
88 ln -sf libpt_linux_x86_r.so.${PV} libpt.so
89 fi
90
91 }

  ViewVC Help
Powered by ViewVC 1.1.20