summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorjlam <jlam>2005-05-22 20:51:45 +0000
committerjlam <jlam>2005-05-22 20:51:45 +0000
commit4e6444069d44800fb77790726026585ef3e72c2e (patch)
tree052a4431f18d531391f2e87bbf3a532af6e99278 /cad
parent2ddbb8afaecc884b415390bb8b7a524e329f125f (diff)
downloadpkgsrc-4e6444069d44800fb77790726026585ef3e72c2e.tar.gz
Remove explicit dependencies on the GNU m4 package with USE_TOOLS+=m4
and appropriate TOOLS_DEPMETHOD.gm4 settings.
Diffstat (limited to 'cad')
-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}