--- glest/Makefile 2014-07-23 12:44:27.000000000 -0400 +++ glest/Makefile 2014-08-10 13:00:22.124504110 -0400 @@ -34,7 +34,6 @@ EXTRACT_AFTER_ARGS= -d ${WRKDIR}/${DISTNAME} -NO_STAGE= yes .include .include @@ -71,16 +70,16 @@ do-install: .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/code_license.txt ${DOCSDIR}/code_license.txt + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/code_license.txt ${STAGEDIR}${DOCSDIR}/code_license.txt .endif - @${MKDIR} ${DATADIR} - ${INSTALL_PROGRAM} ${WRKSRC}/glest ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/mk/linux/glest.ini ${DATADIR} - ${INSTALL_SCRIPT} ${WRKDIR}/glest-wrapper ${PREFIX}/bin/${PORTNAME} + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/glest ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/mk/linux/glest.ini ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKDIR}/glest-wrapper ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .if defined(HAVE_EDITOR) - ${INSTALL_PROGRAM} ${WRKSRC}/glest_editor ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/glest_editor ${STAGEDIR}${PREFIX}/bin/ .endif post-install: --- glest/files/patch-source-shared_lib-include-graphics-math_util.h 1969-12-31 19:00:00.000000000 -0500 +++ glest/files/patch-source-shared_lib-include-graphics-math_util.h 2014-08-10 15:24:47.666909086 -0400 @@ -0,0 +1,19 @@ +--- ./source/shared_lib/include/graphics/math_util.h.bak 2014-08-10 15:21:32.000000000 -0400 ++++ ./source/shared_lib/include/graphics/math_util.h 2014-08-10 15:23:08.000000000 -0400 +@@ -23,6 +23,16 @@ + const float zero= 1e-6f; + const float infinity= 1e6f; + ++template ++inline T max(const T& a, const T& b) { ++ return (b > a) ? b : a; ++} ++ ++template ++inline T min(const T& a, const T& b) { ++ return (b < a) ? b : a; ++} ++ + // ===================================================== + // class Rect + // ===================================================== --- glest/pkg-plist 2014-01-22 10:16:56.000000000 -0500 +++ glest/pkg-plist 2014-08-10 16:39:30.699598059 -0400 @@ -3,5 +3,3 @@ %%DATADIR%%/glest %%DATADIR%%/glest.ini %%PORTDOCS%%%%DOCSDIR%%/code_license.txt -%%PORTDOCS%%@dirrmtry %%DOCSDIR%% -@dirrmtry %%DATADIR%%