diff options
author | pav <pav@FreeBSD.org> | 2004-12-09 07:35:17 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-12-09 07:35:17 +0800 |
commit | 68fbba71b1f5eab3a570faf4162e1c716eb2705b (patch) | |
tree | 6adda56af68b7aa4315f70410ee94aafff3132ea /comms | |
parent | dd5358a82a9b2fb4fe864a82d752b57d2730a104 (diff) | |
download | freebsd-ports-gnome-68fbba71b1f5eab3a570faf4162e1c716eb2705b.tar.gz freebsd-ports-gnome-68fbba71b1f5eab3a570faf4162e1c716eb2705b.tar.zst freebsd-ports-gnome-68fbba71b1f5eab3a570faf4162e1c716eb2705b.zip |
- Fix build with gcc 3.4
PR: ports/74790
Submitted by: Dominik Brettnacher <domi@saargate.de> (maintainer)
Diffstat (limited to 'comms')
-rw-r--r-- | comms/ghfaxviewer/Makefile | 8 | ||||
-rw-r--r-- | comms/ghfaxviewer/files/patch-src-callbcks.c | 26 | ||||
-rw-r--r-- | comms/ghfaxviewer/files/patch-src-gn_print.c | 10 |
3 files changed, 37 insertions, 7 deletions
diff --git a/comms/ghfaxviewer/Makefile b/comms/ghfaxviewer/Makefile index 0f0fdfe51de4..8ba762cc7b88 100644 --- a/comms/ghfaxviewer/Makefile +++ b/comms/ghfaxviewer/Makefile @@ -29,12 +29,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ MAN1= halifax.1 ghfaxviewer.1 -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - pre-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure @@ -42,4 +36,4 @@ pre-patch: 's|\(\$$(datadir)/\)gnome/|\1|g ; \ s|\$$(datadir)/locale|$$(prefix)/share/locale|g' -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/comms/ghfaxviewer/files/patch-src-callbcks.c b/comms/ghfaxviewer/files/patch-src-callbcks.c new file mode 100644 index 000000000000..8173db6b6cfd --- /dev/null +++ b/comms/ghfaxviewer/files/patch-src-callbcks.c @@ -0,0 +1,26 @@ +--- src/callbcks.c.orig Mon Dec 6 23:40:28 2004 ++++ src/callbcks.c Mon Dec 6 23:40:51 2004 +@@ -90,7 +90,6 @@ + case ROT_LEFT90: + viewer_data->rotation = ROT_RIGHT90; + break; +- default: + } + + draw_page (viewer_data); +@@ -113,7 +112,6 @@ + case ROT_LEFT90: + viewer_data->rotation = ROT_NONE; + break; +- default: + } + + draw_page (viewer_data); +@@ -136,7 +134,6 @@ + case ROT_LEFT90: + viewer_data->rotation = ROT_180; + break; +- default: + } + + draw_page (viewer_data); diff --git a/comms/ghfaxviewer/files/patch-src-gn_print.c b/comms/ghfaxviewer/files/patch-src-gn_print.c new file mode 100644 index 000000000000..30615d7c5cf3 --- /dev/null +++ b/comms/ghfaxviewer/files/patch-src-gn_print.c @@ -0,0 +1,10 @@ +--- src/gn_print.c.orig Sun May 6 14:15:14 2001 ++++ src/gn_print.c Thu Dec 9 00:24:02 2004 +@@ -272,6 +272,7 @@ + print_or_preview (print_dlg, viewer_data, button); + break; + case GNOME_PRINT_CANCEL: ++ ; + } + + if (destroy_dlg) |