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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20