# New ports collection makefile for: bush # Date created: 20 December 2004 # Whom: Thierry Thomas # # $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 USE_PGSQL= yes 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