Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2018 14:40:09 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r464383 - head/games/blobwars
Message-ID:  <201803131440.w2DEe9R7049931@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803131440.w2DEe9R7049931>