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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Aug 3 02:25:45 2003 UTC (10 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
touchups

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/dev-libs/pwlib/pwlib-1.4.7.ebuild,v 1.8 2003/04/01 12:45:27 liquidx Exp $
4
5 S=${WORKDIR}/${PN}
6
7 IUSE="ssl"
8
9 DESCRIPTION="Libs needed for GnomeMeeting"
10 HOMEPAGE="http://www.openh323.org"
11 #SRC_URI="http://www.openh323.org/bin/${PN}_${PV}.tar.gz"
12 SRC_URI="http://www.gnomemeeting.org/downloads/latest/sources/${PN}_${PV}.tar.gz"
13
14 SLOT="0"
15 LICENSE="MPL-1.1"
16 KEYWORDS="x86 ~ppc -sparc"
17
18 DEPEND=">=sys-devel/bison-1.28
19 >=sys-devel/flex-2.5.4a
20 dev-libs/expat
21 ssl? ( dev-libs/openssl )"
22
23 src_unpack() {
24 ewarn ""
25 ewarn "Your compile WILL fail if you are upgrading from"
26 ewarn "a previous version of pwlib."
27 ewarn ""
28 ewarn "emerge unmerge pwlib"
29 ewarn "BEFORE upgrading to a newer version"
30 ewarn ""
31 ewarn "You have been warned :)"
32 ewarn ""
33 sleep 5
34
35 unpack ${A}
36 cd ${S}/make
37 cp unix.mak unix.mak.orig
38 sed \
39 -e "s:-mcpu=\$(CPUTYPE)::" \
40 -e "s:-O3 -DNDEBUG:-DNDEBUG:" \
41 < unix.mak.orig > unix.mak
42
43 # patch unix.mak so it doesn't require annoying upgrades
44 cp unix.mak unix.mak.orig2
45 sed \
46 -e "s:-DP_SSL -I\$(OPENSSLDIR)/include -I\$(OPENSSLDIR)/crypto:-DP_SSL:" \
47 -e "s:^LDFLAGS.*\+= -L\$(OPENSSLDIR)/lib -L\$(OPENSSLDIR):LDFLAGS +=:" \
48 < unix.mak.orig2 > unix.mak
49
50 rm unix.mak.orig unix.mak.orig2
51 }
52
53 src_compile() {
54
55 export PWLIBDIR=${S}
56 export PWLIB_BUILD="yes"
57
58 if [ "`use ssl`" ]; then
59 export OPENSSLFLAG=1
60 export OPENSSLDIR=/usr
61 export OPENSSLLIBS="-lssl -lcrypt"
62 fi
63
64 make optshared || die
65
66 cd tools/asnparser
67 make optshared || die
68
69 }
70
71 src_install() {
72
73 dodir /usr/lib /usr/include/ptlib/unix/ptlib \
74 /usr/share/pwlib /usr/include/ptclib
75
76 cd ${S}
77 cp -a lib/*so* ${D}/usr/lib
78 cp -a include/ptlib.h ${D}/usr/include
79 cp -a include/ptlib/*.h ${D}/usr/include/ptlib/
80 cp -a include/ptlib/*.inl ${D}/usr/include/ptlib/
81 cp -a include/ptlib/unix/ptlib/*.h ${D}/usr/include/ptlib/unix/ptlib
82 cp -a include/ptlib/unix/ptlib/*.inl ${D}/usr/include/ptlib/unix/ptlib
83 cp -a include/ptclib/*.h ${D}/usr/include/ptclib/
84
85 cp -a * ${D}/usr/share/pwlib/
86 rm -rf ${D}/usr/share/pwlib/make/CVS
87 rm -rf ${D}/usr/share/pwlib/tools/CVS
88 rm -rf ${D}/usr/share/pwlib/tools/asnparser/CVS
89 rm -rf ${D}/usr/share/pwlib/src
90 rm -rf ${D}/usr/share/pwlib/include/CVS
91 rm -rf ${D}/usr/share/pwlib/include/ptlib/unix/CVS
92 rm -rf ${D}/usr/share/pwlib/include/ptlib/CVS
93
94 cd ${D}/usr/lib
95 if [ ${ARCH} = "ppc" ] ; then
96 ln -sf libpt_linux_ppc_r.so.${PV} libpt.so
97 else
98 ln -sf libpt_linux_x86_r.so.${PV} libpt.so
99 fi
100
101 }

  ViewVC Help
Powered by ViewVC 1.1.20