blob: e2fece5ca24eada3088ef9ffd3b2cef103d8296a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author Bart Verwilst <verwilst@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/dev-libs/pwlib/pwlib-1.2.12-r2.ebuild,v 1.2 2002/03/29 05:00:16 seemant Exp $
S="${WORKDIR}/pwlib"
SRC_URI="http://www.gnomemeeting.org/downloads/latest/sources/pwlib_1.2.12.tar.gz"
DESCRIPTION="Libs needed for GnomeMeeting"
DEPEND="virtual/glibc
>=sys-devel/bison-1.28
>=sys-devel/flex-2.5.4a"
src_unpack() {
unpack pwlib_1.2.12.tar.gz
cd ${S}
patch -p0 < ${FILESDIR}/${PN}-gentoo.diff
}
src_compile() {
cd ${S}
export PWLIBDIR=${S}
export PWLIB_BUILD="yes"
make optshared || die
cd tools/asnparser
make optshared || die
}
src_install() {
mkdir -p ${D}/usr/lib
mkdir -p ${D}/usr/include/ptclib
mkdir -p ${D}/usr/include/ptlib/unix/ptlib
mkdir -p ${D}/usr/share/pwlib
cd ${S}
cp -a lib/*so* ${D}/usr/lib
cp -a include/ptlib.h ${D}/usr/include
cp -a include/ptlib/*.h ${D}/usr/include/ptlib/
cp -a include/ptlib/*.inl ${D}/usr/include/ptlib/
cp -a include/ptlib/unix/ptlib/*.h ${D}/usr/include/ptlib/unix/ptlib
cp -a include/ptlib/unix/ptlib/*.inl ${D}/usr/include/ptlib/unix/ptlib
cp -a include/ptclib/*.h ${D}/usr/include/ptclib/
cp -a * ${D}/usr/share/pwlib/
rm -rf ${D}/usr/share/pwlib/make/CVS
#cp -a tools/* ${D}/usr/share/pwlib/tools/
rm -rf ${D}/usr/share/pwlib/tools/CVS
rm -rf ${D}/usr/share/pwlib/tools/asnparser/CVS
rm -rf ${D}/usr/share/pwlib/src
rm -rf ${D}/usr/share/pwlib/include/CVS
rm -rf ${D}/usr/share/pwlib/include/ptlib/unix/CVS
rm -rf ${D}/usr/share/pwlib/include/ptlib/CVS
cd ${D}/usr/lib
ln -sf libpt_linux_x86_r.so.1.2.12 libpt.so
}
#pkg_postinst() {
#
# cd /usr/share/pwlib
# ln -sf /usr/lib lib
# ln -sf /usr/include/pwlib include
#}
|