diff options
Diffstat (limited to 'shells/bush/Makefile')
-rw-r--r-- | shells/bush/Makefile | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/shells/bush/Makefile b/shells/bush/Makefile new file mode 100644 index 000000000000..b9071ed28422 --- /dev/null +++ b/shells/bush/Makefile @@ -0,0 +1,68 @@ +# New ports collection makefile for: bush +# Date created: 20 December 2004 +# Whom: Thierry Thomas <thierry@pompo.net> +# +# $FreeBSD$ +# + +PORTNAME= bush +PORTVERSION= 1.0.1 +CATEGORIES= shells +MASTER_SITES= http://www.pegasoft.ca/downloads/ \ + http://66.11.182.223/downloads/ +EXTRACT_SUFX= -src.tgz + +MAINTAINER= ports@FreeBSD.org +COMMENT= The Business Shell + +BUILD_DEPENDS= gnatmake:${PORTSDIR}/lang/gnat \ + bash:${PORTSDIR}/shells/bash +LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT} + +POSTGRESQL_PORT?= databases/postgresql7 + +HAS_CONFIGURE= yes +USE_GMAKE= yes +MAKE_ARGS= GMAKE=${GMAKE} CPUTYPE=${CPUTYPE} \ + PTHREAD_LIBS=${PTHREAD_LIBS} +MAKEFILE= GNUmakefile +USE_MYSQL= yes +BROKEN_WITH_MYSQL= 323 +USE_REINPLACE= yes + +MAN1= bush.1 + +PORTDOCS= * + +BASH2FIX= examples/benchmark.bash src/testsuite/test.sh + +pre-build: +.for FILE in ${BASH2FIX} + @${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" ${WRKSRC}/${FILE} +.endfor + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/bush ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/src/bush.1 ${MANPREFIX}/man/man1 +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} +.endif + +post-install: + @${ECHO_CMD} ${PREFIX}/bin/bush >> /etc/shells + @${ECHO_MSG} "Updating /etc/shells" + @${CP} /etc/shells /etc/shells.bak + @(${GREP} -v ${PREFIX}/bin/bush /etc/shells.bak ; \ + ${ECHO_CMD} ${PREFIX}/bin/bush) > /etc/shells + @${RM} /etc/shells.bak + +.if defined(MAINTAINER_MODE) +test: build + @(cd ${BUILD_WRKSRC} && \ + ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test) +.endif + +.include <bsd.port.mk> |