freebsd-ports/emulators/dynamips-devel/Makefile
Max Khon 5775a87fbc Update to 0.2.3c.
- Fixed a stupid bug in DMA handling, which in certain conditions can
cause an infinite loop.
- Added an "instruction block hash" which avoids lookups in the instruction
red-black tree. The IBH table takes only 16 Kb of memory.
- Added CRC-12 and CRC-16 functions for future use.
- Added a "gen_eth" NetIO driver, which allow to access ethernet interfaces
in a portable way (tested on Linux and Cygwin).
- Fixes to the PowerPC build on Darwin thanks to Olivier Cahagne.
- Minor cosmetic changes to display supported/unsupported PA and NPE.

Note: gen_eth is not supported on RELENG_4 (requires libpcap 0.9+).
2006-02-13 19:42:36 +00:00

56 lines
1.1 KiB
Makefile

# New ports collection makefile for: dynamips
# Date created: 31 Jan 2006
# Whom: Max Khon <fjoe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= dynamips
PORTVERSION= 0.2.3c
CATEGORIES= emulators
MASTER_SITES= http://www.ipflow.utc.fr/dynamips/
MAINTAINER= fjoe@FreeBSD.org
COMMENT= Cisco 7200 Simulator
LIB_DEPENDS= elf.0:${PORTSDIR}/devel/libelf
USE_GMAKE= yes
USE_GCC= 3.2+
ALL_TARGET= ${PORTNAME}
MAKE_ENV= DYNAMIPS_ARCH=${DYNAMIPS_ARCH}\
PTHREAD_CFLAGS=${PTHREAD_CFLAGS}\
PTHREAD_LIBS=${PTHREAD_LIBS}
PLIST_FILES= bin/${PORTNAME}
.if !defined(NOPORTDOCS)
PORTDOCS= README
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
DYNAMIPS_ARCH= "x86"
.elif ${ARCH} == "amd64"
DYNAMIPS_ARCH= "amd64"
.else
DYNAMIPS_ARCH= "nojit"
.endif
.if ${OSVERSION} < 500000
#
# Requires libpcap 0.9+
USE_REINPLACE= yes
post-patch:
@${REINPLACE_CMD} -e 's/^HAS_PCAP=1/HAS_PCAP=0/' ${WRKSRC}/Makefile
.endif
.include <bsd.port.post.mk>