svn commit: r422106 - head/misc/fortune-mod-futurama

John Marino marino at FreeBSD.org
Wed Sep 14 05:01:27 UTC 2016


Author: marino
Date: Wed Sep 14 05:01:26 2016
New Revision: 422106
URL: https://svnweb.freebsd.org/changeset/ports/422106

Log:
  misc/fortune-mod-futurama: Use fortune_strfile instead of strfile(8)
  
  This removes the dependency on the games distribution.
  
  Approved by:	general blanket

Modified:
  head/misc/fortune-mod-futurama/Makefile

Modified: head/misc/fortune-mod-futurama/Makefile
==============================================================================
--- head/misc/fortune-mod-futurama/Makefile	Wed Sep 14 04:55:59 2016	(r422105)
+++ head/misc/fortune-mod-futurama/Makefile	Wed Sep 14 05:01:26 2016	(r422106)
@@ -11,24 +11,20 @@ MASTER_SITES=	http://www.netmeister.org/
 MAINTAINER=	freebsd at skysmurf.nl
 COMMENT=	Compilation of quotes from the TV series "Futurama"
 
+BUILD_DEPENDS=	fortune_strfile:misc/fortune_strfile
+
 USES=		tar:bzip2
 SUB_FILES=	pkg-message
+STRFILE=	${LOCALBASE}/bin/fortune_strfile
 
 PLIST_FILES=	share/games/fortune/futurama share/games/fortune/futurama.dat
 
-.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}/futurama
+	${STRFILE} ${WRKSRC}/futurama
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
-	${INSTALL_DATA} ${WRKSRC}/futurama* ${STAGEDIR}${PREFIX}/share/games/fortune
+	${INSTALL_DATA} ${WRKSRC}/futurama* \
+		${STAGEDIR}${PREFIX}/share/games/fortune
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list