aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--databases/dbview/Makefile5
-rw-r--r--databases/dbview/files/patch-aa4
2 files changed, 7 insertions, 2 deletions
diff --git a/databases/dbview/Makefile b/databases/dbview/Makefile
index abc4748b215..31eeb8e6b98 100644
--- a/databases/dbview/Makefile
+++ b/databases/dbview/Makefile
@@ -18,6 +18,11 @@ LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
MAN1= dbview.1
+
+pre-patch:
+ @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
+ ${WRKSRC}/db_dump.c
+
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/dbview ${PREFIX}/bin
@ ${INSTALL_MAN} ${WRKSRC}/dbview.1 ${PREFIX}/man/man1
diff --git a/databases/dbview/files/patch-aa b/databases/dbview/files/patch-aa
index 5687d78e79d..d41f6f4d751 100644
--- a/databases/dbview/files/patch-aa
+++ b/databases/dbview/files/patch-aa
@@ -45,13 +45,13 @@
-dbview.o: version.h db_dump.h /usr/include/stdio.h /usr/include/libio.h
-dbview.o: /usr/include/_G_config.h /usr/include/getopt.h
+db_dump.o: db_dump.h /usr/include/fcntl.h /usr/include/sys/types.h
-+db_dump.o: /usr/include/sys/cdefs.h /usr/include/sys/inttypes.h
++db_dump.o: /usr/include/sys/cdefs.h /usr/include/inttypes.h
+db_dump.o: /usr/include/machine/ansi.h /usr/include/machine/types.h
+db_dump.o: /usr/include/machine/endian.h /usr/include/sys/stat.h
+db_dump.o: /usr/include/sys/time.h /usr/include/time.h
+db_dump.o: /usr/include/sys/_posix.h /usr/include/stdio.h
+db_dump.o: /usr/include/unistd.h /usr/include/sys/unistd.h
-+db_dump.o: /usr/include/malloc.h /usr/include/stdlib.h /usr/include/ctype.h
++db_dump.o: /usr/include/stdlib.h /usr/include/stdlib.h /usr/include/ctype.h
+db_dump.o: /usr/include/runetype.h /usr/include/string.h
+dbview.o: version.h db_dump.h /usr/include/stdio.h /usr/include/sys/cdefs.h
+dbview.o: /usr/include/machine/ansi.h /usr/local/include/getopt.h