summaryrefslogtreecommitdiff
path: root/devel/gnome-build
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-02-20 18:01:29 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-02-20 18:01:29 +0000
commitfcf6a7a59e76914b845fe2226c95d7f2ed4c1915 (patch)
treea6e57f2da070b41de085785f4beac3b326548ed3 /devel/gnome-build
parentThis 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/gnome-build')
-rw-r--r--devel/gnome-build/Makefile10
-rw-r--r--devel/gnome-build/files/current-src_backends_libgbf_am_gbf-am-project.c11
-rw-r--r--devel/gnome-build/files/stable-src_backends_libgbf_am_gbf-am-project.c (renamed from devel/gnome-build/files/patch-src_backends_libgbf_am_gbf-am-project.c)0
3 files changed, 20 insertions, 1 deletions
diff --git a/devel/gnome-build/Makefile b/devel/gnome-build/Makefile
index 8928fe49763f..64121dfa33ff 100644
--- a/devel/gnome-build/Makefile
+++ b/devel/gnome-build/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/gnome-build/files/current-src_backends_libgbf_am_gbf-am-project.c b/devel/gnome-build/files/current-src_backends_libgbf_am_gbf-am-project.c
new file mode 100644
index 000000000000..10ae4bed5cbb
--- /dev/null
+++ b/devel/gnome-build/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/gnome-build/files/patch-src_backends_libgbf_am_gbf-am-project.c b/devel/gnome-build/files/stable-src_backends_libgbf_am_gbf-am-project.c
index 262756b88ad1..262756b88ad1 100644
--- a/devel/gnome-build/files/patch-src_backends_libgbf_am_gbf-am-project.c
+++ b/devel/gnome-build/files/stable-src_backends_libgbf_am_gbf-am-project.c