summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-09-12 20:03:09 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-09-12 20:03:09 +0000
commit096c83aef0bc9b2dc94ca75969df350d8796602d (patch)
tree4c49c1add057275c3d5296ee58e2fa8074930a5f /dev-libs/pwlib
parentGoing stable. (diff)
downloadgentoo-2-096c83aef0bc9b2dc94ca75969df350d8796602d.tar.gz
gentoo-2-096c83aef0bc9b2dc94ca75969df350d8796602d.tar.bz2
gentoo-2-096c83aef0bc9b2dc94ca75969df350d8796602d.zip
Version bump, finally removed /usr/share/pwlib/{lib,lib32,lib64,include} symlinks and other little cleanups.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'dev-libs/pwlib')
-rw-r--r--dev-libs/pwlib/ChangeLog9
-rw-r--r--dev-libs/pwlib/files/digest-pwlib-1.8.71
-rw-r--r--dev-libs/pwlib/files/pwlib-1.8.7-instplugins.diff27
-rw-r--r--dev-libs/pwlib/pwlib-1.8.7.ebuild151
4 files changed, 187 insertions, 1 deletions
diff --git a/dev-libs/pwlib/ChangeLog b/dev-libs/pwlib/ChangeLog
index 2587172925ac..b876fa27d33a 100644
--- a/dev-libs/pwlib/ChangeLog
+++ b/dev-libs/pwlib/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-libs/pwlib
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/pwlib/ChangeLog,v 1.91 2005/09/12 15:49:52 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/pwlib/ChangeLog,v 1.92 2005/09/12 20:03:09 stkn Exp $
+
+*pwlib-1.8.7 (12 Sep 2005)
+
+ 12 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/pwlib-1.8.7-instplugins.diff, +pwlib-1.8.7.ebuild:
+ Version bump, finally removed /usr/share/pwlib/{lib,lib32,lib64,include}
+ symlinks and other little cleanups.
12 Sep 2005; Aron Griffis <agriffis@gentoo.org> pwlib-1.8.4.ebuild:
Mark 1.8.4 stable on alpha
diff --git a/dev-libs/pwlib/files/digest-pwlib-1.8.7 b/dev-libs/pwlib/files/digest-pwlib-1.8.7
new file mode 100644
index 000000000000..61aaaa871be9
--- /dev/null
+++ b/dev-libs/pwlib/files/digest-pwlib-1.8.7
@@ -0,0 +1 @@
+MD5 ba4fddd6cb8d4420cc18f308ccf48e00 pwlib-1.8.7.tar.gz 1900458
diff --git a/dev-libs/pwlib/files/pwlib-1.8.7-instplugins.diff b/dev-libs/pwlib/files/pwlib-1.8.7-instplugins.diff
new file mode 100644
index 000000000000..bd59a4b9d6a7
--- /dev/null
+++ b/dev-libs/pwlib/files/pwlib-1.8.7-instplugins.diff
@@ -0,0 +1,27 @@
+--- pwlib-1.8.7/Makefile.in.orig 2004-06-24 12:46:48.000000000 +0000
++++ pwlib-1.8.7/Makefile.in 2005-09-09 15:48:10.000000000 +0000
+@@ -268,14 +268,16 @@
+ ln -sf $(PTLIB_FILE) libpt.@SHAREDLIBEXT@ \
+ )
+ ifeq (1, $(HAS_PLUGINS))
+- cd plugins/pwlib/device/ ; \
+- ( for dir in ./* ;\
+- do mkdir -p $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir ; \
+- chmod 755 $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir ; \
+- (for fn in ./$$dir/*.so ; \
+- do $(INSTALL) -m 444 $$fn $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir; \
+- done ); \
+- done )
++ if [ -d plugins/pwlib/device ] ; then \
++ cd plugins/pwlib/device/ ; \
++ ( for dir in ./* ;\
++ do mkdir -p $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir ; \
++ chmod 755 $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir ; \
++ (for fn in ./$$dir/*.so ; \
++ do $(INSTALL) -m 444 $$fn $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir; \
++ done ); \
++ done ) \
++ fi
+ endif
+ $(INSTALL) -m 444 include/ptlib.h $(DESTDIR)$(PREFIX)/include
+ $(INSTALL) -m 444 include/ptbuildopts.h $(DESTDIR)$(PREFIX)/include
diff --git a/dev-libs/pwlib/pwlib-1.8.7.ebuild b/dev-libs/pwlib/pwlib-1.8.7.ebuild
new file mode 100644
index 000000000000..5e23bc9df447
--- /dev/null
+++ b/dev-libs/pwlib/pwlib-1.8.7.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/pwlib/pwlib-1.8.7.ebuild,v 1.1 2005/09/12 20:03:09 stkn Exp $
+
+inherit eutils flag-o-matic multilib
+
+IUSE="alsa esd ieee1394 oss sdl ssl v4l2"
+
+DESCRIPTION="Portable Multiplatform Class Libraries for OpenH323"
+HOMEPAGE="http://www.openh323.org/"
+SRC_URI="http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/${P}.tar.gz"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="
+ dev-libs/expat
+ net-nds/openldap
+ esd? ( media-sound/esound )
+ sdl? ( media-libs/libsdl )
+ ssl? ( dev-libs/openssl )
+ alsa? ( media-libs/alsa-lib )
+ ieee1394? ( media-libs/libdv
+ sys-libs/libavc1394
+ sys-libs/libraw1394
+ <media-libs/libdc1394-1.9.9
+ !>=media-libs/libdc1394-2.0.0_pre0 )"
+
+DEPEND="${REDEPEND}
+ >=sys-devel/bison-1.28
+ >=sys-devel/flex-2.5.4a
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # filter out -O3 and -mcpu embedded compiler flags
+ sed -i \
+ -e "s:-mcpu=\$(CPUTYPE)::" \
+ -e "s:-O3 -DNDEBUG:-DNDEBUG:" \
+ make/unix.mak
+
+ # newer esound package doesn't install libesd.a anymore,
+ # use dynamic library instead (fixes #100432)
+ epatch ${FILESDIR}/pwlib-1.6.3-dyn-esd.patch
+
+ # don't break make install if there are no plugins to install
+ epatch ${FILESDIR}/pwlib-1.8.7-instplugins.diff
+}
+
+src_compile() {
+ local myconf
+
+ # may cause ICE (bug #70638)
+ filter-flags -fstack-protector
+
+ if use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR="/usr"
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ ## gnomemeeting-1.00 requires pwlib to be built w/ IPV6 support
+ ## (even if itself is built without...)
+ #use ipv6 \
+ # && myconf="${myconf} --enable-ipv6" \
+ # || myconf="${myconf} --disable-ipv6"
+
+ # enable default plugins and force ipv6
+ myconf="--enable-ipv6 --enable-v4l"
+
+ use ieee1394 \
+ && myconf="${myconf} --enable-avc --enable-dc" \
+ || myconf="${myconf} --disable-avc --disable-dc"
+
+ use alsa \
+ && myconf="${myconf} --enable-alsa"
+
+ if use esd; then
+ # fixes bug #45059
+ export ESDDIR=/usr
+
+ # ESD includes are in /usr/include?
+ # remove include path, bad things may happen if we leave it in there
+ sed -i -e "s:-I\$(ESDDIR)/include::" \
+ ${S}/make/unix.mak
+ fi
+
+ econf \
+ --enable-plugins \
+ $(use_enable v4l2) \
+ $(use_enable sdl) \
+ $(use_enable oss) \
+ ${myconf} || die "configure failed"
+
+ # Horrible hack to strip out -L/usr/lib to allow upgrades
+ # problem is it adds -L/usr/lib before -L${S} when SSL is
+ # enabled. Same thing for -I/usr/include.
+ sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" \
+ -e "s:^\(STDCCFLAGS.*\)-I/usr/include:\1:" \
+ ${S}/make/ptbuildopts.mak
+
+ sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" \
+ -e "s:^\(LDFLAGS[\s]*=.*\) -I/usr/include:\1:" \
+ -e "s:^\(CCFLAGS[\s]*=.*\) -I/usr/include:\1:" \
+ ${S}/make/ptlib-config
+
+ emake -j1 opt || die "make failed"
+}
+
+src_install() {
+ local libdir libname
+
+ libdir=$(get_libdir)
+
+ # makefile doesn't create ${D}/usr/bin
+ dodir /usr/bin
+ make PREFIX=/usr DESTDIR=${D} install || die "install failed"
+
+ # fix symlink
+ rm ${D}/usr/${libdir}/libpt.so
+
+ libname=$(basename `ls ${D}/usr/${libdir}/libpt_*_*_r.so.${PV}`)
+ dosym /usr/${libdir}/${libname} /usr/${libdir}/libpt.so
+
+ # strip ${S} stuff
+ sed -i -e "s:^PWLIBDIR.*:PWLIBDIR=/usr/share/pwlib:" \
+ ${D}/usr/bin/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptbuildopts.mak
+
+ # fix makefiles to use headers from /usr/include and libs from /usr/lib
+ # instead of /usr/share/pwlib
+ sed -i -e "s:-I\$(PWLIBDIR)\(/include[a-zA-Z0-9_/-]\+\):-I/usr/include\1:g" \
+ -e "s:-I\$(PWLIBDIR)/include::g" \
+ -e "s:^\(PW_LIBDIR[ \t]\+=\).*:\1 /usr/${libdir}:" \
+ ${D}/usr/share/pwlib/make/*.mak
+
+ # dodgy configure/makefiles forget to expand this
+ sed -i -e "s:\${exec_prefix}:/usr:" \
+ ${D}/usr/bin/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptlib-config
+
+ # copy version.h
+ insinto /usr/share/pwlib
+ doins version.h
+
+ dodoc ReadMe.txt ReadMe_QOS.txt History.txt mpl-1.0.htm
+}