From 524601ec2277549c6be9b74ddfc78b2f5a786fae Mon Sep 17 00:00:00 2001 From: Bernhard Froehlich Date: Sat, 4 Aug 2012 07:53:34 +0000 Subject: - Convert to optionsng Submitted by: bapt --- emulators/virtualbox-ose-kmod-legacy/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'emulators/virtualbox-ose-kmod-legacy') diff --git a/emulators/virtualbox-ose-kmod-legacy/Makefile b/emulators/virtualbox-ose-kmod-legacy/Makefile index 9c1ab3d3243f..83f48a4eb182 100644 --- a/emulators/virtualbox-ose-kmod-legacy/Makefile +++ b/emulators/virtualbox-ose-kmod-legacy/Makefile @@ -40,8 +40,8 @@ CONFLICTS= bcc-[0-9]* CONFLICTS_BUILD= kBuild-devel-[0-9]* CONFLICTS_INSTALL= virtualbox-ose-kmod-[3,4]* virtualbox-ose-kmod-devel-[3,4]* -OPTIONS= DEBUG "Build with debugging symbols" off \ - VIMAGE "VIMAGE virtual networking support" off +OPTIONS_DEFINE= DEBUG VIMAGE +VIMAGE_DESC= VIMAGE virtual networking support .include @@ -56,7 +56,7 @@ KMK_BUILDTYPE= release KMK_CONFIG= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys KMK_FLAGS= HostDrivers-src vboxdrv-mod VBoxNetFlt-src VBoxNetAdp-src -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} KMK_FLAGS+= BUILD_TYPE=debug KMK_BUILDTYPE= debug .endif @@ -73,7 +73,7 @@ IGNORE= requires kernel sources .include -.if ${OSVERSION} < 800500 && defined(WITH_VIMAGE) +.if ${OSVERSION} < 800500 && !empty(PORT_OPTIONS:MVIMAGE) IGNORE= newer kernel is required to build with VIMAGE .endif @@ -82,7 +82,7 @@ post-patch: @${ECHO} 'VBOX_WITH_NETFLT = 1' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_WITH_NETADP = 1' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_WITH_ADDITIONS =' >> ${WRKSRC}/LocalConfig.kmk -.if defined(WITH_VIMAGE) +.if ${PORT_OPTIONS:MVIMAGE} @${ECHO} 'VBOX_WITH_NETFLT_VIMAGE = 1' >> ${WRKSRC}/LocalConfig.kmk .endif @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ -- cgit v1.2.3