freebsd-ports/shells/oksh/Makefile
2023-04-20 03:53:09 +02:00

44 lines
935 B
Makefile

PORTNAME= oksh
DISTVERSION= 7.3
PORTEPOCH= 1
CATEGORIES= shells
MASTER_SITES= https://github.com/ibara/oksh/releases/download/oksh-${DISTVERSION}/
MAINTAINER= pkubaj@FreeBSD.org
COMMENT= Portable OpenBSD Korn shell
WWW= https://github.com/ibara/oksh
LICENSE= PD
FLAVORS= dynamic static
FLAVOR?= ${FLAVORS:[1]}
static_PKGNAMESUFFIX= -static
.if ${FLAVOR} == static
COMMENT+= (rescue(8) version)
.endif
HAS_CONFIGURE= yes
.if ${FLAVOR} == static
CONFIGURE_ARGS+= --enable-static
PLIST= /dev/null
PLIST_FILES= "@shell /rescue/oksh"
.endif
OPTIONS_DEFINE= CURSES SMALL
OPTIONS_DEFAULT= CURSES
CURSES_DESC= Use ncurses for screen clearing routines
SMALL_DESC= Create smaller oksh binary
CURSES_USES= ncurses
CURSES_CONFIGURE_ENABLE= curses
SMALL_CONFIGURE_ENABLE= small
.if ${FLAVOR} == static
do-install:
@${MKDIR} ${STAGEDIR}/rescue
${INSTALL_PROGRAM} ${WRKSRC}/oksh ${STAGEDIR}/rescue
.endif
.include <bsd.port.mk>