aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gaul
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-02-08 05:24:23 +0800
committerkrion <krion@FreeBSD.org>2004-02-08 05:24:23 +0800
commit5226ca44181083dbad62b0adff0a931bb469f154 (patch)
tree51bc1c3388987981b88db44e19b246042155e1e1 /devel/gaul
parenteea5704581ad5f30049293288df3395a8bb34374 (diff)
downloadfreebsd-ports-gnome-5226ca44181083dbad62b0adff0a931bb469f154.tar.gz
freebsd-ports-gnome-5226ca44181083dbad62b0adff0a931bb469f154.tar.zst
freebsd-ports-gnome-5226ca44181083dbad62b0adff0a931bb469f154.zip
- Fix build on AMD64
- Fix configure warning
Diffstat (limited to 'devel/gaul')
-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);