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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Apr 14 08:16:57 2007 UTC (7 years, 3 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
remove old
(Portage version: 2.1.2.3)

1 # Copyright 1999-2007 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.10.2-r1.ebuild,v 1.9 2007/01/19 01:15:04 jer Exp $
4
5 WANT_AUTOCONF="latest"
6
7 inherit eutils flag-o-matic multilib autotools
8
9 IUSE="alsa debug ieee1394 ipv6 ldap oss sasl sdl ssl v4l v4l2 xml"
10
11 DESCRIPTION="Portable Multiplatform Class Libraries used by several VoIP applications"
12 HOMEPAGE="http://www.ekiga.org"
13 SRC_URI="http://seconix.com/misc/ekiga-2.0.3/${P}.tar.gz"
14
15 LICENSE="MPL-1.1"
16 SLOT="0"
17 KEYWORDS="alpha amd64 hppa ~ia64 ppc ppc64 sparc x86"
18
19 RDEPEND="alsa? ( media-libs/alsa-lib )
20 ieee1394? ( media-libs/libdv
21 sys-libs/libavc1394
22 sys-libs/libraw1394
23 <media-libs/libdc1394-1.9.99 )
24 ldap? ( net-nds/openldap )
25 sasl? ( dev-libs/cyrus-sasl )
26 sdl? ( media-libs/libsdl )
27 ssl? ( dev-libs/openssl )
28 xml? ( dev-libs/expat )"
29 DEPEND="${RDEPEND}
30 >=sys-devel/bison-1.28
31 >=sys-devel/flex-2.5.4a
32 >=sys-apps/sed-4"
33
34 src_unpack() {
35 unpack ${A}
36 cd ${S}
37
38 # filter out -O3, -Os and -mcpu embedded compiler flags
39 sed -i \
40 -e "s:-mcpu=\$(CPUTYPE)::" \
41 -e "s:-O3 -DNDEBUG:-DNDEBUG:" \
42 -e "s:-Os::" \
43 make/unix.mak
44
45 # don't break make install if there are no plugins to install
46 epatch ${FILESDIR}/pwlib-1.8.7-instplugins.diff
47
48 # # fix "command not found" error during configure run
49 # epatch ${FILESDIR}/pwlib-1.9.2-ldap-configure.patch
50
51 # use sdl-config to query required libraries
52 epatch ${FILESDIR}/pwlib-1.9.3-sdl-configure.patch
53
54 # this patch fixes bugs: #145424 and #140358
55 epatch ${FILESDIR}/${P}-asm.patch
56
57 eautoconf || die "autoconf failed"
58 }
59
60 src_compile() {
61 local myconf=""
62 # may cause ICE (bug #70638)
63 filter-flags -fstack-protector
64 # disable-alsa breaks oss, see bug 127677
65 use alsa && myconf="--enable-alsa"
66
67 econf \
68 --enable-plugins \
69 $(use_enable v4l2) \
70 $(use_enable v4l) \
71 $(use_enable ieee1394 dc) \
72 $(use_enable ieee1394 avc) \
73 $(use_enable oss) \
74 $(use_enable ipv6) \
75 $(use_enable sdl) \
76 $(use_enable ssl openssl) \
77 $(use_enable debug exceptions) \
78 $(use_enable debug memcheck) \
79 $(use_enable ldap openldap) \
80 $(use_enable sasl) \
81 $(use_enable xml expat) \
82 ${myconf} \
83 || die "configure failed"
84
85 # Horrible hack to strip out -L/usr/lib to allow upgrades
86 # problem is it adds -L/usr/lib before -L${S} when SSL is
87 # enabled. Same thing for -I/usr/include.
88 # sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" \
89 # -e "s:^\(STDCCFLAGS.*\)-I/usr/include:\1:" \
90 # ${S}/make/ptbuildopts.mak
91
92 # sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" \
93 # -e "s:^\(LDFLAGS[\s]*=.*\) -I/usr/include:\1:" \
94 # -e "s:^\(CCFLAGS[\s]*=.*\) -I/usr/include:\1:" \
95 # ${S}/make/ptlib-config
96
97 emake -j1 opt || die "make failed"
98 }
99
100 src_install() {
101 local libdir libname
102
103 libdir=$(get_libdir)
104
105 # makefile doesn't create ${D}/usr/bin
106 make PREFIX=/usr DESTDIR=${D} install || die "install failed"
107
108 ## vv will try to fix the mess below, requires a lot of patching though...
109
110 # update 2005/08/22:
111 #
112 # locations in *.mak files haven been fixed
113 # directories have been replaced w/ symlinks
114 # (left to not break things, doing some testing atm)
115
116 # Note: reactivating this seems to be the only easy solution to slot pwlib ebuild
117 # and keep applications happy (e.g. gnomemeeting / ekiga)
118
119 # dosym /usr/include /usr/share/pwlib/include
120 # dosym /usr/${libdir} /usr/share/pwlib/${libdir}
121 #
122 # # just in case...
123 # if [[ "${libdir}" = "lib64" ]]; then
124 # dosym /usr/share/pwlib/lib64 /usr/share/pwlib/lib
125 # fi
126
127 ## ^^ bad stuff
128
129 # fix symlink
130 libname=$(basename `ls ${D}/usr/${libdir}/libpt_*_*_r.so.${PV}`)
131 rm ${D}/usr/${libdir}/libpt.so
132 dosym ${libname} /usr/${libdir}/libpt.so
133
134 # fix makefiles to use headers from /usr/include and libs from /usr/lib
135 # instead of /usr/share/pwlib
136 # Note: change to /usr/include/pwlib-${PV} (or whereever includes will be)
137 # once pwlib ebuilds get slotted
138 sed -i -e "s:-I\$(PWLIBDIR)\(/include[a-zA-Z0-9_/-]\+\):-I/usr/include\1:g" \
139 -e "s:-I\$(PWLIBDIR)/include::g" \
140 -e "s:^\(PW_LIBDIR[ \t]\+=\).*:\1 /usr/${libdir}:" \
141 ${D}/usr/share/pwlib/make/*.mak
142
143 # dodgy configure/makefiles forget to expand this
144 # Note: change to /usr/share/pwlib/${PV} (or whatever PWLIBDIR should point to)
145 # once pwlib ebuilds get slotted
146 sed -i -e "s:\${exec_prefix}:/usr:" \
147 ${D}/usr/bin/ptlib-config \
148 ${D}/usr/share/pwlib/make/ptlib-config
149
150 # copy version.h
151 insinto /usr/share/pwlib
152 doins version.h
153
154 dodoc ReadMe.txt ReadMe_QOS.txt History.txt mpl-1.0.htm
155 }

  ViewVC Help
Powered by ViewVC 1.1.20