2004-12-20 08:45:21 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2004/12/20 13:45:22 alek Exp $
|
2001-05-05 23:04:57 -04:00
|
|
|
|
|
|
|
COMMENT= "shell (clone of plan9 shell)"
|
1999-06-11 10:44:22 -04:00
|
|
|
|
2003-05-14 23:25:56 -04:00
|
|
|
DISTNAME= rc-1.6
|
1999-06-11 10:44:22 -04:00
|
|
|
CATEGORIES= plan9 shells
|
|
|
|
MASTER_SITES= http://www.star.le.ac.uk/~tjg/rc/release/ \
|
|
|
|
ftp://ftp.sys.toronto.edu/pub/rc/
|
1999-11-29 19:48:44 -05:00
|
|
|
MASTER_SITES0= http://www.star.le.ac.uk/~tjg/rc/misc/
|
2000-08-18 21:47:54 -04:00
|
|
|
SUPDISTFILES= editline-1.5.tar.gz:0
|
1999-11-29 19:48:44 -05:00
|
|
|
|
2000-10-22 13:02:40 -04:00
|
|
|
MAINTAINER= Markus Friedl <markus@openbsd.org>
|
1999-06-11 10:44:22 -04:00
|
|
|
|
2000-06-06 20:52:07 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-20 08:45:21 -05:00
|
|
|
WANTLIB= c
|
2000-02-12 01:29:49 -05:00
|
|
|
|
1999-06-11 10:44:22 -04:00
|
|
|
SEPARATE_BUILD= concurrent
|
2000-08-18 21:47:54 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS= --with-history
|
1999-06-11 10:44:22 -04:00
|
|
|
|
2000-08-18 21:47:54 -04:00
|
|
|
FLAVORS= readline editline
|
2000-06-06 20:52:07 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2002-12-03 14:51:25 -05:00
|
|
|
REGRESS_TARGET= trip
|
|
|
|
|
1999-11-29 19:48:44 -05:00
|
|
|
.if defined(WITH_READLINE) && ${WITH_READLINE:U} == YES
|
2000-06-06 20:52:07 -04:00
|
|
|
FLAVOR+=readline
|
1999-11-29 19:48:44 -05:00
|
|
|
.elif defined(WITH_EDITLINE) && ${WITH_EDITLINE:U} == YES
|
2000-06-06 20:52:07 -04:00
|
|
|
FLAVOR+=editline
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "readline"
|
|
|
|
CONFIGURE_ARGS+= --with-readline
|
2004-12-20 08:45:21 -05:00
|
|
|
WANTLIB+= readline termcap
|
2000-06-06 20:52:07 -04:00
|
|
|
.elif ${FLAVOR:L} == "editline"
|
1999-11-29 19:48:44 -05:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz editline-1.5.tar.gz:0
|
|
|
|
EDITLINE= ${WRKSRC}/../editline
|
1999-06-11 10:44:22 -04:00
|
|
|
CONFIGURE_ARGS+= --with-editline
|
2003-05-14 23:25:56 -04:00
|
|
|
CONFIGURE_ENV= LIBS="-L${EDITLINE}"
|
1999-11-29 19:48:44 -05:00
|
|
|
.endif
|
|
|
|
|
2000-06-06 20:52:07 -04:00
|
|
|
.if ${FLAVOR:L} == "editline"
|
2000-08-18 21:47:54 -04:00
|
|
|
pre-configure:
|
2000-02-10 20:09:59 -05:00
|
|
|
@echo "===> Compiling editline"
|
2000-08-18 21:47:54 -04:00
|
|
|
@cd ${EDITLINE} && ${MAKE_PROGRAM}
|
1999-06-11 10:44:22 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|