--- Portfile.orig	2013-08-04 14:00:50.000000000 -0600
+++ Portfile	2014-10-29 13:22:02.000000000 -0600
@@ -41,6 +41,10 @@
 
 depends_build   port:gettext port:zlib port:flex port:texinfo
 
+depends_lib     port:libiconv port:ncurses port:sqlite3
+
+patchfiles	patch-macosx-nat.c.diff
+
 worksrcdir	${worksrcdir}/src
 
 post-patch {
@@ -59,11 +63,11 @@
     --disable-werror
 
 build.args \
-    MAKEINFO="${prefix}/bin/makeinfo" \
+    MAKEINFO="/usr/bin/makeinfo" \
     LEXLIB="${prefix}/lib/libfl.a"
 
 destroot.args \
-    MAKEINFO="${prefix}/bin/makeinfo" \
+    MAKEINFO="/usr/bin/makeinfo" \
     LEXLIB="${prefix}/lib/libfl.a"
 
 post-destroot {
--- files/patch-macosx-nat.c.diff.rev0	2014-10-29 16:29:12.000000000 -0600
+++ files/patch-macosx-nat.c.diff	2014-10-29 11:47:29.000000000 -0600
@@ -0,0 +1,11 @@
+--- gdb/macosx/macosx-nat-inferior.c	2011-02-17 16:52:47.000000000 -0700
++++ gdb/macosx/macosx-nat-inferior.c	2014-10-29 09:51:48.000000000 -0600
+@@ -50,7 +50,7 @@
+ 
+ #include <sys/ptrace.h>
+ #include <sys/signal.h>
+-#include <machine/setjmp.h>
++#include <setjmp.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+ #include <signal.h>
