svn commit: r301258 - head/shells/v7sh
Baptiste Daroussin
bapt at FreeBSD.org
Fri Jul 20 22:16:39 UTC 2012
Author: bapt
Date: Fri Jul 20 22:16:38 2012
New Revision: 301258
URL: http://svn.freebsd.org/changeset/ports/301258
Log:
Convert to new options framework
Modified:
head/shells/v7sh/Makefile
Modified: head/shells/v7sh/Makefile
==============================================================================
--- head/shells/v7sh/Makefile Fri Jul 20 22:14:15 2012 (r301257)
+++ head/shells/v7sh/Makefile Fri Jul 20 22:16:38 2012 (r301258)
@@ -31,19 +31,21 @@ NO_WRKSUBDIR= yes
MAN1= ${PORTNAME}.1
MANCOMPRESSED= yes
-OPTIONS= V7SH_SYSIII "System III enhancements" on \
- V7SH_RENO "4.3BSD-Reno enhancements" on \
- V7SH_ULTRIX "Ultrix 3.1 enhancements" on
+OPTIONS_DEFINE= SYSIII RENO ULTRIX
+OPTIONS_DEFAULT= SYSIII RENO ULTRIX
+SYSIII_DESC= System III enhancements
+RENO_DESC= 4.3BSD-Reno enhancements
+ULTRIX_DESC= Ultrix 3.1 enhancements
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_V7SH_SYSIII)
+.if ${PORT_OPTIONS:MSYSIII}
CFLAGS+= -DSYSIII
.endif
-.if !defined(WITHOUT_V7SH_RENO)
+.if ${PORT_OPTIONS:MRENO}
CFLAGS+= -DRENO
.endif
-.if !defined(WITHOUT_V7SH_ULTRIX)
+.if ${PORT_OPTIONS:MULTRIX}
CFLAGS+= -DULTRIX
.endif
@@ -60,4 +62,4 @@ post-install:
${ECHO_CMD} ${PREFIX}/bin/${PORTNAME}) > /etc/shells
@${RM} /etc/shells.bak
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-head
mailing list