openbsd-ports/plan9/rc/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

2004-12-20 08:45:21 -05:00
# $OpenBSD: Makefile,v 1.14 2004/12/20 13:45:22 alek Exp $
COMMENT= "shell (clone of plan9 shell)"
2003-05-14 23:25:56 -04:00
DISTNAME= rc-1.6
CATEGORIES= plan9 shells
MASTER_SITES= http://www.star.le.ac.uk/~tjg/rc/release/ \
ftp://ftp.sys.toronto.edu/pub/rc/
MASTER_SITES0= http://www.star.le.ac.uk/~tjg/rc/misc/
SUPDISTFILES= editline-1.5.tar.gz:0
2000-10-22 13:02:40 -04:00
MAINTAINER= Markus Friedl <markus@openbsd.org>
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
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-history
FLAVORS= readline editline
2000-06-06 20:52:07 -04:00
FLAVOR?=
REGRESS_TARGET= trip
.if defined(WITH_READLINE) && ${WITH_READLINE:U} == YES
2000-06-06 20:52:07 -04:00
FLAVOR+=readline
.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"
DISTFILES= ${DISTNAME}.tar.gz editline-1.5.tar.gz:0
EDITLINE= ${WRKSRC}/../editline
CONFIGURE_ARGS+= --with-editline
2003-05-14 23:25:56 -04:00
CONFIGURE_ENV= LIBS="-L${EDITLINE}"
.endif
2000-06-06 20:52:07 -04:00
.if ${FLAVOR:L} == "editline"
pre-configure:
@echo "===> Compiling editline"
@cd ${EDITLINE} && ${MAKE_PROGRAM}
.endif
.include <bsd.port.mk>