aboutsummaryrefslogtreecommitdiffstats
path: root/biology
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2007-06-19 05:35:50 +0800
committerdanfe <danfe@FreeBSD.org>2007-06-19 05:35:50 +0800
commit578b594208844deb8cf8083487e7fb19497c845d (patch)
tree4d205af6d17b9f62e37acd0dbc4edda47c4bc4ee /biology
parent9a48dc80666e0149c7c2439c4c6622e7b29bf6f5 (diff)
downloadfreebsd-ports-gnome-578b594208844deb8cf8083487e7fb19497c845d.tar.gz
freebsd-ports-gnome-578b594208844deb8cf8083487e7fb19497c845d.tar.zst
freebsd-ports-gnome-578b594208844deb8cf8083487e7fb19497c845d.zip
- Fix the build with GCC 4.2
- Remove BROKEN tag Reported by: pointyhat (logs)
Diffstat (limited to 'biology')
-rw-r--r--biology/crimap/Makefile8
-rw-r--r--biology/crimap/files/patch-gcc431
2 files changed, 32 insertions, 7 deletions
diff --git a/biology/crimap/Makefile b/biology/crimap/Makefile
index beccaef2cb94..a3428748d787 100644
--- a/biology/crimap/Makefile
+++ b/biology/crimap/Makefile
@@ -21,12 +21,6 @@ PROGRAMS= crimap
EXAMPLES= chr7a.gen demo.dat
EXIT_PATCH= e_ped.c get_log.c our_allo.c our_orde.c
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Broken with gcc 4.2
-.endif
-
post-patch:
.for file in ${EXIT_PATCH}
@${REINPLACE_CMD} -e 's|exit\ *()|exit(0)|' ${WRKSRC}/${file}
@@ -50,4 +44,4 @@ do-install:
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/biology/crimap/files/patch-gcc4 b/biology/crimap/files/patch-gcc4
new file mode 100644
index 000000000000..b15fe63303c0
--- /dev/null
+++ b/biology/crimap/files/patch-gcc4
@@ -0,0 +1,31 @@
+--- our_allo.c.orig Tue Jun 19 04:31:56 2007
++++ our_allo.c Tue Jun 19 04:30:44 2007
+@@ -21,10 +21,11 @@
+ static HEADER base;
+ static HEADER *allocp = NULL;
+
++static HEADER *morecore();
++
+ char *our_alloc(nbytes)
+ ALLOC nbytes;
+ {
+- HEADER *morecore();
+ HEADER *p;
+ HEADER *q;
+ ALLOC nunits;
+diff -ur work/our_orde.c foo/our_orde.c
+--- our_orde.c.orig Tue Jun 19 04:31:56 2007
++++ our_orde.c Tue Jun 19 04:31:30 2007
+@@ -21,10 +21,11 @@
+ static HEADER orders_base;
+ static HEADER *orders_allocp = NULL;
+
++static HEADER *orders_morecore();
++
+ char *our_orders_alloc(nbytes)
+ ALLOC nbytes;
+ {
+- HEADER *orders_morecore();
+ HEADER *p, *q;
+ ALLOC nunits;
+