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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 # Copyright 1999-2006 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.ebuild,v 1.2 2006/11/08 22:54:54 drizzt 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 ~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 eautoconf || die "autoconf failed"
55 }
56
57 src_compile() {
58 local myconf=""
59 # may cause ICE (bug #70638)
60 filter-flags -fstack-protector
61 # disable-alsa breaks oss, see bug 127677
62 use alsa && myconf="--enable-alsa"
63
64 econf \
65 --enable-plugins \
66 $(use_enable v4l2) \
67 $(use_enable v4l) \
68 $(use_enable ieee1394 dc) \
69 $(use_enable ieee1394 avc) \
70 $(use_enable oss) \
71 $(use_enable ipv6) \
72 $(use_enable sdl) \
73 $(use_enable ssl openssl) \
74 $(use_enable debug exceptions) \
75 $(use_enable debug memcheck) \
76 $(use_enable ldap openldap) \
77 $(use_enable sasl) \
78 $(use_enable xml expat) \
79 ${myconf} \
80 || die "configure failed"
81
82 # Horrible hack to strip out -L/usr/lib to allow upgrades
83 # problem is it adds -L/usr/lib before -L${S} when SSL is
84 # enabled. Same thing for -I/usr/include.
85 # sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" \
86 # -e "s:^\(STDCCFLAGS.*\)-I/usr/include:\1:" \
87 # ${S}/make/ptbuildopts.mak
88
89 # sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" \
90 # -e "s:^\(LDFLAGS[\s]*=.*\) -I/usr/include:\1:" \
91 # -e "s:^\(CCFLAGS[\s]*=.*\) -I/usr/include:\1:" \
92 # ${S}/make/ptlib-config
93
94 emake -j1 opt || die "make failed"
95 }
96
97 src_install() {
98 local libdir libname
99
100 libdir=$(get_libdir)
101
102 # makefile doesn't create ${D}/usr/bin
103 make PREFIX=/usr DESTDIR=${D} install || die "install failed"
104
105 ## vv will try to fix the mess below, requires a lot of patching though...
106
107 # update 2005/08/22:
108 #
109 # locations in *.mak files haven been fixed
110 # directories have been replaced w/ symlinks
111 # (left to not break things, doing some testing atm)
112
113 # Note: reactivating this seems to be the only easy solution to slot pwlib ebuild
114 # and keep applications happy (e.g. gnomemeeting / ekiga)
115
116 # dosym /usr/include /usr/share/pwlib/include
117 # dosym /usr/${libdir} /usr/share/pwlib/${libdir}
118 #
119 # # just in case...
120 # if [[ "${libdir}" = "lib64" ]]; then
121 # dosym /usr/share/pwlib/lib64 /usr/share/pwlib/lib
122 # fi
123
124 ## ^^ bad stuff
125
126 # fix symlink
127 libname=$(basename `ls ${D}/usr/${libdir}/libpt_*_*_r.so.${PV}`)
128 rm ${D}/usr/${libdir}/libpt.so
129 dosym ${libname} /usr/${libdir}/libpt.so
130
131 # fix makefiles to use headers from /usr/include and libs from /usr/lib
132 # instead of /usr/share/pwlib
133 # Note: change to /usr/include/pwlib-${PV} (or whereever includes will be)
134 # once pwlib ebuilds get slotted
135 sed -i -e "s:-I\$(PWLIBDIR)\(/include[a-zA-Z0-9_/-]\+\):-I/usr/include\1:g" \
136 -e "s:-I\$(PWLIBDIR)/include::g" \
137 -e "s:^\(PW_LIBDIR[ \t]\+=\).*:\1 /usr/${libdir}:" \
138 ${D}/usr/share/pwlib/make/*.mak
139
140 # dodgy configure/makefiles forget to expand this
141 # Note: change to /usr/share/pwlib/${PV} (or whatever PWLIBDIR should point to)
142 # once pwlib ebuilds get slotted
143 sed -i -e "s:\${exec_prefix}:/usr:" \
144 ${D}/usr/bin/ptlib-config \
145 ${D}/usr/share/pwlib/make/ptlib-config
146
147 # copy version.h
148 insinto /usr/share/pwlib
149 doins version.h
150
151 dodoc ReadMe.txt ReadMe_QOS.txt History.txt mpl-1.0.htm
152 }

  ViewVC Help
Powered by ViewVC 1.1.20