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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Tue Oct 3 10:36:20 2006 UTC (8 years, 2 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
remove old vulnerable ebuilds wrt bug 140537
(Portage version: 2.1.2_pre2-r1)
 (Unsigned Manifest commit)

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.5.0.ebuild,v 1.14 2005/01/08 20:12:42 stkn Exp $
4
5 DESCRIPTION="Portable Multiplatform Class Libraries for OpenH323"
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="ldap sdl ssl"
13
14 DEPEND=">=sys-devel/bison-1.28
15 >=sys-devel/flex-2.5.4a
16 dev-libs/expat
17 >=sys-apps/sed-4
18 ldap? ( net-nds/openldap )
19 sdl? ( media-libs/libsdl )
20 ssl? ( dev-libs/openssl )"
21
22 S=${WORKDIR}/${PN}
23
24 src_unpack() {
25 unpack ${A}
26 cd ${S}/make
27
28 # filter out -O3 and -mcpu embedded compiler flags
29 sed -i \
30 -e "s:-mcpu=\$(CPUTYPE)::" \
31 -e "s:-O3 -DNDEBUG:-DNDEBUG:" \
32 unix.mak
33 }
34
35 src_compile() {
36 if use ssl; then
37 export OPENSSLFLAG=1
38 export OPENSSLDIR=/usr
39 export OPENSSLLIBS="-lssl -lcrypt"
40 fi
41
42 econf || die "configure failed"
43
44 # horrible hack to strip out -L/usr/lib to allow upgrades
45 # problem is it adds -L/usr/lib before -L${S} when SSL is enabled
46 sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" ${S}/make/ptbuildopts.mak
47 sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" ${S}/make/ptlib-config
48
49 make opt || die "make failed"
50 }
51
52 src_install() {
53 # make these because the makefile isn't smart enough
54 dodir /usr/bin /usr/lib /usr/share /usr/include
55 make PREFIX=${D}/usr install || die "install failed"
56
57 # these are for compiling openh323
58 # NOTE: symlinks don't work when upgrading
59 # FIXME: probably should fix this with ptlib-config
60 dodir /usr/share/pwlib/include
61 cp -r ${D}/usr/include/* ${D}/usr/share/pwlib/include
62
63 dodir /usr/share/pwlib/lib
64 for x in ${D}/usr/lib/*; do
65 dosym /usr/lib/`basename ${x}` /usr/share/pwlib/lib/`basename ${x}`
66 done
67
68 # remove CVS dirs
69 find ${D} -name CVS -type d | xargs rm -rf
70
71 # fix symlink
72 rm ${D}/usr/lib/libpt.so
73 if [ ${ARCH} = "ppc" ] ; then
74 dosym /usr/lib/libpt_linux_ppc_r.so.${PV} /usr/lib/libpt.so
75 else
76 dosym /usr/lib/libpt_linux_x86_r.so.${PV} /usr/lib/libpt.so
77 fi
78
79 # strip ${S} stuff
80 dosed "s:^PWLIBDIR.*:PWLIBDIR=/usr/share/pwlib:" /usr/bin/ptlib-config
81 dosed "s:^PWLIBDIR.*:PWLIBDIR=/usr/share/pwlib:" /usr/share/pwlib/make/ptbuildopts.mak
82
83 dodoc ReadMe.txt History.txt
84 }

  ViewVC Help
Powered by ViewVC 1.1.20