Lines 6-17
Link Here
|
6 |
|
6 |
|
7 |
DESCRIPTION="Network Simulator" |
7 |
DESCRIPTION="Network Simulator" |
8 |
HOMEPAGE="http://www.isi.edu/nsnam/ns/" |
8 |
HOMEPAGE="http://www.isi.edu/nsnam/ns/" |
9 |
SRC_URI="http://downloads.sourceforge.net/nsnam/${PN}-src-${PV}.tar.gz" |
9 |
SRC_URI="http://downloads.sourceforge.net/nsnam/${PN}-src-${PV}.tar.gz |
|
|
10 |
http://netlab.caltech.edu/projects/ns2tcplinux/ns2linux/ns-linux-v2.patch" |
10 |
|
11 |
|
11 |
LICENSE="BSD as-is" |
12 |
LICENSE="BSD as-is" |
12 |
SLOT="0" |
13 |
SLOT="0" |
13 |
KEYWORDS="~ppc ~sparc ~x86 ~amd64" |
14 |
KEYWORDS="~ppc ~sparc ~x86 ~amd64" |
14 |
IUSE="doc debug" |
15 |
IUSE="doc debug tcplinux" |
15 |
|
16 |
|
16 |
RDEPEND=">=dev-lang/tcl-8.4.5 |
17 |
RDEPEND=">=dev-lang/tcl-8.4.5 |
17 |
>=dev-lang/tk-8.4.5 |
18 |
>=dev-lang/tk-8.4.5 |
Lines 28-34
Link Here
|
28 |
dev-tex/latex2html )" |
29 |
dev-tex/latex2html )" |
29 |
|
30 |
|
30 |
src_unpack() { |
31 |
src_unpack() { |
31 |
unpack "${A}" |
32 |
unpack "${PN}-src-${PV}.tar.gz" |
32 |
cd "${S}" |
33 |
cd "${S}" |
33 |
sed '/$(CC)/s!-g!$(CFLAGS)!g' "${S}/indep-utils/model-gen/Makefile" |
34 |
sed '/$(CC)/s!-g!$(CFLAGS)!g' "${S}/indep-utils/model-gen/Makefile" |
34 |
} |
35 |
} |
Lines 62-67
Link Here
|
62 |
--mandir=/usr/share/man \ |
63 |
--mandir=/usr/share/man \ |
63 |
--enable-stl \ |
64 |
--enable-stl \ |
64 |
--enable-release || die "./configure failed" |
65 |
--enable-release || die "./configure failed" |
|
|
66 |
|
67 |
# This patch adds Linux TCP congestion control agents |
68 |
# http://netlab.caltech.edu/projects/ns2tcplinux/ns2linux/ |
69 |
if useq tcplinux; then |
70 |
epatch "${DISTDIR}/ns-linux-v2.patch" |
71 |
fi |
72 |
|
65 |
emake CCOPT="${CFLAGS}" || die |
73 |
emake CCOPT="${CFLAGS}" || die |
66 |
|
74 |
|
67 |
cd "${S}/indep-utils/dosdbell" |
75 |
cd "${S}/indep-utils/dosdbell" |