openbsd-ports/misc/bible-kjv/Makefile
naddy 5b29c1edec Import bible-kjv 4.26.
bible-kjv (formerly Bible Retrieval System) is a text-retrieval
program and user interface which is primarily designed to operate
on the included text and concordance of the King James translation
of the Bible, although it could, in principle, be used for any
text.  The search/browse engine allows searching and reading
passages from scripture.  Includes full concordance.
2011-09-19 20:20:42 +00:00

44 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/09/19 20:20:42 naddy Exp $
COMMENT= Bible reading, browsing, and searching tool
DISTNAME= bible-kjv_4.26
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= misc
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c curses readline
MASTER_SITES= ftp://ftp.debian.org/debian/pool/main/b/bible-kjv/ \
ftp://ftp.de.debian.org/debian/pool/main/b/bible-kjv/
WRKDIST= ${WRKDIR}/bible-kjv
MAKE_FLAGS= DEST=${PREFIX} \
CFLAGS='${CFLAGS} -DDESTLIB=\"${PREFIX}/lib\"' \
LDFLAGS='-lreadline -lcurses'
post-build:
perl -i.bak -pe 's:/usr/lib:${PREFIX}/lib:g' ${WRKSRC}/bible.1
cd ${WRKBUILD}; \
${CC} ${CFLAGS} -o randverse ${WRKSRC}/debian/randverse.c
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/bible ${PREFIX}/bin
${INSTALL_DATA} ${WRKBUILD}/bible.data ${PREFIX}/lib
${INSTALL_DATA} ${WRKBUILD}/bible.data.conc ${PREFIX}/lib
${INSTALL_MAN} ${WRKSRC}/bible.1 ${PREFIX}/man/man1
${INSTALL_PROGRAM} ${WRKBUILD}/randverse ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/debian/randverse.1 ${PREFIX}/man/man1
NO_REGRESS= Yes
.include <bsd.port.mk>