diff options
author | 2007-04-19 13:10:16 +0000 | |
---|---|---|
committer | 2007-04-19 13:10:16 +0000 | |
commit | 84f6721603fa28539b849e16b296a298de967fa7 (patch) | |
tree | ff32a7c83e9470c5f80e8d4413633a1cfa03dc87 /net-misc/libupnp | |
parent | Put everything back the way it was. fxruby12 can't use 1.62-r2 library name (diff) | |
download | gentoo-2-84f6721603fa28539b849e16b296a298de967fa7.tar.gz gentoo-2-84f6721603fa28539b849e16b296a298de967fa7.tar.bz2 gentoo-2-84f6721603fa28539b849e16b296a298de967fa7.zip |
Bumping to revision 1.4.4-r1 to fix compiling on Gentoo/FreeBSD
(Portage version: 2.1.2.4)
Diffstat (limited to 'net-misc/libupnp')
-rw-r--r-- | net-misc/libupnp/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/libupnp/files/digest-libupnp-1.4.4-r1 | 3 | ||||
-rw-r--r-- | net-misc/libupnp/files/libupnp-1.4.4-r1-fbsd.patch | 60 | ||||
-rw-r--r-- | net-misc/libupnp/libupnp-1.4.4-r1.ebuild | 47 |
4 files changed, 116 insertions, 1 deletions
diff --git a/net-misc/libupnp/ChangeLog b/net-misc/libupnp/ChangeLog index f1d470f1bafb..070bf4ce0aa1 100644 --- a/net-misc/libupnp/ChangeLog +++ b/net-misc/libupnp/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/libupnp # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/libupnp/ChangeLog,v 1.10 2007/04/17 18:43:03 gurligebis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/libupnp/ChangeLog,v 1.11 2007/04/19 13:10:16 gurligebis Exp $ + + 19 Apr 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org> +libupnp-1.4.4-r1.ebuild: + Bumping to revision 1.4.4-r1 to fix compiling on Gentoo/FreeBSD. + +*libupnp-1.4.4-r1 (19 Apr 2007) 17 Apr 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org> -libupnp-1.4.2.ebuild: Removing old version, and moving keywords to 1.4.4 diff --git a/net-misc/libupnp/files/digest-libupnp-1.4.4-r1 b/net-misc/libupnp/files/digest-libupnp-1.4.4-r1 new file mode 100644 index 000000000000..75614e901e50 --- /dev/null +++ b/net-misc/libupnp/files/digest-libupnp-1.4.4-r1 @@ -0,0 +1,3 @@ +MD5 79d2beeb7d78a5e080a52a7e321b7f22 libupnp-1.4.4.tar.bz2 1098948 +RMD160 3d0edbf93935a5371c8e951b459d3e1d81278f7e libupnp-1.4.4.tar.bz2 1098948 +SHA256 72e2069cd2541e7c4b5c8e1f2e9b3d02cbd93e94bfbac23e97d50045a6899001 libupnp-1.4.4.tar.bz2 1098948 diff --git a/net-misc/libupnp/files/libupnp-1.4.4-r1-fbsd.patch b/net-misc/libupnp/files/libupnp-1.4.4-r1-fbsd.patch new file mode 100644 index 000000000000..6009ddb3f144 --- /dev/null +++ b/net-misc/libupnp/files/libupnp-1.4.4-r1-fbsd.patch @@ -0,0 +1,60 @@ +--- threadutil/inc/ithread.h.orig 2007-03-13 03:19:24 +0000 ++++ threadutil/inc/ithread.h 2007-04-18 19:54:22 +0000 +@@ -47,6 +47,10 @@ + #include <unistd.h> + #endif + ++#ifdef __FreeBSD__ ++#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE ++#endif ++ + #ifdef PTHREAD_MUTEX_RECURSIVE + /* This system has SuS2-compliant mutex attributes. + * E.g. on Cygwin, where we don't have the old nonportable (NP) symbols +--- upnp/src/genlib/net/uri/uri.c.orig 2007-04-18 20:46:43 +0000 ++++ upnp/src/genlib/net/uri/uri.c 2007-04-18 20:49:08 +0000 +@@ -34,8 +34,11 @@ + ************************************************************************/ + + #ifdef __FreeBSD__ ++#include <osreldate.h> ++#if __FreeBSD_version < 601103 + #include <lwres/netdb.h> + #endif ++#endif + #include "config.h" + #include "uri.h" + +@@ -620,7 +623,7 @@ + &h, + temp_hostbyname_buff, + BUFFER_SIZE, &errcode ); +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) && __FreeBSD_version < 601103 + h = lwres_gethostbyname_r( temp_host_name, + &h_buf, + temp_hostbyname_buff, +--- configure.ac (revision 157) ++++ configure.ac (working copy) +@@ -163,13 +163,6 @@ + # + # Default compilation flags + # +-if test x"$enable_debug" = xyes; then +- # AC_PROG_CC already sets CFLAGS to "-g -O2" by default +- : +-else +- # add optimise for size +- AX_CFLAGS_GCC_OPTION([-Os]) +-fi + AX_CFLAGS_WARN_ALL + + # +@@ -203,6 +196,7 @@ + AC_FUNC_VPRINTF + AC_FUNC_FSEEKO + ++AC_CHECK_FUNCS(ftime,, [AC_CHECK_LIB(compat, ftime)]) + + # + # Checks for POSIX Threads diff --git a/net-misc/libupnp/libupnp-1.4.4-r1.ebuild b/net-misc/libupnp/libupnp-1.4.4-r1.ebuild new file mode 100644 index 000000000000..6d5111b6d86f --- /dev/null +++ b/net-misc/libupnp/libupnp-1.4.4-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/libupnp/libupnp-1.4.4-r1.ebuild,v 1.1 2007/04/19 13:10:16 gurligebis Exp $ + +WANT_AUTOMAKE=1.9 + +inherit eutils flag-o-matic autotools + +DESCRIPTION="An Portable Open Source UPnP Development Kit" +HOMEPAGE="http://pupnp.sourceforge.net/" +SRC_URI="mirror://sourceforge/pupnp/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug" + +RDEPEND="!net-misc/upnp" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-${PVR}-fbsd.patch + + AT_M4DIR="m4" eautoreconf + + # fix tests + chmod +x ixml/test/test_document.sh +} + +src_compile() { + use x86-fbsd && replace-flags -O? -O1 + # w/o docdir to avoid sandbox violations + econf \ + $(use_enable debug) \ + --without-docdir \ + || die "econf failed" + emake || die "emake failed" +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed" + dobin upnp/.libs/upnp_tv_{ctrlpt,device} + dodoc NEWS README ChangeLog + dohtml upnp/doc/*.pdf +} |