diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-02-20 18:01:29 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-02-20 18:01:29 +0000 |
commit | fcf6a7a59e76914b845fe2226c95d7f2ed4c1915 (patch) | |
tree | a6e57f2da070b41de085785f4beac3b326548ed3 /devel/gnomebuild | |
parent | This port doesn't work on any version of Alpha. (diff) |
Use two different approaches for 4.X and 5.X for the printf(size_t) problem.
Reported by: bento via kris
Notes
Notes:
svn path=/head/; revision=101527
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 |