diff options
author | marcus <marcus@FreeBSD.org> | 2004-02-21 02:01:29 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-02-21 02:01:29 +0800 |
commit | 1ac907744d20f0e7aa25bc39716e7641bc2f1ef9 (patch) | |
tree | b85dd907a3b59af006d393f2288e89697f189ec3 /devel/gnomebuild | |
parent | 965535af491ae5b6801ad6b12b55d386cfd75a6a (diff) | |
download | freebsd-ports-gnome-1ac907744d20f0e7aa25bc39716e7641bc2f1ef9.tar.gz freebsd-ports-gnome-1ac907744d20f0e7aa25bc39716e7641bc2f1ef9.tar.zst freebsd-ports-gnome-1ac907744d20f0e7aa25bc39716e7641bc2f1ef9.zip |
Use two different approaches for 4.X and 5.X for the printf(size_t) problem.
Reported by: bento via kris
Diffstat (limited to 'devel/gnomebuild')
-rw-r--r-- | devel/gnomebuild/Makefile | 10 | ||||
-rw-r--r-- | devel/gnomebuild/files/current-src_backends_libgbf_am_gbf-am-project.c | 11 | ||||
-rw-r--r-- | devel/gnomebuild/files/stable-src_backends_libgbf_am_gbf-am-project.c (renamed from devel/gnomebuild/files/patch-src_backends_libgbf_am_gbf-am-project.c) | 0 |
3 files changed, 20 insertions, 1 deletions
diff --git a/devel/gnomebuild/Makefile b/devel/gnomebuild/Makefile index 8928fe49763f..64121dfa33ff 100644 --- a/devel/gnomebuild/Makefile +++ b/devel/gnomebuild/Makefile @@ -27,4 +27,12 @@ INSTALLS_SHLIB= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib -lgnuregex" -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 500000 +EXTRA_PATCHES+= ${FILESDIR}/current-src_backends_libgbf_am_gbf-am-project.c +.else +EXTRA_PATCHES+= ${FILESDIR}/stable-src_backends_libgbf_am_gbf-am-project.c +.endif + +.include <bsd.port.post.mk> diff --git a/devel/gnomebuild/files/current-src_backends_libgbf_am_gbf-am-project.c b/devel/gnomebuild/files/current-src_backends_libgbf_am_gbf-am-project.c new file mode 100644 index 000000000000..10ae4bed5cbb --- /dev/null +++ b/devel/gnomebuild/files/current-src_backends_libgbf_am_gbf-am-project.c @@ -0,0 +1,11 @@ +--- src/backends/libgbf_am/gbf-am-project.c.orig Fri May 2 06:12:51 2003 ++++ src/backends/libgbf_am/gbf-am-project.c Sat Jan 31 13:22:04 2004 +@@ -1750,7 +1750,7 @@ + + switch (status) { + case G_IO_STATUS_NORMAL: +- DEBUG (g_message ("wrote %d bytes", bytes_written)); ++ DEBUG (g_message ("wrote %zu bytes", bytes_written)); + + if (data->input.length < data->input.size) { + /* don't remove the source */ diff --git a/devel/gnomebuild/files/patch-src_backends_libgbf_am_gbf-am-project.c b/devel/gnomebuild/files/stable-src_backends_libgbf_am_gbf-am-project.c index 262756b88ad1..262756b88ad1 100644 --- a/devel/gnomebuild/files/patch-src_backends_libgbf_am_gbf-am-project.c +++ b/devel/gnomebuild/files/stable-src_backends_libgbf_am_gbf-am-project.c |