Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2013 02:19:57 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332030 - head/games/apoolGL
Message-ID:  <201310300219.r9U2Jvjv050290@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Wed Oct 30 02:19:57 2013
New Revision: 332030
URL: http://svnweb.freebsd.org/changeset/ports/332030

Log:
  - Add stage support
  - Add DOCS option
  - Add LICENSE

Modified:
  head/games/apoolGL/Makefile

Modified: head/games/apoolGL/Makefile
==============================================================================
--- head/games/apoolGL/Makefile	Wed Oct 30 01:50:57 2013	(r332029)
+++ head/games/apoolGL/Makefile	Wed Oct 30 02:19:57 2013	(r332030)
@@ -11,12 +11,15 @@ DISTNAME=	${PORTNAME}-099-pre22
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Another billiards simulator
 
+LICENSE=	GPLv2
+
 USE_SDL=	sdl
 USE_GL=		gl
 
+OPTIONS_DEFINE=	DOCS
+
 PORTDOCS=	ApoolGL.txt CHANGELOG OpenGL-Features
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e "s|`${PRINTF} '\r'`$$||" ${WRKSRC}/ApoolGL.txt
 	@${REINPLACE_CMD} -e 's|SDL/||' ${WRKSRC}/*.c
@@ -28,16 +31,13 @@ do-build:
 		-o ${WRKSRC}/apool ${WRKSRC}/*.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/apool ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/apool ${STAGEDIR}${PREFIX}/bin
 .for i in hi lo med
-	${MKDIR} ${DATADIR}/textures-${i}
-	${INSTALL_DATA} ${WRKSRC}/textures-${i}/*.bmp ${DATADIR}/textures-${i}
+	@${MKDIR} ${STAGEDIR}${DATADIR}/textures-${i}
+	${INSTALL_DATA} ${WRKSRC}/textures-${i}/*.bmp ${STAGEDIR}${DATADIR}/textures-${i}
 .endfor
-	${INSTALL_DATA} ${WRKSRC}/*.dat ${DATADIR}
-
-.ifndef (NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
-.endif
+	${INSTALL_DATA} ${WRKSRC}/*.dat ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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