1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/graphics/glexcess/Makefile

35 lines
1.0 KiB
Makefile
Raw Normal View History

# Created by: Hernan Di Pietro <hernan.di.pietro@gmail.com>
PORTNAME= glexcess
PORTVERSION= 1.0
PORTREVISION= 8
CATEGORIES= graphics
MASTER_SITES= http://www.glexcess.com/files/
DISTNAME= ${PORTNAME}
MAINTAINER= hernan.di.pietro@gmail.com
COMMENT= Impressive OpenGL Demo
USES= gl
USE_GL= glut
MAKE_ARGS= 'CXXFLAGS=${CXXFLAGS} -I${LOCALBASE}/include -pipe -s -O2' \
'LDFLAGS=-L${LOCALBASE}/lib -lGL -lGLU -lglut'
2014-07-04 00:09:47 +00:00
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/scene*.cpp
@${REINPLACE_CMD} -e 's|k_InitGL(GLvoid)|k_InitGL(void)|' ${WRKSRC}/scene12.cpp
@${REINPLACE_CMD} -e 's|Load(char\*|Load(const char* |g' ${WRKSRC}/Texture.*
@${REINPLACE_CMD} -e 's|Create(char\*|Create(const char* |g' ${WRKSRC}/Texture.*
do-install:
2014-06-16 07:01:48 +00:00
${INSTALL_PROGRAM} ${WRKSRC}/glxs ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/data/*.raw ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ReadMe.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>