1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
Approved by:	portmgr@
This commit is contained in:
Vanilla I. Shu 2014-06-16 07:01:48 +00:00
parent 59fb11a613
commit 0fc934d979
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357953

View File

@ -11,13 +11,11 @@ DISTNAME= ${PORTNAME}
MAINTAINER= hernan.di.pietro@gmail.com
COMMENT= Impressive OpenGL Demo
USE_GL= glut
MAKE_ARGS= 'CXXFLAGS=${CXXFLAGS} -I${LOCALBASE}/include -pipe -s -O2' \
'LDFLAGS=-L${LOCALBASE}/lib -lGL -lGLU -lglut'
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/scene*.cpp
@${REINPLACE_CMD} -e 's|k_InitGL(GLvoid)|k_InitGL(void)|' ${WRKSRC}/scene12.cpp
@ -25,12 +23,12 @@ post-patch:
@${REINPLACE_CMD} -e 's|Create(char\*|Create(const char* |g' ${WRKSRC}/Texture.*
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/glxs ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/data/*.raw ${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/glxs ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/data/*.raw ${STAGEDIR}${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ReadMe.txt ${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ReadMe.txt ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>