=================================================================== RCS file: /cvs/ports/cad/tkgate2/Attic/Makefile,v retrieving revision 1.3 retrieving revision 1.6 diff -u -r1.3 -r1.6 --- ports/cad/tkgate2/Attic/Makefile 2009/10/03 07:44:33 1.3 +++ ports/cad/tkgate2/Attic/Makefile 2011/11/09 10:43:15 1.6 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2009/10/03 06:44:33 yason Exp $ +# $OpenBSD: Makefile,v 1.6 2011/11/09 10:43:15 yason Exp $ COMMENT = Tcl/Tk based digital circuit editor and simulator @@ -25,11 +25,15 @@ LIB_DEPENDS = ${MODTK_LIB_DEPENDS} -USE_X11 = Yes CONFIGURE_STYLE = gnu pre-patch: - @find ${WRKSRC} -name *.orig -exec rm {} \; - @find ${WRKSRC} -name *.*~ -exec rm {} \; +.for i in *.orig* *.bak* *.old *~ + @find ${WRKSRC} -name $i -exec rm {} \; +.endfor + +pre-configure: + perl -pi -e 's|!!LOCALBASE!!|${LOCALBASE}|g' ${WRKSRC}/scripts/parms.tcl + perl -pi -e 's|!!LOCALBASE!!|${LOCALBASE}|g' ${WRKSRC}/src/tkgate/verilog_out.c .include