diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-08-08 01:22:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-08-08 01:22:47 +0000 |
commit | 4864c864445f3108ddfe2d1faa9578f234a67871 (patch) | |
tree | ead34c805ffb259f7f35286acded2c3eb931754c /net-libs | |
parent | Depend on either mythtv or mythfrontend. (diff) | |
download | historical-4864c864445f3108ddfe2d1faa9578f234a67871.tar.gz historical-4864c864445f3108ddfe2d1faa9578f234a67871.tar.bz2 historical-4864c864445f3108ddfe2d1faa9578f234a67871.zip |
initial ebuild
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/libvncserver/ChangeLog | 8 | ||||
-rw-r--r-- | net-libs/libvncserver/files/0.5-optional-configure.ac.patch | 74 | ||||
-rw-r--r-- | net-libs/libvncserver/files/digest-libvncserver-0.5 | 1 | ||||
-rw-r--r-- | net-libs/libvncserver/libvncserver-0.5.ebuild | 50 |
4 files changed, 133 insertions, 0 deletions
diff --git a/net-libs/libvncserver/ChangeLog b/net-libs/libvncserver/ChangeLog new file mode 100644 index 000000000000..f55d40aa89b1 --- /dev/null +++ b/net-libs/libvncserver/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-libs/libvncserver +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libvncserver/ChangeLog,v 1.1 2003/08/08 01:22:47 vapier Exp $ + +*libvncserver-0.5 (07 Aug 2003) + + 07 Aug 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me. diff --git a/net-libs/libvncserver/files/0.5-optional-configure.ac.patch b/net-libs/libvncserver/files/0.5-optional-configure.ac.patch new file mode 100644 index 000000000000..1d14b502aea0 --- /dev/null +++ b/net-libs/libvncserver/files/0.5-optional-configure.ac.patch @@ -0,0 +1,74 @@ +--- configure.ac.orig 2003-02-08 23:53:42.000000000 -0500 ++++ configure.ac 2003-08-07 21:10:37.000000000 -0400 +@@ -13,11 +13,17 @@ + AH_TEMPLATE(BACKCHANNEL, [Enable BackChannel communication]) + AC_ARG_WITH(backchannel, + [ --without-backchannel disable backchannel method], +- ,AC_DEFINE(BACKCHANNEL)) ++ , [ with_backchannel=yes ]) ++if test "x$with_backchannel" = "xyes"; then ++ AC_DEFINE(BACKCHANNEL) ++fi + AH_TEMPLATE(ALLOW24BPP, [Enable 24 bit per pixel in native framebuffer]) + AC_ARG_WITH(24bpp, + [ --without-24bpp disable 24 bpp framebuffers], +- ,AC_DEFINE(ALLOW24BPP)) ++ , [ with_24bpp=yes ]) ++if test "x$with_24bpp" = "xyes"; then ++ AC_DEFINE(ALLOW24BPP) ++fi + + # Checks for X libraries + HAVE_X="false" +@@ -35,28 +41,36 @@ + AM_CONDITIONAL(HAVE_X, test $HAVE_X != "false") + + # Checks for libraries. +-AC_CHECK_HEADERS(jpeglib.h pthread.h zlib.h) +-if test ! -z "$HAVE_JPEGLIB.H"; then +- AC_CHECK_LIB(jpeg, jpeg_CreateCompress) ++AC_ARG_WITH(jpeg, ++ [ --without-jpeg disable support for jpeg], ++ , [ with_jpeg=yes ]) ++if test "x$with_jpeg" = "xyes"; then ++ AC_CHECK_HEADER(jpeglib.h, ++ [ AC_CHECK_LIB(jpeg, jpeg_CreateCompress) ]) + fi ++AC_CHECK_HEADERS(pthread.h) + if test ! -z "$HAVE_PTHREAD.H"; then + AC_CHECK_LIB(pthread, pthread_mutex_lock) + AC_CHECK_LIB(pthread, pthread_mutex_lock, HAVE_LIBPTHREAD="true") + fi + #AM_CONDITIONAL(HAVE_LIBPTHREAD, test ! -z "$HAVE_PTHREAD.H") + AM_CONDITIONAL(HAVE_LIBPTHREAD, test ! -z "$HAVE_LIBPTHREAD") +-if test ! -z "$HAVE_ZLIB.H"; then +- AC_CHECK_LIB(z, deflate) +- # check for c++, but don't fail if not found +- AC_CHECK_PROGS(CXX,[g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC],none) +- AH_TEMPLATE(HAVE_ZRLE, [Use zrle compression; needs a c++ compiler]) +- if test x$CXX != xnone; then +- AC_DEFINE(HAVE_ZRLE) +- AC_PROG_CXX +- CCLD="\$(CXX)" +- fi +-else +- CXX=none ++AC_ARG_WITH(zlib, ++ [ --without-zlib disable support for deflate], ++ , [ with_zlib=yes ]) ++if test "x$with_zlib" = "xyes"; then ++ AC_CHECK_HEADER(zlib.h, ++ [ ++ AC_CHECK_LIB(z, deflate) ++ # check for c++, but don't fail if not found ++ AC_CHECK_PROGS(CXX,[g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC],none) ++ AH_TEMPLATE(HAVE_ZRLE, [Use zrle compression; needs a c++ compiler]) ++ if test x$CXX != xnone; then ++ AC_DEFINE(HAVE_ZRLE) ++ AC_PROG_CXX ++ CCLD="\$(CXX)" ++ fi ++ ], [ CXX=none ]) + fi + AM_CONDITIONAL(HAVE_CXX, test x$CXX != xnone) + AC_SUBST(CCLD) diff --git a/net-libs/libvncserver/files/digest-libvncserver-0.5 b/net-libs/libvncserver/files/digest-libvncserver-0.5 new file mode 100644 index 000000000000..a39280aae9c3 --- /dev/null +++ b/net-libs/libvncserver/files/digest-libvncserver-0.5 @@ -0,0 +1 @@ +MD5 4eeb7b7295eb41f0ed411f09745ed74a LibVNCServer-0.5.tar.gz 238307 diff --git a/net-libs/libvncserver/libvncserver-0.5.ebuild b/net-libs/libvncserver/libvncserver-0.5.ebuild new file mode 100644 index 000000000000..955ea94858b0 --- /dev/null +++ b/net-libs/libvncserver/libvncserver-0.5.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libvncserver/libvncserver-0.5.ebuild,v 1.1 2003/08/08 01:22:47 vapier Exp $ + +inherit eutils + +DESCRIPTION="library for creating vnc servers" +HOMEPAGE="http://libvncserver.sourceforge.net/" +SRC_URI="mirror://sourceforge/libvncserver/LibVNCServer-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="nobackchannel no24bpp zlib jpeg" + +DEPEND="virtual/x11 + zlib? ( sys-libs/zlib ) + jpeg? ( media-libs/jpeg )" + +S=${WORKDIR}/LibVNCServer-${PV} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-optional-configure.ac.patch + autoconf || die + automake || die + aclocal || die +} + +src_compile() { + local myconf="" + [ `use nobackchannel` ] \ + && myconf="${myconf} --without-backchannel" \ + || myconf="${myconf} --with-backchannel" + [ `use no24bpp` ] \ + && myconf="${myconf} --without-24bpp" \ + || myconf="${myconf} --with-24bpp" + econf \ + `use_with zlib` \ + `use_with jpeg` \ + ${myconf} \ + || die + emake || die +} + +src_install() { + make install DESTDIR=${D} || die + dodoc AUTHORS ChangeLog NEWS README TODO +} |