aboutsummaryrefslogtreecommitdiff
path: root/misc/fortune-mod-bible
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-12-03 03:34:55 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-12-03 03:34:55 +0000
commit76fa8e157c6e954c2e32a021e9f82c201de650e1 (patch)
tree4f495d8d0c479a01ed113e3ee1c77bbe8e79c5ba /misc/fortune-mod-bible
parent7b8c2bbf810301c1796611e409e50ac3678ee6d0 (diff)
downloadports-76fa8e157c6e954c2e32a021e9f82c201de650e1.tar.gz
ports-76fa8e157c6e954c2e32a021e9f82c201de650e1.zip
Notes
Diffstat (limited to 'misc/fortune-mod-bible')
-rw-r--r--misc/fortune-mod-bible/Makefile4
-rw-r--r--misc/fortune-mod-bible/files/pkg-message.in2
2 files changed, 4 insertions, 2 deletions
diff --git a/misc/fortune-mod-bible/Makefile b/misc/fortune-mod-bible/Makefile
index 0f9504c3783c..5a537fbba940 100644
--- a/misc/fortune-mod-bible/Makefile
+++ b/misc/fortune-mod-bible/Makefile
@@ -19,9 +19,11 @@ DIST_SUBDIR= ${PORTNAME}
NO_WRKSUBDIR= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
USE_BZIP2= yes
+SUB_FILES+= pkg-message
+_STRFILE= /usr/games/strfile
do-build:
- @${CAT} ${FILESDIR}/pkg-message.in | ${SED} 's#PREFIX#${PREFIX}#' > ${PKGMESSAGE}
+ @cd ${WRKSRC} && ${_STRFILE} bible
do-install:
@${MKDIR} ${PREFIX}/share/games
diff --git a/misc/fortune-mod-bible/files/pkg-message.in b/misc/fortune-mod-bible/files/pkg-message.in
index f712587b218c..86b133ee7d81 100644
--- a/misc/fortune-mod-bible/files/pkg-message.in
+++ b/misc/fortune-mod-bible/files/pkg-message.in
@@ -1,3 +1,3 @@
-Usage: fortune PREFIX/share/games/fortune/bible
+Usage: fortune %%PREFIX%%/share/games/fortune/bible