summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorcjep <cjep>2003-03-22 11:58:16 +0000
committercjep <cjep>2003-03-22 11:58:16 +0000
commit0d9c2542643e89dfb59f33daa643535d149c48a7 (patch)
tree2980ad08a0473ca261bec50abf22487342858f2e /emulators
parentd74b387b5701659fe9eb61751fb80c90cf7c502d (diff)
downloadpkgsrc-0d9c2542643e89dfb59f33daa643535d149c48a7.tar.gz
Respect CFLAGS. On arm, turn off optimization so that this package
finishes building (at least on NetBSD/shark).
Diffstat (limited to 'emulators')
-rw-r--r--emulators/simh/Makefile10
-rw-r--r--emulators/simh/distinfo4
-rw-r--r--emulators/simh/patches/patch-aa4
3 files changed, 13 insertions, 5 deletions
diff --git a/emulators/simh/Makefile b/emulators/simh/Makefile
index 8c9c4c187d9..22c85b72518 100644
--- a/emulators/simh/Makefile
+++ b/emulators/simh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2002/11/28 12:00:26 agc Exp $
+# $NetBSD: Makefile,v 1.11 2003/03/22 11:58:16 cjep Exp $
#
DISTNAME= simhv210-0b2
@@ -18,6 +18,14 @@ WRKSRC= ${WRKDIR}
EXTRACT_CMD= unzip -aoq ${DOWNLOADED_DISTFILE}
+.include "../../mk/bsd.prefs.mk"
+
+.if (${MACHINE_ARCH} == "arm")
+.if (${CFLAGS:M-O2} == "-O2")
+CFLAGS:= ${CFLAGS:S/-O2//}
+.endif
+.endif
+
post-extract:
${MKDIR} ${WRKSRC}/BIN
${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
diff --git a/emulators/simh/distinfo b/emulators/simh/distinfo
index ab45c544efa..049ae6ffaaf 100644
--- a/emulators/simh/distinfo
+++ b/emulators/simh/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2003/01/18 21:17:32 bouyer Exp $
+$NetBSD: distinfo,v 1.8 2003/03/22 11:58:16 cjep Exp $
SHA1 (simhv210-0b2.zip) = 841669853d24f7b2b608442806eeaa083f2dd7ab
Size (simhv210-0b2.zip) = 1555874 bytes
SHA1 (xq_beta5.zip) = a66fe7fecb76737632e262ae40c3d59147071a7e
Size (xq_beta5.zip) = 24582 bytes
-SHA1 (patch-aa) = 29fc614b64358b50e5181a186edf339cd18de17a
+SHA1 (patch-aa) = e14a00127c162fcaf626f251722d5aaf9d439f09
SHA1 (patch-ab) = 516740338b0648a7503b2cbac00ff6bbec086c9e
diff --git a/emulators/simh/patches/patch-aa b/emulators/simh/patches/patch-aa
index e11d2183feb..aa3e727fa06 100644
--- a/emulators/simh/patches/patch-aa
+++ b/emulators/simh/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.4 2002/10/19 21:38:10 thorpej Exp $
+$NetBSD: patch-aa,v 1.5 2003/03/22 11:58:17 cjep Exp $
--- Makefile.orig Sat Oct 19 14:23:26 2002
+++ Makefile Sat Oct 19 14:24:16 2002
@@ -8,7 +8,7 @@ $NetBSD: patch-aa,v 1.4 2002/10/19 21:38:10 thorpej Exp $
#
-CC = gcc -O2 -lm -I .
-#CC = gcc -O2 -g -lm -I .
-+CC = gcc -O2 -lm -lpcap -I .
++CC = gcc ${CFLAGS} -lm -lpcap -I .
+#CC = gcc -O2 -g -lm -lpcap -I .