2006-02-02 14:22:47 +01:00
|
|
|
# New ports collection makefile for: dynamips
|
|
|
|
# Date created: 31 Jan 2006
|
|
|
|
# Whom: Max Khon <fjoe@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dynamips
|
2007-07-03 17:29:23 +02:00
|
|
|
DISTVERSION= 0.2.7
|
2009-07-20 20:25:36 +02:00
|
|
|
PORTREVISION= 2
|
2006-02-02 21:43:51 +01:00
|
|
|
CATEGORIES= emulators
|
2006-02-02 14:22:47 +01:00
|
|
|
MASTER_SITES= http://www.ipflow.utc.fr/dynamips/
|
|
|
|
|
2009-07-20 20:25:36 +02:00
|
|
|
MAINTAINER= nork@FreeBSD.org
|
2006-11-14 05:22:00 +01:00
|
|
|
COMMENT= Cisco 3600/7200 Simulator
|
2006-02-02 14:22:47 +01:00
|
|
|
|
|
|
|
LIB_DEPENDS= elf.0:${PORTSDIR}/devel/libelf
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2007-07-03 17:29:23 +02:00
|
|
|
ALL_TARGET= ${PORTNAME} nvram_export
|
2006-02-02 14:22:47 +01:00
|
|
|
MAKE_ENV= DYNAMIPS_ARCH=${DYNAMIPS_ARCH}\
|
|
|
|
PTHREAD_CFLAGS=${PTHREAD_CFLAGS}\
|
2006-11-14 05:33:04 +01:00
|
|
|
PTHREAD_LIBS=${PTHREAD_LIBS}\
|
|
|
|
LDFLAGS="${LDFLAGS}"
|
2006-02-02 14:22:47 +01:00
|
|
|
|
2007-07-03 17:29:23 +02:00
|
|
|
PLIST_FILES= bin/${PORTNAME} bin/nvram_export
|
2006-02-02 14:22:47 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-07-03 17:29:23 +02:00
|
|
|
PORTDOCS= README README.hypervisor
|
2006-02-02 14:22:47 +01:00
|
|
|
.endif
|
2007-07-03 17:29:23 +02:00
|
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
|
|
MAN1= ${PORTNAME}.1 nvram_export.1
|
|
|
|
MAN7= hypervisor_mode.7
|
2006-02-02 14:22:47 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-11-14 05:22:00 +01:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
DYNAMIPS_ARCH= "x86"
|
|
|
|
.elif ${ARCH} == "amd64"
|
2007-07-03 17:29:23 +02:00
|
|
|
DYNAMIPS_ARCH= "amd64"
|
2006-02-02 14:22:47 +01:00
|
|
|
.else
|
|
|
|
DYNAMIPS_ARCH= "nojit"
|
|
|
|
.endif
|
|
|
|
|
2006-11-14 05:22:00 +01:00
|
|
|
.if ${OSVERSION} < 602100 || ${OSVERSION} < 700021
|
|
|
|
BUILD_DEPENDS+= libpcap>=0.9.4:${PORTSDIR}/net/libpcap
|
2006-03-08 17:55:26 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 700013
|
|
|
|
MAKE_ENV+= HAS_POSIX_MEMALIGN=1
|
2006-02-13 20:42:36 +01:00
|
|
|
.endif
|
|
|
|
|
2007-07-03 17:29:23 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nvram_export ${PREFIX}/bin
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.hypervisor ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/nvram_export.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/hypervisor_mode.7 ${PREFIX}/man/man7
|
|
|
|
.endif
|
|
|
|
|
2006-02-02 14:22:47 +01:00
|
|
|
.include <bsd.port.post.mk>
|