svn commit: r491793 - head/shells/oksh

Tobias Kortkamp tobik at FreeBSD.org
Fri Feb 1 06:11:20 UTC 2019


Author: tobik
Date: Fri Feb  1 06:11:19 2019
New Revision: 491793
URL: https://svnweb.freebsd.org/changeset/ports/491793

Log:
  shells/oksh: Convert to options helpers

Modified:
  head/shells/oksh/Makefile

Modified: head/shells/oksh/Makefile
==============================================================================
--- head/shells/oksh/Makefile	Fri Feb  1 06:04:27 2019	(r491792)
+++ head/shells/oksh/Makefile	Fri Feb  1 06:11:19 2019	(r491793)
@@ -10,25 +10,17 @@ COMMENT=	Portable OpenBSD Korn shell
 
 LICENSE=	PD
 
+HAS_CONFIGURE=	yes
+
 OPTIONS_DEFINE=		CURSES STATIC
 OPTIONS_DEFAULT=	CURSES
 
 CURSES_DESC=	Use ncurses for screen clearing routines
-CURSES_USES=	ncurses
 
-HAS_CONFIGURE=	yes
+CURSES_CONFIGURE_ENABLE=	curses
+CURSES_USES=			ncurses
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSTATIC}
-CONFIGURE_ARGS+=	--enable-static
-.endif
-
-.if ${PORT_OPTIONS:MCURSES}
-CONFIGURE_ARGS+=	--enable-curses
-.else
-CONFIGURE_ARGS+=	--disable-curses
-.endif
+STATIC_CONFIGURE_ENABLE=	static
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin


More information about the svn-ports-all mailing list