svn commit: r301251 - head/net/ccxstream
Baptiste Daroussin
bapt at FreeBSD.org
Fri Jul 20 22:02:51 UTC 2012
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 at 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>
More information about the svn-ports-head
mailing list