svn commit: r337229 - head/games/glightoff

Rusmir Dusko nemysis at FreeBSD.org
Mon Dec 23 06:51:40 UTC 2013


Author: nemysis
Date: Mon Dec 23 06:51:39 2013
New Revision: 337229
URL: http://svnweb.freebsd.org/changeset/ports/337229

Log:
  - Change Makefile header
  - Bump PORTREVISION for dependency change
  - Add dependency for textproc/p5-XML-Parser
  - Add USES iconv
  - Add DOCS Option
  - Support STAGEDIR
  
  Approved by:	pawel / wg (mentors, implicit)

Modified:
  head/games/glightoff/Makefile

Modified: head/games/glightoff/Makefile
==============================================================================
--- head/games/glightoff/Makefile	Mon Dec 23 06:21:19 2013	(r337228)
+++ head/games/glightoff/Makefile	Mon Dec 23 06:51:39 2013	(r337229)
@@ -1,19 +1,21 @@
-# Created by: nemysis at gmx.ch
+# Created by: nemysis <nemysis at gmx.ch>
 # $FreeBSD$
 
 PORTNAME=	glightoff
 PORTVERSION=	1.0.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
 
 MAINTAINER=	nemysis at FreeBSD.org
 COMMENT=	Simple (but not so easy to solve!) puzzle game
 
+BUILD_DEPENDS=	p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
+
 LICENSE=	GPLv2
 
+USES=		gmake iconv pkgconfig
 GNU_CONFIGURE=	yes
-USES=		gmake pkgconfig
 USE_GNOME=	glib20 gtk20
 USE_XORG=	x11
 
@@ -22,27 +24,20 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 
 PORTDOCS=	AUTHORS ChangeLog NEWS README TODO
 
-OPTIONS_DEFINE=	NLS
+OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+NLS_USES=	gettext
 
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=	NLS=""
-.else
-PLIST_SUB+=	NLS="@comment "
-.endif
+.include <bsd.port.options.mk>
 
 post-configure:
-.if !${PORT_OPTIONS:MNLS}
+.if ! ${PORT_OPTIONS:MNLS}
 	@${REINPLACE_CMD} 's|src po|src|' ${WRKSRC}/Makefile
 .endif
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list