svn commit: r464383 - head/games/blobwars

Dmitry Marakasov amdmi3 at FreeBSD.org
Tue Mar 13 14:40:10 UTC 2018


Author: amdmi3
Date: Tue Mar 13 14:40:09 2018
New Revision: 464383
URL: https://svnweb.freebsd.org/changeset/ports/464383

Log:
  - Switch to options helpers
  
  Approved by:	portmgr blanket

Modified:
  head/games/blobwars/Makefile

Modified: head/games/blobwars/Makefile
==============================================================================
--- head/games/blobwars/Makefile	Tue Mar 13 14:38:12 2018	(r464382)
+++ head/games/blobwars/Makefile	Tue Mar 13 14:40:09 2018	(r464383)
@@ -26,27 +26,21 @@ OPTIONS_SUB=	yes
 
 NLS_USES=	gettext
 
-.include <bsd.port.options.mk>
-
 post-patch:
 	@${REINPLACE_CMD} \
 		-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
 			${WRKSRC}/Makefile
-
-# Correct Permissions
 	${CHMOD} 664 ${WRKSRC}/icons/*
 
-.if ! ${PORT_OPTIONS:MDOCS}
+post-patch-DOCS-off:
 	@${REINPLACE_CMD} \
-	-e 's|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \
-	s|cp -p $$(DOCS) $$(DESTDIR)$$(DOCDIR)||' \
-		${WRKSRC}/Makefile
-.endif
+		-e 's|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \
+		s|cp -p $$(DOCS) $$(DESTDIR)$$(DOCDIR)||' \
+			${WRKSRC}/Makefile
 
-.if ! ${PORT_OPTIONS:MNLS}
+post-patch-NLS-off:
 	@${REINPLACE_CMD} -i '' -e '/LOCALE_MO =/d' \
 		${WRKSRC}/Makefile
-.endif
 
 post-install:
 	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \


More information about the svn-ports-head mailing list