summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-11-26 19:00:48 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-11-26 19:00:48 +0000
commite36f70d16c09bcf708ddb156bcc0f15b95339092 (patch)
tree21fc9891df4bfe2048fbe0ae61c7277e4b2a399d /dev-libs
parentImport of chan_capi-cm (diff)
downloadvoip-e36f70d16c09bcf708ddb156bcc0f15b95339092.tar.gz
voip-e36f70d16c09bcf708ddb156bcc0f15b95339092.tar.bz2
voip-e36f70d16c09bcf708ddb156bcc0f15b95339092.zip
Add CVS snapshot ebuild for pwlib
svn path=/trunk/; revision=46
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/pwlib-cvs/Manifest4
-rw-r--r--dev-libs/pwlib-cvs/files/digest-pwlib-cvs-200511251
-rw-r--r--dev-libs/pwlib-cvs/files/pwlib-1.6.3-dyn-esd.patch11
-rw-r--r--dev-libs/pwlib-cvs/files/pwlib-1.8.7-instplugins.diff27
-rw-r--r--dev-libs/pwlib-cvs/pwlib-cvs-20051125.ebuild179
5 files changed, 222 insertions, 0 deletions
diff --git a/dev-libs/pwlib-cvs/Manifest b/dev-libs/pwlib-cvs/Manifest
new file mode 100644
index 0000000..2c46123
--- /dev/null
+++ b/dev-libs/pwlib-cvs/Manifest
@@ -0,0 +1,4 @@
+MD5 d025ebbb9802e8d85edb4a88b1ca9d66 files/digest-pwlib-cvs-20051125 74
+MD5 94fe183a68413eaeb8242cd30532d963 files/pwlib-1.6.3-dyn-esd.patch 366
+MD5 cd832010589d81cab25d2523d62a3401 files/pwlib-1.8.7-instplugins.diff 1044
+MD5 5620f7aa50247c2f8312d5f360e22bfb pwlib-cvs-20051125.ebuild 4855
diff --git a/dev-libs/pwlib-cvs/files/digest-pwlib-cvs-20051125 b/dev-libs/pwlib-cvs/files/digest-pwlib-cvs-20051125
new file mode 100644
index 0000000..d271a2c
--- /dev/null
+++ b/dev-libs/pwlib-cvs/files/digest-pwlib-cvs-20051125
@@ -0,0 +1 @@
+MD5 ccb3c58b5ac13140b857f059a011fda4 pwlib-cvs_20051125-01.tar.gz 2960821
diff --git a/dev-libs/pwlib-cvs/files/pwlib-1.6.3-dyn-esd.patch b/dev-libs/pwlib-cvs/files/pwlib-1.6.3-dyn-esd.patch
new file mode 100644
index 0000000..638fd78
--- /dev/null
+++ b/dev-libs/pwlib-cvs/files/pwlib-1.6.3-dyn-esd.patch
@@ -0,0 +1,11 @@
+--- make/unix.mak 2004-11-16 11:32:34.000000000 +1100
++++ make/unix.mak.N 2005-07-27 14:12:35.000000000 +1000
+@@ -928,7 +928,7 @@
+ # define ESDDIR variables if installed
+ ifdef ESDDIR
+ STDCCFLAGS += -I$(ESDDIR)/include -DUSE_ESD=1
+-ENDLDLIBS += $(ESDDIR)/lib/libesd.a # to avoid name conflicts
++ENDLDLIBS += -lesd # to avoid name conflicts
+ HAS_ESD = 1
+ endif
+
diff --git a/dev-libs/pwlib-cvs/files/pwlib-1.8.7-instplugins.diff b/dev-libs/pwlib-cvs/files/pwlib-1.8.7-instplugins.diff
new file mode 100644
index 0000000..bd59a4b
--- /dev/null
+++ b/dev-libs/pwlib-cvs/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-cvs/pwlib-cvs-20051125.ebuild b/dev-libs/pwlib-cvs/pwlib-cvs-20051125.ebuild
new file mode 100644
index 0000000..5fc94f3
--- /dev/null
+++ b/dev-libs/pwlib-cvs/pwlib-cvs-20051125.ebuild
@@ -0,0 +1,179 @@
+# 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.4.ebuild,v 1.2 2005/07/10 01:11:05 swegener Exp $
+
+inherit eutils flag-o-matic multilib
+
+IUSE="alsa esd ieee1394 ipv6 oss sdl ssl v4l2"
+
+DESCRIPTION="Portable Multiplatform Class Libraries for OpenH323"
+HOMEPAGE="http://www.voxgratia.org/"
+SRC_URI="http://snapshots.seconix.com/cvs/archive/pwlib-cvs_${PV}-01.tar.gz"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="
+ !dev-libs/pwlib
+ dev-libs/expat
+ net-nds/openldap
+ 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.99
+ !>=media-libs/libdc1394-2.0.0_pre1 )
+ esd? ( media-sound/esound )"
+
+DEPEND="${RDEPEND}
+ >=sys-devel/bison-1.28
+ >=sys-devel/flex-2.5.4a
+ >=sys-apps/sed-4"
+
+S="${WORKDIR}/pwlib"
+
+src_unpack() {
+ tar -xzf ${DISTDIR}/${A} -C ${WORKDIR} || die "Unpacking failed"
+
+ 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"
+# myconf="--enable-ipv6"
+
+ 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 ieee1394 dc) \
+ $(use_enable ieee1394 avc) \
+ $(use_enable oss) \
+ $(use_enable alsa) \
+ $(use_enable ipv6) \
+ ${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"
+}
+
+#pkg_preinst() {
+# # remove {lib,include} directories in /usr/share/pwlib
+# # they are getting replaced by symlinks in src_install
+#
+# if [[ -d ${ROOT}usr/share/pwlib/include ]]; then
+# rm -rf ${ROOT}usr/share/pwlib/include
+# fi
+# if [[ -d ${ROOT}usr/share/pwlib/$(get_libdir) ]]; then
+# rm -rf ${ROOT}usr/share/pwlib/$(get_libdir)
+# fi
+#}
+
+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"
+
+ ## vv will try to fix the mess below, requires a lot of patching though...
+
+ # update 2005/08/22:
+ #
+ # locations in *.mak files haven been fixed
+ # directories have been replaced w/ symlinks
+ # (left to not break things, doing some testing atm)
+
+# dosym /usr/include /usr/share/pwlib/include
+# dosym /usr/${libdir} /usr/share/pwlib/${libdir}
+#
+# # just in case...
+# if [[ "${libdir}" = "lib64" ]]; then
+# dosym /usr/share/pwlib/lib64 /usr/share/pwlib/lib
+# fi
+
+ ## ^^ bad stuff
+
+ # 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
+}