- Add stage support

- Add DOCS option
- Add LICENSE
This commit is contained in:
Danilo Egea Gondolfo 2013-10-30 02:19:57 +00:00
parent dcc70ab71a
commit e3445fa92c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332030

View file

@ -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>