aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2007-07-05 06:55:38 +0800
committerdanfe <danfe@FreeBSD.org>2007-07-05 06:55:38 +0800
commitebbd087603087120f2093a8e09b00e531bfee7f1 (patch)
tree6e40d2c71850f8c7170a43ba8c1809d67405540c /www
parent56b69d26df1044dcf83f3630b8c438c1c7180c19 (diff)
downloadfreebsd-ports-gnome-ebbd087603087120f2093a8e09b00e531bfee7f1.tar.gz
freebsd-ports-gnome-ebbd087603087120f2093a8e09b00e531bfee7f1.tar.zst
freebsd-ports-gnome-ebbd087603087120f2093a8e09b00e531bfee7f1.zip
- Fix the build with GCC 4.2 [1]
- Usual round of Makefile nits Reported by: pointyhat (logs) [1]
Diffstat (limited to 'www')
-rw-r--r--www/middleman/Makefile16
-rw-r--r--www/middleman/files/patch-include-macros.h26
2 files changed, 31 insertions, 11 deletions
diff --git a/www/middleman/Makefile b/www/middleman/Makefile
index 77f93b9e18b7..5013d7cda030 100644
--- a/www/middleman/Makefile
+++ b/www/middleman/Makefile
@@ -1,6 +1,6 @@
-# New ports collection makefile for: middleman
-# Date created: Sun Apr 27 15:48:16 CEST 2003
-# Whom: Kirill Ponomarew <ponomarew@oberon.net>
+# New ports collection makefile for: middleman
+# Date created: Sun Apr 27 15:48:16 CEST 2003
+# Whom: Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#
@@ -40,12 +40,6 @@ CONFIGURE_ARGS+= --enable-mtime
MMAN_CACHE= /var/cache/mman
PLIST_SUB+= MMAN_CACHE=${MMAN_CACHE}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Broken with gcc 4.2
-.endif
-
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/bin/mman|${PREFIX}/bin/mman|g ; \
@@ -62,9 +56,9 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/scripts/mman.init \
${PREFIX}/etc/rc.d/mman.sh.sample
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/scripts/filter.pl ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/middleman/files/patch-include-macros.h b/www/middleman/files/patch-include-macros.h
new file mode 100644
index 000000000000..635d366909dd
--- /dev/null
+++ b/www/middleman/files/patch-include-macros.h
@@ -0,0 +1,26 @@
+--- include/macros.h.orig Sat Jul 19 05:53:50 2003
++++ include/macros.h Thu Jul 5 05:45:33 2007
+@@ -103,9 +103,10 @@
+ /*
+ this macro will shift a node in a linked list up or down one
+ */
+-#define SHIFTNODE(t, x, a, d) { \
++#define SHIFTNODE(t, _x, a, d) { \
+ do { \
+ t tmp_node = NULL; \
++ t x = _x; \
+ if (d == UP && a != (x)) { \
+ if ((x) == a->prev) (x) = a; \
+ if (a->prev->prev != NULL) a->prev->prev->next = a; \
+@@ -131,9 +132,10 @@
+ /*
+ this macro moves a list node to top or bottom of list
+ */
+-#define SETNODE(t, x, a, d) { \
++#define SETNODE(t, _x, a, d) { \
+ do { \
+ t tmp_node = NULL; \
++ t x = _x; \
+ if (d == TOP && a != (x)) { \
+ if (a->next != NULL) a->next->prev = a->prev; \
+ a->prev->next = a->next; \