1PORTNAME= freeglut 2PORTVERSION= 3.2.1 3PORTREVISION= 1 4CATEGORIES= graphics 5MASTER_SITES= SF 6 7MAINTAINER= ports@MidnightBSD.org 8COMMENT= Open source implementation of the GLUT library 9WWW= https://freeglut.sourceforge.net/ 10 11LICENSE= mit 12LICENSE_FILE= ${WRKSRC}/COPYING 13 14USES= cmake:insource gl localbase:ldflags pathfix xorg 15USE_LDCONFIG= yes 16USE_XORG= ice x11 xi xrandr xxf86vm 17USE_GL= gl glu 18LDFLAGS+= -lusbhid -lm 19INSTALL_TARGET= install/strip 20 21DOCS= download.html freeglut.html freeglut_logo.png \ 22 freeglut_user_interface.html index.html ogl_sm.png \ 23 progress.html structure.html 24BINS= CallbackMaker Fractals Fractals_random Lorenz One Resizer \ 25 multi-touch shapes smooth_opengl3 spaceball subwin timer 26 27OPTIONS_DEFINE= DOCS EXAMPLES 28 29.include <bsd.mport.options.mk> 30 31pre-configure: 32.for fract in Fractals/fractals.c Fractals_random/fractals_random.c 33 @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" \ 34 ${WRKSRC}/progs/demos/${fract} 35.endfor 36 37post-install: 38.if ${PORT_OPTIONS:MDOCS} 39 @${MKDIR} ${DOCSDIR} 40.for FILE in ${DOCS} 41 @${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR} 42.endfor 43 @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." 44.endif 45.if ${PORT_OPTIONS:MEXAMPLES} 46 @${MKDIR} ${EXAMPLESDIR} 47 @${INSTALL_DATA} ${WRKSRC}/progs/demos/Fractals/fractals.dat ${EXAMPLESDIR} 48.for prog in ${BINS} 49 ${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${EXAMPLESDIR} 50.endfor 51 @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}." 52.endif 53 54.include <bsd.port.mk> 55