From 3db5fa7144b6febfeb4fc45cd754134e02933ee5 Mon Sep 17 00:00:00 2001 From: Volker Stolz Date: Mon, 19 Apr 2004 07:01:00 +0000 Subject: Unbreak if Mesa/libglut not present. Submitted by: maintainer Approved by: linimon (mentor) --- cad/pdnmesh/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cad') diff --git a/cad/pdnmesh/Makefile b/cad/pdnmesh/Makefile index 31b3d91c1b5c..e4667708826a 100644 --- a/cad/pdnmesh/Makefile +++ b/cad/pdnmesh/Makefile @@ -17,6 +17,7 @@ COMMENT= A finite element program LIB_DEPENDS= gtkglext:${PORTSDIR}/x11-toolkits/gtkglext:install +USE_REINPLACE= yes USE_XLIB= yes USE_GL= yes GNU_CONFIGURE= yes @@ -25,4 +26,9 @@ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" MAN1= pdnmesh.1 MAN5= pdnmesh_input.5 +post-patch: +.for FILE in ${DISTNAME}/src/contour.c + @${REINPLACE_CMD} -e "s/^\#include //g" ${WRKSRC}/${FILE} +.endfor + .include -- cgit v1.2.3