336
|
1 # Copyright 1999-2010 Gentoo Foundation
|
|
2 # Distributed under the terms of the GNU General Public License v2
|
|
3 # $Header: $
|
|
4
|
|
5 EAPI="2"
|
|
6
|
|
7 DESCRIPTION="UDT is a UDP based data transport protocol"
|
|
8 HOMEPAGE="http://udt.sourceforge.net"
|
|
9 SRC_URI="mirror://sourceforge/${PN}/${PN}.sdk.${PV}.tar.gz"
|
|
10
|
|
11 LICENSE="BSD"
|
|
12 SLOT="0"
|
|
13 KEYWORDS="~amd64 ~x86"
|
|
14 IUSE=""
|
|
15
|
|
16 DEPEND=""
|
|
17 RDEPEND="${DEPEND}"
|
|
18
|
|
19 S="${WORKDIR}/udt4"
|
|
20 MAKEOPTS="${MAKEOPTS} -j1"
|
|
21
|
|
22 src_compile(){
|
|
23 echo "${S}"
|
|
24 echo `pwd`
|
|
25 cd "${S}"
|
|
26
|
|
27 case ${ARCH} in
|
|
28 x86) PLATFORM="IA32";;
|
|
29 ppc|ppc64) PLATFORM="POWERPC";;
|
|
30 amd64) PLATFORM="AMD64";;
|
|
31 ia64) PLATFORM="IA64";;
|
|
32 *) die "Architecture ${ARCH} not supported" ;;
|
|
33 esac
|
|
34
|
|
35 case ${CHOST} in
|
|
36 *-freebsd*|*-netbsd*|*-openbsd*|*-dragonfly*) OSNAME="BSD" ;;
|
|
37 *-darwin*) OSNAME="OSX" ;;
|
|
38 *) OSNAME="LINUX" ;;
|
|
39 esac
|
|
40
|
|
41 emake os="${OSNAME}" arch="${PLATFORM}" || die 'make failed'
|
|
42 }
|
|
43
|
|
44 src_install(){
|
|
45 dolib src/libudt.*
|
|
46
|
|
47 insinto /usr/include
|
|
48 doins src/udt.h
|
|
49 }
|