summaryrefslogtreecommitdiff
path: root/cad/gnetlist/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cad/gnetlist/Makefile')
-rw-r--r--cad/gnetlist/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/cad/gnetlist/Makefile b/cad/gnetlist/Makefile
index 42fd6f27480..8979bb8a340 100644
--- a/cad/gnetlist/Makefile
+++ b/cad/gnetlist/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2005/05/22 20:07:41 jlam Exp $
+# $NetBSD: Makefile,v 1.32 2005/05/22 20:51:45 jlam Exp $
#
DISTNAME= geda-gnetlist-${PKGVERSION}
@@ -11,7 +11,8 @@ COMMENT= Netlist generation program
DEPENDS+= geda-symbols-${PKGVERSION}:../../cad/geda-symbols
# needs GNU m4 for the PCBboard netlister
-DEPENDS+= m4>=1.4:../../devel/m4
+USE_TOOLS+= gm4
+TOOLS_DEPMETHOD.gm4= DEPENDS
.include "../../cad/geda/Makefile.common"
@@ -23,12 +24,11 @@ USE_TOOLS+= gmake
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
EVAL_PREFIX+= PCBDIR=pcb
-M4DIR= ${LOCALBASE}
post-patch:
.for f in gnet-PCBboard.scm gnet-gsch2pcb.scm
${MV} -f ${WRKSRC}/scheme/${f} ${WRKSRC}/scheme/${f}.bak
- ${SED} -e 's;@M4@;${M4DIR}/bin/${GNU_PROGRAM_PREFIX}m4;g' \
+ ${SED} -e 's;@M4@;${TOOLS_M4:Q};g' \
-e 's;@pcb_confdir@;${PKG_SYSCONFDIR}/pcb;g' \
-e 's;@pcb_m4dir@;${PCBDIR}/share/pcb/m4;g' \
${WRKSRC}/scheme/${f}.bak > ${WRKSRC}/scheme/${f}