svn commit: r422108 - head/misc/fortune-mod-bofh
John Marino
marino at FreeBSD.org
Wed Sep 14 05:16:29 UTC 2016
Author: marino
Date: Wed Sep 14 05:16:28 2016
New Revision: 422108
URL: https://svnweb.freebsd.org/changeset/ports/422108
Log:
misc/fortune-mod-bofh: Use fortune_strfile instead of strfile(8)
This removes the dependency on the games distribution.
Approved by: general blanket
Modified:
head/misc/fortune-mod-bofh/Makefile
Modified: head/misc/fortune-mod-bofh/Makefile
==============================================================================
--- head/misc/fortune-mod-bofh/Makefile Wed Sep 14 05:09:12 2016 (r422107)
+++ head/misc/fortune-mod-bofh/Makefile Wed Sep 14 05:16:28 2016 (r422108)
@@ -12,24 +12,20 @@ DISTFILES= bofh-fortune-mod${PORTVERSION
MAINTAINER= onatan at gmail.com
COMMENT= Compilation of excuses from the "Bastard Operator From Hell"
+BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
+STRFILE= ${LOCALBASE}/bin/fortune_strfile
+
WRKSRC= ${WRKDIR}/bofh-fortune-mod2.0
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
-.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
-
do-build:
- @${STRFILE} ${WRKSRC}/bofh
+ ${STRFILE} ${WRKSRC}/bofh
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/bofh* ${STAGEDIR}${PREFIX}/share/games/fortune
+ ${INSTALL_DATA} ${WRKSRC}/bofh* \
+ ${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list