diff --git a/x11-wm/olvwm/Makefile b/x11-wm/olvwm/Makefile index ce2e0d7b0b3e..ca928c78dd8e 100644 --- a/x11-wm/olvwm/Makefile +++ b/x11-wm/olvwm/Makefile @@ -24,16 +24,17 @@ COMMENT= OpenLook Virtual Window manager LIB_DEPENDS= xview.3:${PORTSDIR}/x11-toolkits/xview +USE_REINPLACE= yes +REINPLACE_ARGS= -i "" NO_WRKSUBDIR= yes USE_IMAKE= yes USE_XPM= yes MAN1= olvwm.1 olvwmrc.1 XFREE86_HTML_MAN= no -.include +pre-configure: + @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \ + 's|^#endif.*$$|#endif|;s|^#else.*$$|#else|;\ + s|^/\*\*/#*|XCOMM |' -.if ${OSVERSION} >= 502000 -BROKEN= "Does not compile" -.endif - -.include +.include