changeset 336:969a66f2de7d

initial ebuild for UDT
author holger
date Tue, 10 Apr 2012 21:34:42 +0200
parents 61acd9607e0b
children e9bee0cb5018
files net-libs/udt/Manifest net-libs/udt/udt-4.10.ebuild
diffstat 2 files changed, 51 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-libs/udt/Manifest	Tue Apr 10 21:34:42 2012 +0200
@@ -0,0 +1,2 @@
+DIST udt.sdk.4.10.tar.gz 145833 RMD160 adabb8de8d3b9f0a51e20cb32bbf542157918de7 SHA1 56e234477d1aabbee10683c11088f06cc9efd1c2 SHA256 b690a717513119f5f5fac2f46789f19deb95f65e5e8a88f6229e173b0a7d6d2d
+EBUILD udt-4.10.ebuild 1051 RMD160 fa716ca4664354731ffada80cc934f38a50d8e46 SHA1 38683b7a7ab6eeb97eb27837c5971ca12f9ca67e SHA256 7f3e457b7a18c5ad39480f4c9a69aefc21f90bf5de815292dd543d93e353ea01
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-libs/udt/udt-4.10.ebuild	Tue Apr 10 21:34:42 2012 +0200
@@ -0,0 +1,49 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+DESCRIPTION="UDT is a UDP based data transport protocol"
+HOMEPAGE="http://udt.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${PN}.sdk.${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/udt4"
+MAKEOPTS="${MAKEOPTS} -j1"
+
+src_compile(){
+	echo "${S}"
+	echo `pwd`
+	cd "${S}"
+
+	case ${ARCH} in
+		x86)        PLATFORM="IA32";;
+		ppc|ppc64)  PLATFORM="POWERPC";;
+		amd64)      PLATFORM="AMD64";;
+		ia64)       PLATFORM="IA64";;
+		*)          die "Architecture ${ARCH} not supported" ;;
+	esac
+
+	case ${CHOST} in
+		*-freebsd*|*-netbsd*|*-openbsd*|*-dragonfly*)  OSNAME="BSD" ;;
+		*-darwin*)                                     OSNAME="OSX" ;;
+		*)                                             OSNAME="LINUX" ;;
+	esac
+
+	emake os="${OSNAME}" arch="${PLATFORM}" || die 'make failed'
+}
+
+src_install(){
+	dolib src/libudt.*
+
+	insinto /usr/include
+	doins src/udt.h
+}