# Created by: Kim Scarborough # $FreeBSD: head/misc/bible-kjv/Makefile 526344 2020-02-17 06:29:46Z koobs $ PORTNAME= bible-kjv PORTVERSION= 4.30 CATEGORIES= misc MASTER_SITES= DEBIAN DISTNAME= bible-kjv_${DISTVERSION} MAINTAINER= andrew@tao11.riddles.org.uk COMMENT= Interactive King James Bible LICENSE= GPLv2+ USES= readline shebangfix perl5 USE_PERL5= build # Upstream makefile does unsafe things with recursive sub-makes for # building its build tools. Parallel build randomly fails. MAKE_JOBS_UNSAFE=yes WRKSRC= ${WRKDIR}/${PORTNAME} # makeindex2 asks for bash, but contains no shell construct more # complex than an if...then, so use sh instead. bash_CMD= /bin/sh SHEBANG_FILES= makeindex2 makeconc.pl # We don't really need all the warning options that the port uses. PORT_CFLAGS= -DDESTLIB=\\\"${DATADIR}\\\" MAKE_ARGS= DEST="${PREFIX}" \ CFLAGS="${CPPFLAGS} ${CFLAGS} ${PORT_CFLAGS}" \ LDFLAGS="${LDFLAGS}" post-build: ${REINPLACE_CMD} 's=/usr/=${PREFIX}/=g' ${WRKSRC}/bible.1 cd ${WRKSRC} && \ ${CC} ${CPPFLAGS} ${CFLAGS} -o randverse debian/randverse.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bible ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/randverse ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/bible.data ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/bible.data.conc ${STAGEDIR}${DATADIR} ${INSTALL_MAN} ${WRKSRC}/bible.1 ${STAGEDIR}${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/debian/randverse.1 ${STAGEDIR}${PREFIX}/man/man1 .include