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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon Aug 15 19:19:36 2005 UTC (9 years, 3 months ago) by stkn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Removing obsolete ebuilds.
(Portage version: 2.0.51.22-r2)

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.2.ebuild,v 1.8 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 MAKEOPTS="${MAKEOPTS} -j1"
23 S=${WORKDIR}/${PN}
24
25 src_unpack() {
26 unpack ${A}
27 cd ${S}/make
28
29 # filter out -O3 and -mcpu embedded compiler flags
30 sed -i \
31 -e "s:-mcpu=\$(CPUTYPE)::" \
32 -e "s:-O3 -DNDEBUG:-DNDEBUG:" \
33 unix.mak
34 }
35
36 src_compile() {
37 if use ssl; then
38 export OPENSSLFLAG=1
39 export OPENSSLDIR=/usr
40 export OPENSSLLIBS="-lssl -lcrypt"
41 fi
42
43 econf || die "configure failed"
44
45 # horrible hack to strip out -L/usr/lib to allow upgrades
46 # problem is it adds -L/usr/lib before -L${S} when SSL is enabled
47 sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" ${S}/make/ptbuildopts.mak
48 sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" ${S}/make/ptlib-config
49
50 emake opt || die "make failed"
51 }
52
53 src_install() {
54 # make these because the makefile isn't smart enough
55 dodir /usr/bin /usr/lib /usr/share /usr/include
56 make PREFIX=${D}/usr install || die "install failed"
57
58 # these are for compiling openh323
59 # NOTE: symlinks don't work when upgrading
60 # FIXME: probably should fix this with ptlib-config
61 dodir /usr/share/pwlib/include
62 cp -r ${D}/usr/include/* ${D}/usr/share/pwlib/include
63
64 dodir /usr/share/pwlib/lib
65 for x in ${D}/usr/lib/*; do
66 dosym /usr/lib/`basename ${x}` /usr/share/pwlib/lib/`basename ${x}`
67 done
68
69 # remove CVS dirs
70 find ${D} -name CVS -type d | xargs rm -rf
71
72 # fix symlink
73 rm ${D}/usr/lib/libpt.so
74 if [ ${ARCH} = "ppc" ] ; then
75 dosym /usr/lib/libpt_linux_ppc_r.so.${PV} /usr/lib/libpt.so
76 else
77 dosym /usr/lib/libpt_linux_x86_r.so.${PV} /usr/lib/libpt.so
78 fi
79
80 # strip ${S} stuff
81 dosed "s:^PWLIBDIR.*:PWLIBDIR=/usr/share/pwlib:" /usr/bin/ptlib-config
82 dosed "s:^PWLIBDIR.*:PWLIBDIR=/usr/share/pwlib:" /usr/share/pwlib/make/ptbuildopts.mak
83
84 # dodgy configure/makefiles forget to expand this
85 dosed 's:${exec_prefix}:/usr:' /usr/bin/ptlib-config
86
87 # satisfy ptlib.mak's weird definition (should check if true for future versions)
88 cp ${D}/usr/bin/ptlib-config ${D}/usr/share/pwlib/make/ptlib-config
89
90 dodoc ReadMe.txt History.txt
91 }

  ViewVC Help
Powered by ViewVC 1.1.20