svn commit: r563016 - head/graphics/freeglut

Dmitry Marakasov amdmi3 at FreeBSD.org
Wed Jan 27 00:45:17 UTC 2021


Author: amdmi3
Date: Wed Jan 27 00:45:16 2021
New Revision: 563016
URL: https://svnweb.freebsd.org/changeset/ports/563016

Log:
  - Switch to USES=localbase
  - Add missing dependency on xxf86vm
  - Switch to options helpers
  - Remove redundant INSTALL_TARGET
  
  Approved by:	portmgr blanket

Modified:
  head/graphics/freeglut/Makefile

Modified: head/graphics/freeglut/Makefile
==============================================================================
--- head/graphics/freeglut/Makefile	Wed Jan 27 00:33:01 2021	(r563015)
+++ head/graphics/freeglut/Makefile	Wed Jan 27 00:45:16 2021	(r563016)
@@ -13,13 +13,11 @@ COMMENT=	Open source implementation of GLUT library
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cmake:insource gl pathfix xorg
+USES=		cmake:insource gl localbase:ldflags pathfix xorg
 USE_LDCONFIG=	yes
-USE_XORG=	ice x11 xi xrandr
+USE_XORG=	ice x11 xi xrandr xxf86vm
 USE_GL=		gl glu
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib -lusbhid -lm
-INSTALL_TARGET=	install/strip
+LDFLAGS+=	-lusbhid -lm
 
 DOCS=	download.html freeglut.html freeglut_logo.png		\
 	freeglut_user_interface.html index.html ogl_sm.png	\
@@ -29,29 +27,25 @@ BINS=	CallbackMaker Fractals Fractals_random Lorenz On
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
-.include <bsd.port.options.mk>
-
 pre-configure:
 .for fract in Fractals/fractals.c Fractals_random/fractals_random.c
 	@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g"		\
 		${WRKSRC}/progs/demos/${fract}
 .endfor
 
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for FILE in ${DOCS}
 	${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${STAGEDIR}${DOCSDIR}
 .endfor
 	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
+
+post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/progs/demos/Fractals/fractals.dat ${STAGEDIR}${EXAMPLESDIR}
 .for prog in ${BINS}
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${STAGEDIR}${EXAMPLESDIR}
 .endfor
 	@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list