aboutsummaryrefslogtreecommitdiffstats
path: root/misc/fortune-mod-bible
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2016-09-15 03:50:46 +0800
committerantoine <antoine@FreeBSD.org>2016-09-15 03:50:46 +0800
commite0831c933ca8bda64a7a5ed9b16f6302bb692d59 (patch)
treeec6270397becb70ebcaa5c6615c9cd29a5684b63 /misc/fortune-mod-bible
parent21c1782a9f81ba9c12ab39a2e136b9e6ff232d48 (diff)
downloadfreebsd-ports-gnome-e0831c933ca8bda64a7a5ed9b16f6302bb692d59.tar.gz
freebsd-ports-gnome-e0831c933ca8bda64a7a5ed9b16f6302bb692d59.tar.zst
freebsd-ports-gnome-e0831c933ca8bda64a7a5ed9b16f6302bb692d59.zip
Revert recent strfile changes, strfile is already in base
With hat: portmgr
Diffstat (limited to 'misc/fortune-mod-bible')
-rw-r--r--misc/fortune-mod-bible/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/misc/fortune-mod-bible/Makefile b/misc/fortune-mod-bible/Makefile
index b0af294e6080..570654e4f431 100644
--- a/misc/fortune-mod-bible/Makefile
+++ b/misc/fortune-mod-bible/Makefile
@@ -7,28 +7,32 @@ PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= SF/fortunebible/fortunebible/Genesis
DISTNAME= bible
-DIST_SUBDIR= ${PORTNAME}
MAINTAINER= doug@polands.org
COMMENT= King James V Bible in fortune file format
-BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
-
+DIST_SUBDIR= ${PORTNAME}
NO_WRKSUBDIR= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
USES= tar:bzip2
SUB_FILES+= pkg-message
-_STRFILE= ${LOCALBASE}/bin/fortune_strfile
+.if exists(/usr/games/strfile)
+_STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+_STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
post-extract:
${RM} ${WRKSRC}/bible.dat
do-build:
- (cd ${WRKSRC} && ${_STRFILE} -C bible)
+ @cd ${WRKSRC} && ${_STRFILE} -C bible
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/bible* \
- ${STAGEDIR}${PREFIX}/share/games/fortune
+ ${INSTALL_DATA} ${WRKSRC}/bible* ${STAGEDIR}${PREFIX}/share/games/fortune
+
.include <bsd.port.mk>