- change maintainers email address to markus@openbsd.org

- make use of multiple master sites
- make use of :U variable modifier
- cleanup Makefile
This commit is contained in:
brad 1999-11-30 00:48:44 +00:00
parent f231fc00dc
commit bc29a15062

View File

@ -1,36 +1,45 @@
# $OpenBSD: Makefile,v 1.1.1.1 1999/06/11 14:44:22 brad Exp $
# $OpenBSD: Makefile,v 1.2 1999/11/30 00:48:44 brad Exp $
WITH_EDITLINE= yes
DISTNAME= rc-1.6
CATEGORIES= plan9 shells
MAINTAINER= markus.friedl@informatik.uni-erlangen.de
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/
NEED_VERSION= 1.121
MAINTAINER= markus@openbsd.org
SEPARATE_BUILD= concurrent
GNU_CONFIGURE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-history
pre-fetch pre-build pre-install:
.if !defined(WITH_READLINE) && !defined(WITH_EDITLINE)
.if !defined(NO_WARNINGS)
@${ECHO} '*******************************************************'
@${ECHO} '* Note that you can build rc using the readline or *'
@${ECHO} '* editline library (emacs style command line editing) *'
@${ECHO} '* by setting the shell variable WITH_READLINE or *'
@${ECHO} '* WITH_EDITLINE to yes *'
@${ECHO} '*******************************************************'
.endif
.elif defined(WITH_READLINE) && ${WITH_READLINE}==yes
.if defined(WITH_READLINE) && ${WITH_READLINE:U} == YES
CONFIGURE_ARGS+= --with-readline
.elif defined(WITH_EDITLINE) && ${WITH_EDITLINE}==yes
EDITLINE= ${WRKSRC}/../editline/
DISTFILES= ${DISTNAME}.tar.gz editline-1.5.tar.gz
MASTER_SITES+= http://www.star.le.ac.uk/~tjg/rc/misc/
.elif defined(WITH_EDITLINE) && ${WITH_EDITLINE:U} == YES
DISTFILES= ${DISTNAME}.tar.gz editline-1.5.tar.gz:0
EDITLINE= ${WRKSRC}/../editline
CONFIGURE_ARGS+= --with-editline
CONFIGURE_ENV+= LIBS="-L${EDITLINE}"
.endif
pre-fetch:
.if !defined(NO_WARNINGS)
.if !defined(WITH_READLINE) && !defined(WITH_EDITLINE)
@echo '*******************************************************'
@echo '* Note that you can build rc using the readline or *'
@echo '* editline library (emacs style command line editing) *'
@echo '* by setting the shell variable WITH_READLINE or *'
@echo '* WITH_EDITLINE to yes *'
@echo '*******************************************************'
.endif
.endif
pre-configure:
.if defined(WITH_EDITLINE) && ${WITH_EDITLINE:U} == YES
@${ECHO_MSG} "===> Compiling editline"
(cd ${EDITLINE} && ${MAKE})
(cd ${EDITLINE} && make)
.endif
.include <bsd.port.mk>