aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/gaul/Makefile2
-rw-r--r--devel/gaul/files/patch-util::str_util.c14
2 files changed, 16 insertions, 0 deletions
diff --git a/devel/gaul/Makefile b/devel/gaul/Makefile
index 6f4f451dc370..d1a12ed4d695 100644
--- a/devel/gaul/Makefile
+++ b/devel/gaul/Makefile
@@ -8,6 +8,7 @@
PORTNAME= gaul
PORTVERSION= 0.1846
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -20,6 +21,7 @@ LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
USE_GNOME= gnometarget
GNU_CONFIGURE= yes
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lcurses"
diff --git a/devel/gaul/files/patch-util::str_util.c b/devel/gaul/files/patch-util::str_util.c
new file mode 100644
index 000000000000..f841ceea18af
--- /dev/null
+++ b/devel/gaul/files/patch-util::str_util.c
@@ -0,0 +1,14 @@
+--- util/str_util.c.orig Wed Jul 16 23:56:06 2003
++++ util/str_util.c Sat Feb 7 22:19:51 2004
+@@ -1103,7 +1103,11 @@
+ /*
+ * Determine required size for destination buffer.
+ */
++ #if defined(__amd64__)
++ va_copy(orig_ap, ap);
++ #else
+ orig_ap = ap;
++ #endif
+ len = strlen(str);
+
+ while ( (sp = va_arg(ap, char *))!=NULL ) len += strlen(sp);