summaryrefslogtreecommitdiff
path: root/emulators/dynamips-community
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-28 21:20:28 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-28 21:20:28 +0000
commitf53196ebc931edf54afe56ab65deddc4f2d5b8fb (patch)
tree17f3405d36f74dd57d11bda9e7ecc80c2929914c /emulators/dynamips-community
parentFix typos. (diff)
Convert emulators to new options framework
Notes
Notes: svn path=/head/; revision=316753
Diffstat (limited to 'emulators/dynamips-community')
-rw-r--r--emulators/dynamips-community/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/emulators/dynamips-community/Makefile b/emulators/dynamips-community/Makefile
index 797806ff4e0a..cbac80f69aa0 100644
--- a/emulators/dynamips-community/Makefile
+++ b/emulators/dynamips-community/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: dynamips
-# Date created: 17 Apr 2011
-# Whom: Pavel I Volkov <pavelivolkov@googlemail.com>
-#
+# Created by: Pavel I Volkov <pavelivolkov@googlemail.com>
# $FreeBSD$
-#
PORTNAME= dynamips
PORTVERSION= 0.2.8
@@ -25,7 +21,8 @@ CONFLICTS= dynamips-[0-9]* dynamips-devel-[0-9]*
USE_GMAKE= yes
MAKE_JOBS_UNSAFE= yes
-OPTIONS= UNSTABLE "development code (x64 Mac)" off
+OPTIONS_DEFINE= UNSTABLE
+UNSTABLE_DESC= development code (x64 Mac)
LDFLAGS+= -luuid
MAKE_ENV= \
@@ -43,7 +40,7 @@ MAN1= ${PORTNAME}.1 nvram_export.1
MAN7= hypervisor_mode.7
.endif
-.if defined(WITH_UNSTABLE)
+.if ${PORT_OPTIONS:MUNSTABLE}
DYNAMIPS_CODE= "unstable"
.else
DYNAMIPS_CODE= "stable"
@@ -65,7 +62,7 @@ DYNAMIPS_ARCH= "nojit"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}.${DYNAMIPS_CODE} ${PREFIX}/bin/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/${DYNAMIPS_CODE}/nvram_export ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.community ${DOCSDIR}