e01d5c9ec9
misc/brs currently builds with many warnings and segfaults at runtime, likely a missing prototypes issue as that's what most of the warnings are. A much more recent version (4.30 as opposed to 4.03) of this is widely available on linux under the name "bible-kjv", which also exists as an OpenBSD port. This change updates brs to 4.30, switching upstream to DEBIAN [1], and the first step commit to renaming the port. While here: - Include the "randverse" program - Wordsmith pkg-descr: It's all very well saying that the port includes libraries, but it doesn't install them. - Remove patches: no longer relevent [1] Use a temporary MASTER_SITES workaround, instead of 'DEBIAN' directly because it does not currently use or support DISTNAME. PR: 243886 Submitted by: Andrew <andrew tao11.riddles.org.uk> Approved by: <user unknown nu> (implicit, approves maintainer change) Approved by: portmgr (blanket: run (crash) fixes) Approved by: ports-secteam (blanket: run (crash) fixes)
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
# Created by: Kim Scarborough <user@unknown.nu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= brs
|
|
PORTVERSION= 4.30
|
|
CATEGORIES= misc
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN:C|/%SUBDIR%/|/pool/main/${DISTNAME:C/^(.).*$/\1/}/${DISTNAME:C/_.*//}/|}
|
|
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}/${DISTNAME:C/_.*//}
|
|
|
|
# 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 <bsd.port.mk>
|