=================================================================== RCS file: /cvs/ports/cad/tkgate2/Attic/Makefile,v retrieving revision 1.2 retrieving revision 1.6 diff -u -r1.2 -r1.6 --- ports/cad/tkgate2/Attic/Makefile 2009/09/06 08:38:56 1.2 +++ ports/cad/tkgate2/Attic/Makefile 2011/11/09 10:43:15 1.6 @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.2 2009/09/06 07:38:56 yason Exp $ +# $OpenBSD: Makefile,v 1.6 2011/11/09 10:43:15 yason Exp $ COMMENT = Tcl/Tk based digital circuit editor and simulator -DISTNAME = tkgate-2.0-b9 +DISTNAME = tkgate-2.0-b10 CATEGORIES = cad x11 @@ -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