svn commit: r332759 - head/games/mkhexgrid

Danilo Egea Gondolfo danilo at FreeBSD.org
Mon Nov 4 19:08:49 UTC 2013


Author: danilo
Date: Mon Nov  4 19:08:49 2013
New Revision: 332759
URL: http://svnweb.freebsd.org/changeset/ports/332759

Log:
  - Add stage support
  - Add DOCS option
  - Convert USE_GMAKE to USES
  - Convert LIB_DEPENDS to new syntax
  - Remove indefinite article from COMMENT

Modified:
  head/games/mkhexgrid/Makefile

Modified: head/games/mkhexgrid/Makefile
==============================================================================
--- head/games/mkhexgrid/Makefile	Mon Nov  4 18:54:32 2013	(r332758)
+++ head/games/mkhexgrid/Makefile	Mon Nov  4 19:08:49 2013	(r332759)
@@ -10,25 +10,23 @@ MASTER_SITES=	http://www.nomic.net/~ucke
 EXTRACT_SUFX=	.src.tar.gz
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A fully-configurable hex grid generator
+COMMENT=	Fully-configurable hex grid generator
 
 LICENSE=	GPLv2
 
 BUILD_DEPENDS=	${LOCALBASE}/include/boost/lexical_cast.hpp:${PORTSDIR}/devel/boost-libs
-LIB_DEPENDS=	gd:${PORTSDIR}/graphics/gd
+LIB_DEPENDS=	libgd.so:${PORTSDIR}/graphics/gd
 
-USE_GMAKE=	yes
+USES=		gmake
 
 PORTDOCS=	mkhexgrid.html
 PLIST_FILES=	bin/mkhexgrid
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/mkhexgrid ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${WRKSRC}/doc/mkhexgrid.html ${DOCSDIR}
-	@${ECHO} "Documentation has been installed into ${DOCSDIR}."
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/mkhexgrid ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/mkhexgrid.html ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list