aboutsummaryrefslogtreecommitdiff
path: root/shells/oksh/Makefile
blob: e7621a7bc27c4d5d785140e348da08b820bd8d32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PORTNAME=	oksh
DISTVERSION=	7.1
PORTEPOCH=	1
CATEGORIES=	shells
MASTER_SITES=	https://github.com/ibara/oksh/releases/download/oksh-${DISTVERSION}/

MAINTAINER=	tobik@FreeBSD.org
COMMENT=	Portable OpenBSD Korn shell

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
OPTIONS_DEFAULT=	CURSES

CURSES_DESC=	Use ncurses for screen clearing routines

CURSES_USES=			ncurses
CURSES_CONFIGURE_ENABLE=	curses

.if ${FLAVOR} == static
do-install:
	@${MKDIR} ${STAGEDIR}/rescue
	${INSTALL_PROGRAM} ${WRKSRC}/oksh ${STAGEDIR}/rescue
.endif

.include <bsd.port.mk>