aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2006-01-29 05:51:10 +0800
committerlofi <lofi@FreeBSD.org>2006-01-29 05:51:10 +0800
commit6cfc29661afe7df0130090c01feb4484fa2d9c09 (patch)
tree1bac5d0554ec7db61fc4c970573fef1c862e0fef /graphics
parentf9a9aac0d795ff27c5bdee3c06d21624aebd0e2c (diff)
downloadfreebsd-ports-graphics-6cfc29661afe7df0130090c01feb4484fa2d9c09.tar.gz
freebsd-ports-graphics-6cfc29661afe7df0130090c01feb4484fa2d9c09.tar.zst
freebsd-ports-graphics-6cfc29661afe7df0130090c01feb4484fa2d9c09.zip
Don't USE_SLEDGEHAMMER=GCC-3.4 on 4.x when removing an unsupported warning
option from configure's CFLAGS lets this build with gcc 2.95 just fine. While here, increase the chance of this working on alpha by making the addition of -mieee not exclusive to *alpha*-*-linux*.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/graphviz/Makefile7
-rw-r--r--graphics/graphviz/files/patch-configure11
2 files changed, 13 insertions, 5 deletions
diff --git a/graphics/graphviz/Makefile b/graphics/graphviz/Makefile
index 40c1761cacc..5c2435cb666 100644
--- a/graphics/graphviz/Makefile
+++ b/graphics/graphviz/Makefile
@@ -63,12 +63,11 @@ USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/misc/ldconfig_compat/bsd.ldconfig.mk"
-.if ${OSVERSION} < 500000
-USE_GCC= 3.4+
-.endif
-
post-patch:
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|'
+.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} 's|-Wno-unused-parameter||g' ${WRKSRC}/configure
+.endif
post-install: install-ldconfig-file
.if !defined(NOPORTDOCS)
diff --git a/graphics/graphviz/files/patch-configure b/graphics/graphviz/files/patch-configure
index b1dca02f710..4ce4505490e 100644
--- a/graphics/graphviz/files/patch-configure
+++ b/graphics/graphviz/files/patch-configure
@@ -1,5 +1,14 @@
--- configure.orig Sun Aug 28 15:09:28 2005
-+++ configure Wed Dec 28 16:15:47 2005
++++ configure Sat Jan 28 22:36:22 2006
+@@ -4690,7 +4690,7 @@
+ *-dec-osf* )
+ CFLAGS="${CFLAGS} -mieee -Wall"
+ ;;
+- *alpha*-*-linux* )
++ *alpha*-*-* )
+ CFLAGS="${CFLAGS} -mieee -Wall"
+ ;;
+ *-apple-darwin* )
@@ -23372,21 +23372,21 @@
fi
fi