aboutsummaryrefslogtreecommitdiff
path: root/emulators/dynamips-devel/Makefile
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2006-02-02 13:22:47 +0000
committerMax Khon <fjoe@FreeBSD.org>2006-02-02 13:22:47 +0000
commitf2a391d1fb88fd4462a201dc79631f2d8e1db480 (patch)
tree4b4b492dcd4892d0f75f6937368332fd548fea46 /emulators/dynamips-devel/Makefile
parent4222e06413cfc08111b1cd7fae0422af1dcea624 (diff)
Notes
Diffstat (limited to 'emulators/dynamips-devel/Makefile')
-rw-r--r--emulators/dynamips-devel/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/emulators/dynamips-devel/Makefile b/emulators/dynamips-devel/Makefile
new file mode 100644
index 000000000000..412b94e92019
--- /dev/null
+++ b/emulators/dynamips-devel/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: dynamips
+# Date created: 31 Jan 2006
+# Whom: Max Khon <fjoe@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dynamips
+PORTVERSION= 0.2.3b
+CATEGORIES= sysutils
+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
+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
+
+.include <bsd.port.post.mk>