Date: Fri, 20 Jul 2012 22:02:50 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r301251 - head/net/ccxstream Message-ID: <201207202202.q6KM2ou7042868@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Fri Jul 20 22:02:50 2012 New Revision: 301251 URL: http://svn.freebsd.org/changeset/ports/301251 Log: Convert to new options framework Modified: head/net/ccxstream/Makefile Modified: head/net/ccxstream/Makefile ============================================================================== --- head/net/ccxstream/Makefile Fri Jul 20 21:59:46 2012 (r301250) +++ head/net/ccxstream/Makefile Fri Jul 20 22:02:50 2012 (r301251) @@ -14,17 +14,20 @@ MASTER_SITES= SF/xbplayer/XStream%20Ser MAINTAINER= ports@FreeBSD.org COMMENT= Stream media files to XBox Media Center via XBMSP -OPTIONS= SO_KEEPALIVE "Build with SO_KEEPALIVE" ON \ - TCP_NODELAY "Build with TCP_NODELAY" OFF +OPTIONS_DEFINE= SO_KEEPALIVE TCP_NODELAY DOCS +OPTIONS_DEFAULT= SO_KEEPALIVE +SO_KEEPALIVE_DESC= Build with SO_KEEPALIVE +TCP_NODELAY_DESC= Build with TCP_NODELAY USE_GMAKE= yes USE_RC_SUBR= ccxstream -PLIST_FILES= \ - bin/ccxtest \ +PLIST_FILES= bin/ccxtest \ sbin/ccxstream -.if !defined(NOPORTDOCS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} PORTDOCS= README ChangeLog TODO xbmsp-xml.txt xbmsp.txt .endif @@ -42,16 +45,14 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.pre.mk> - # enable SO_KEEPALIVE -.if defined(WITH_SO_KEEPALIVE) +.if ${PORT_OPTIONS:MSO_KEEPALIVE} CFLAGS+= -DSO_KEEPALIVE .endif # enable TCP_NODELAY -.if defined(WITH_TCP_NODELAY) +.if ${PORT_OPTIONS:MTCP_NODELAY} CFLAGS+= -DTCP_NODELAY .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207202202.q6KM2ou7042868>